22 * volume.h - Defines for volume structures in NTFS Linux kernel driver. Part
33 * of the Linux-NTFS project.
44 *
5- * Copyright (c) 2001-2005 Anton Altaparmakov
5+ * Copyright (c) 2001-2006 Anton Altaparmakov
66 * Copyright (c) 2002 Richard Russon
77 *
88 * This program/include file is free software; you can redistribute it and/or
@@ -41,10 +41,8 @@ typedef struct {
4141 * structure has stabilized... (AIA)
4242 */
4343 /* Device specifics. */
44- struct super_block * sb ; /* Pointer back to the super_block,
45- so we don't have to get the offset
46- every time. */
47- LCN nr_blocks ; /* Number of NTFS_BLOCK_SIZE bytes
44+ struct super_block * sb ; /* Pointer back to the super_block. */
45+ LCN nr_blocks ; /* Number of sb->s_blocksize bytes
4846 sized blocks on the device. */
4947 /* Configuration provided by user at mount time. */
5048 unsigned long flags ; /* Miscellaneous flags, see below. */
@@ -141,8 +139,8 @@ typedef enum {
141139 NV_ShowSystemFiles , /* 1: Return system files in ntfs_readdir(). */
142140 NV_CaseSensitive , /* 1: Treat file names as case sensitive and
143141 create filenames in the POSIX namespace.
144- Otherwise be case insensitive and create
145- file names in WIN32 namespace. */
142+ Otherwise be case insensitive but still
143+ create file names in POSIX namespace. */
146144 NV_LogFileEmpty , /* 1: $LogFile journal is empty. */
147145 NV_QuotaOutOfDate , /* 1: $Quota is out of date. */
148146 NV_UsnJrnlStamped , /* 1: $UsnJrnl has been stamped. */
@@ -153,7 +151,7 @@ typedef enum {
153151 * Macro tricks to expand the NVolFoo(), NVolSetFoo(), and NVolClearFoo()
154152 * functions.
155153 */
156- #define NVOL_FNS (flag ) \
154+ #define DEFINE_NVOL_BIT_OPS (flag ) \
157155static inline int NVol##flag(ntfs_volume *vol) \
158156{ \
159157 return test_bit(NV_##flag, &(vol)->flags); \
@@ -168,12 +166,12 @@ static inline void NVolClear##flag(ntfs_volume *vol) \
168166}
169167
170168/* Emit the ntfs volume bitops functions. */
171- NVOL_FNS (Errors )
172- NVOL_FNS (ShowSystemFiles )
173- NVOL_FNS (CaseSensitive )
174- NVOL_FNS (LogFileEmpty )
175- NVOL_FNS (QuotaOutOfDate )
176- NVOL_FNS (UsnJrnlStamped )
177- NVOL_FNS (SparseEnabled )
169+ DEFINE_NVOL_BIT_OPS (Errors )
170+ DEFINE_NVOL_BIT_OPS (ShowSystemFiles )
171+ DEFINE_NVOL_BIT_OPS (CaseSensitive )
172+ DEFINE_NVOL_BIT_OPS (LogFileEmpty )
173+ DEFINE_NVOL_BIT_OPS (QuotaOutOfDate )
174+ DEFINE_NVOL_BIT_OPS (UsnJrnlStamped )
175+ DEFINE_NVOL_BIT_OPS (SparseEnabled )
178176
179177#endif /* _LINUX_NTFS_VOLUME_H */
0 commit comments