]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
AFS: Set s_id in the superblock to the volume name
authorDavid Howells <dhowells@redhat.com>
Mon, 13 Jun 2011 23:38:44 +0000 (00:38 +0100)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 16 Jun 2011 15:44:47 +0000 (11:44 -0400)
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>
fs/afs/super.c

index b7d48d7eaa1eed5d5506670fea66695f48feff77..356dcf0929e8f0de36a166a2054e34c5ef3396c3 100644 (file)
@@ -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;