diff options
author | Theodore Ts'o <tytso@mit.edu> | 2009-06-13 10:09:48 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2009-06-13 10:09:48 -0400 |
commit | bc0b0d6d69ee9022f18ae264e62beb30ddeb322a (patch) | |
tree | fb1d04af657b6de21fa441c1d14fc296f32c723e /fs/ext4/ext4.h | |
parent | 7f4520cc6242780ce720aa440ad4b391f998b558 (diff) | |
download | lwn-bc0b0d6d69ee9022f18ae264e62beb30ddeb322a.tar.gz lwn-bc0b0d6d69ee9022f18ae264e62beb30ddeb322a.zip |
ext4: update the s_last_mounted field in the superblock
This field can be very helpful when a system administrator is trying
to sort through large numbers of block devices or filesystem images.
What is stored in this field can be ambiguous if multiple filesystem
namespaces are in play; what we store in practice is the mountpoint
interpreted by the process's namespace which first opens a file in the
filesystem.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r-- | fs/ext4/ext4.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h index 569f527080bf..9e268c97eeca 100644 --- a/fs/ext4/ext4.h +++ b/fs/ext4/ext4.h @@ -834,6 +834,12 @@ struct ext4_super_block { }; #ifdef __KERNEL__ + +/* + * Mount flags + */ +#define EXT4_MF_MNTDIR_SAMPLED 0x0001 + /* * fourth extended-fs super-block data in memory */ @@ -853,6 +859,7 @@ struct ext4_sb_info { struct ext4_super_block *s_es; /* Pointer to the super block in the buffer */ struct buffer_head **s_group_desc; unsigned int s_mount_opt; + unsigned int s_mount_flags; ext4_fsblk_t s_sb_block; uid_t s_resuid; gid_t s_resgid; |