Skip to content

Commit fb092d4

Browse files
Kent Overstreettytso
authored andcommitted
ext4: add support for FS_IOC_GETFSSYSFSPATH
The new sysfs path ioctl lets us get the /sys/fs/ path for a given filesystem in a fs agnostic way, potentially nudging us towards standarizing some of our reporting. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev> Cc: Theodore Ts'o <tytso@mit.edu> Cc: Andreas Dilger <adilger.kernel@dilger.ca> Cc: linux-ext4@vger.kernel.org Link: https://lore.kernel.org/r/20240315035308.3563511-4-kent.overstreet@linux.dev Signed-off-by: Theodore Ts'o <tytso@mit.edu>
1 parent 35a1f12 commit fb092d4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

fs/ext4/super.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5340,6 +5340,7 @@ static int __ext4_fill_super(struct fs_context *fc, struct super_block *sb)
53405340
sb->s_quota_types = QTYPE_MASK_USR | QTYPE_MASK_GRP | QTYPE_MASK_PRJ;
53415341
#endif
53425342
super_set_uuid(sb, es->s_uuid, sizeof(es->s_uuid));
5343+
super_set_sysfs_name_bdev(sb);
53435344

53445345
INIT_LIST_HEAD(&sbi->s_orphan); /* unlinked but open files */
53455346
mutex_init(&sbi->s_orphan_lock);

0 commit comments

Comments
 (0)