Changeset View
Changeset View
Standalone View
Standalone View
sys/fs/ext2fs/ext2_lookup.c
Show All 12 Lines | |||||
"char*", "int", "uint32_t", "uint16_t", "uint8_t"); | "char*", "int", "uint32_t", "uint16_t", "uint8_t"); | ||||
#ifdef INVARIANTS | #ifdef INVARIANTS | ||||
static int dirchk = 1; | static int dirchk = 1; | ||||
#else | #else | ||||
static int dirchk = 0; | static int dirchk = 0; | ||||
#endif | #endif | ||||
static SYSCTL_NODE(_vfs, OID_AUTO, e2fs, CTLFLAG_RD, 0, "EXT2FS filesystem"); | static SYSCTL_NODE(_vfs, OID_AUTO, e2fs, CTLFLAG_RD | CTLFLAG_MPSAFE, 0, | ||||
"EXT2FS filesystem"); | |||||
SYSCTL_INT(_vfs_e2fs, OID_AUTO, dircheck, CTLFLAG_RW, &dirchk, 0, ""); | SYSCTL_INT(_vfs_e2fs, OID_AUTO, dircheck, CTLFLAG_RW, &dirchk, 0, ""); | ||||
/* | /* | ||||
DIRBLKSIZE in ffs is DEV_BSIZE (in most cases 512) | DIRBLKSIZE in ffs is DEV_BSIZE (in most cases 512) | ||||
while it is the native blocksize in ext2fs - thus, a #define | while it is the native blocksize in ext2fs - thus, a #define | ||||
is no longer appropriate | is no longer appropriate | ||||
*/ | */ | ||||
#undef DIRBLKSIZ | #undef DIRBLKSIZ | ||||
Show All 12 Lines |