From: David Howells Date: Mon, 13 Jun 2011 23:38:44 +0000 (+0100) Subject: AFS: Set s_id in the superblock to the volume name X-Git-Tag: Ubuntu-5.0.0-8.9~18462^2~1 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=2e41ae225f742ded5b7d9847cd8bd605f27daba8;p=mirror_ubuntu-disco-kernel.git 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 Signed-off-by: Al Viro --- diff --git a/fs/afs/super.c b/fs/afs/super.c index b7d48d7eaa1e..356dcf0929e8 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;