Revision 016e8d44bc06dd3322f26712bdd3f3a6973592d0 authored by Josh Boyer on 19 August 2011, 18:50:26 UTC, committed by Al Viro on 19 November 2011, 16:13:26 UTC
Newer versions of MINIX can create filesystems that allocate an extra
bitmap block.  Mounting of this succeeds, but doing a statfs call will
result in an oops in count_free because of a negative number being used
for the bh index.

Avoid this by verifying the number of allocated blocks at mount time,
erroring out if there are not enough and make statfs ignore the extras
if there are too many.

This fixes https://bugzilla.kernel.org/show_bug.cgi?id=18792

Signed-off-by: Josh Boyer <jwboyer@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent d633180
Raw File
multiface.h
#ifndef _MULTIFACE_H_
#define _MULTIFACE_H_

/*
 * Defines for SerialMaster, Multiface Card II and Multiface Card III
 * The addresses given below are offsets to the board base address
 * 
 * 6.11.95 Joerg Dorchain (dorchain@mpi-sb.mpg.de)
 *
 */

#define PIA_REG_PADWIDTH 255

#define DUARTBASE 0x0000
#define PITBASE   0x0100
#define ROMBASE   0x0200
#define PIABASE   0x4000

#endif

back to top