We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdc8e5f commit 8a59f5dCopy full SHA for 8a59f5d
fs/romfs/super.c
@@ -408,12 +408,17 @@ static void romfs_destroy_inode(struct inode *inode)
408
*/
409
static int romfs_statfs(struct dentry *dentry, struct kstatfs *buf)
410
{
411
+ struct super_block *sb = dentry->d_sb;
412
+ u64 id = huge_encode_dev(sb->s_bdev->bd_dev);
413
+
414
buf->f_type = ROMFS_MAGIC;
415
buf->f_namelen = ROMFS_MAXFN;
416
buf->f_bsize = ROMBSIZE;
417
buf->f_bfree = buf->f_bavail = buf->f_ffree;
418
buf->f_blocks =
419
(romfs_maxsize(dentry->d_sb) + ROMBSIZE - 1) >> ROMBSBITS;
420
+ buf->f_fsid.val[0] = (u32)id;
421
+ buf->f_fsid.val[1] = (u32)(id >> 32);
422
return 0;
423
}
424
0 commit comments