projects/linux·commit 2e41ae22

AFS: Set s_id in the superblock to the volume name

2e41ae22 · David Howells <[email protected]> · 2011-06-14 00:38:44 +01:00

Set s_id in the superblock to the name of the AFS volume that this superblock
corresponds to.

Signed-off-by: David Howells <[email protected]>
Signed-off-by: Al Viro <[email protected]>
Commit
2e41ae225f742ded5b7d9847cd8bd605f27daba8
Parents
f9f07b6c

Changes

1 files changed · +1 −0

FileStatusAddDelContent
fs/afs/super.cmodified+1−0View file

fs/afs/super.c

View file
diff --git a/fs/afs/super.c b/fs/afs/super.c
index b7d48d7..356dcf0 100644
--- a/fs/afs/super.c
+++ b/fs/afs/super.c
@@ -313,6 +313,7 @@ static int afs_fill_super(struct super_block *sb,
sb->s_magic = AFS_FS_MAGIC;
sb->s_op = &afs_super_ops;
sb->s_bdi = &as->volume->bdi;
+ strlcpy(sb->s_id, as->volume->vlocation->vldb.name, sizeof(sb->s_id));
/* allocate the root inode and dentry */
fid.vid = as->volume->vid;