diff options
author | David Howells <dhowells@redhat.com> | 2011-06-13 19:38:44 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2011-06-16 11:44:47 -0400 |
commit | 2e41ae225f742ded5b7d9847cd8bd605f27daba8 (patch) | |
tree | 3ac2eb6cc9c00d5e8c8ecbd6997f8bd8c713225e /fs/afs/super.c | |
parent | f9f07b6c1372b1436aa6b45333445b443ffd8c95 (diff) |
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>
Diffstat (limited to 'fs/afs/super.c')
-rw-r--r-- | fs/afs/super.c | 1 |
1 files changed, 1 insertions, 0 deletions
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, | |||
313 | sb->s_magic = AFS_FS_MAGIC; | 313 | sb->s_magic = AFS_FS_MAGIC; |
314 | sb->s_op = &afs_super_ops; | 314 | sb->s_op = &afs_super_ops; |
315 | sb->s_bdi = &as->volume->bdi; | 315 | sb->s_bdi = &as->volume->bdi; |
316 | strlcpy(sb->s_id, as->volume->vlocation->vldb.name, sizeof(sb->s_id)); | ||
316 | 317 | ||
317 | /* allocate the root inode and dentry */ | 318 | /* allocate the root inode and dentry */ |
318 | fid.vid = as->volume->vid; | 319 | fid.vid = as->volume->vid; |