Skip to content

Commit 2e41ae2

Browse files
dhowellsAl Viro
authored andcommitted
AFS: Set s_id in the superblock to the volume name
Set s_id in the superblock to the name of the AFS volume that this superblock corresponds to. Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent f9f07b6 commit 2e41ae2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎fs/afs/super.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@ static int afs_fill_super(struct super_block *sb,
313313
sb->s_magic = AFS_FS_MAGIC;
314314
sb->s_op = &afs_super_ops;
315315
sb->s_bdi = &as->volume->bdi;
316+
strlcpy(sb->s_id, as->volume->vlocation->vldb.name, sizeof(sb->s_id));
316317

317318
/* allocate the root inode and dentry */
318319
fid.vid = as->volume->vid;

0 commit comments

Comments
 (0)