aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/ext4.h
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2009-06-13 10:09:48 -0400
committerTheodore Ts'o <tytso@mit.edu>2009-06-13 10:09:48 -0400
commitbc0b0d6d69ee9022f18ae264e62beb30ddeb322a (patch)
treefb1d04af657b6de21fa441c1d14fc296f32c723e /fs/ext4/ext4.h
parent7f4520cc6242780ce720aa440ad4b391f998b558 (diff)
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.h7
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 {
834}; 834};
835 835
836#ifdef __KERNEL__ 836#ifdef __KERNEL__
837
838/*
839 * Mount flags
840 */
841#define EXT4_MF_MNTDIR_SAMPLED 0x0001
842
837/* 843/*
838 * fourth extended-fs super-block data in memory 844 * fourth extended-fs super-block data in memory
839 */ 845 */
@@ -853,6 +859,7 @@ struct ext4_sb_info {
853 struct ext4_super_block *s_es; /* Pointer to the super block in the buffer */ 859 struct ext4_super_block *s_es; /* Pointer to the super block in the buffer */
854 struct buffer_head **s_group_desc; 860 struct buffer_head **s_group_desc;
855 unsigned int s_mount_opt; 861 unsigned int s_mount_opt;
862 unsigned int s_mount_flags;
856 ext4_fsblk_t s_sb_block; 863 ext4_fsblk_t s_sb_block;
857 uid_t s_resuid; 864 uid_t s_resuid;
858 gid_t s_resgid; 865 gid_t s_resgid;