Skip to content

Commit

Permalink
AFS: Set s_id in the superblock to the volume name
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
dhowells authored and Al Viro committed Jun 16, 2011
1 parent f9f07b6 commit 2e41ae2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/afs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2e41ae2

Please sign in to comment.