aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAnton Altaparmakov <aia21@cantab.net>2006-03-23 11:09:40 -0500
committerAnton Altaparmakov <aia21@cantab.net>2006-03-23 11:09:40 -0500
commit2c2c8c1c211c75d0cc9d7642a569ceac1aecd96d (patch)
tree59cc527665d49ec7882a03302f25bcb4bd69525d /fs
parentd4faf636d6f8d8940174e38317161eb08a7a57ec (diff)
NTFS: Improve comments on file attribute flags in fs/ntfs/layout.h.
Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
Diffstat (limited to 'fs')
-rw-r--r--fs/ntfs/ChangeLog1
-rw-r--r--fs/ntfs/layout.h25
2 files changed, 13 insertions, 13 deletions
diff --git a/fs/ntfs/ChangeLog b/fs/ntfs/ChangeLog
index 41d0381be6ea..a3a9d4b97979 100644
--- a/fs/ntfs/ChangeLog
+++ b/fs/ntfs/ChangeLog
@@ -37,6 +37,7 @@ ToDo/Notes:
37 - Limit name length in fs/ntfs/unistr.c::ntfs_nlstoucs() to maximum 37 - Limit name length in fs/ntfs/unistr.c::ntfs_nlstoucs() to maximum
38 allowed by NTFS, i.e. 255 Unicode characters, not including the 38 allowed by NTFS, i.e. 255 Unicode characters, not including the
39 terminating NULL (which is not stored on disk). 39 terminating NULL (which is not stored on disk).
40 - Improve comments on file attribute flags in fs/ntfs/layout.h.
40 41
412.1.26 - Minor bug fixes and updates. 422.1.26 - Minor bug fixes and updates.
42 43
diff --git a/fs/ntfs/layout.h b/fs/ntfs/layout.h
index f4283e120709..d34b93cb8b48 100644
--- a/fs/ntfs/layout.h
+++ b/fs/ntfs/layout.h
@@ -801,13 +801,16 @@ typedef struct {
801typedef ATTR_RECORD ATTR_REC; 801typedef ATTR_RECORD ATTR_REC;
802 802
803/* 803/*
804 * File attribute flags (32-bit). 804 * File attribute flags (32-bit) appearing in the file_attributes fields of the
805 * STANDARD_INFORMATION attribute of MFT_RECORDs and the FILENAME_ATTR
806 * attributes of MFT_RECORDs and directory index entries.
807 *
808 * All of the below flags appear in the directory index entries but only some
809 * appear in the STANDARD_INFORMATION attribute whilst only some others appear
810 * in the FILENAME_ATTR attribute of MFT_RECORDs. Unless otherwise stated the
811 * flags appear in all of the above.
805 */ 812 */
806enum { 813enum {
807 /*
808 * The following flags are only present in the STANDARD_INFORMATION
809 * attribute (in the field file_attributes).
810 */
811 FILE_ATTR_READONLY = const_cpu_to_le32(0x00000001), 814 FILE_ATTR_READONLY = const_cpu_to_le32(0x00000001),
812 FILE_ATTR_HIDDEN = const_cpu_to_le32(0x00000002), 815 FILE_ATTR_HIDDEN = const_cpu_to_le32(0x00000002),
813 FILE_ATTR_SYSTEM = const_cpu_to_le32(0x00000004), 816 FILE_ATTR_SYSTEM = const_cpu_to_le32(0x00000004),
@@ -839,18 +842,14 @@ enum {
839 F_A_COMPRESSED, and F_A_ENCRYPTED and preserves the rest. This mask 842 F_A_COMPRESSED, and F_A_ENCRYPTED and preserves the rest. This mask
840 is used to to obtain all flags that are valid for setting. */ 843 is used to to obtain all flags that are valid for setting. */
841 /* 844 /*
842 * The following flag is only present in the FILE_NAME attribute (in 845 * The flag FILE_ATTR_DUP_FILENAME_INDEX_PRESENT is present in all
843 * the field file_attributes). 846 * FILENAME_ATTR attributes but not in the STANDARD_INFORMATION
847 * attribute of an mft record.
844 */ 848 */
845 FILE_ATTR_DUP_FILE_NAME_INDEX_PRESENT = const_cpu_to_le32(0x10000000), 849 FILE_ATTR_DUP_FILE_NAME_INDEX_PRESENT = const_cpu_to_le32(0x10000000),
846 /* Note, this is a copy of the corresponding bit from the mft record, 850 /* Note, this is a copy of the corresponding bit from the mft record,
847 telling us whether this is a directory or not, i.e. whether it has 851 telling us whether this is a directory or not, i.e. whether it has
848 an index root attribute or not. */ 852 an index root attribute or not. */
849 /*
850 * The following flag is present both in the STANDARD_INFORMATION
851 * attribute and in the FILE_NAME attribute (in the field
852 * file_attributes).
853 */
854 FILE_ATTR_DUP_VIEW_INDEX_PRESENT = const_cpu_to_le32(0x20000000), 853 FILE_ATTR_DUP_VIEW_INDEX_PRESENT = const_cpu_to_le32(0x20000000),
855 /* Note, this is a copy of the corresponding bit from the mft record, 854 /* Note, this is a copy of the corresponding bit from the mft record,
856 telling us whether this file has a view index present (eg. object id 855 telling us whether this file has a view index present (eg. object id
@@ -891,7 +890,7 @@ typedef struct {
891 Windows this is only updated when 890 Windows this is only updated when
892 accessed if some time delta has 891 accessed if some time delta has
893 passed since the last update. Also, 892 passed since the last update. Also,
894 last access times updates can be 893 last access time updates can be
895 disabled altogether for speed. */ 894 disabled altogether for speed. */
896/* 32*/ FILE_ATTR_FLAGS file_attributes; /* Flags describing the file. */ 895/* 32*/ FILE_ATTR_FLAGS file_attributes; /* Flags describing the file. */
897/* 36*/ union { 896/* 36*/ union {