From: cmc <cmc@rock-chips.com> Date: Thu, 24 Feb 2011 01:28:23 +0000 (+0800) Subject: modify for statfs fail in CTS X-Git-Tag: firefly_0821_release~10757 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=96045752c635a2e1f19a53e2e64fd34710b1759f;p=firefly-linux-kernel-4.4.55.git modify for statfs fail in CTS --- diff --git a/fs/cramfs/inode.c b/fs/cramfs/inode.c old mode 100644 new mode 100755 index dd3634e4c967..96cddcc5bed0 --- a/fs/cramfs/inode.c +++ b/fs/cramfs/inode.c @@ -323,8 +323,10 @@ static int cramfs_statfs(struct dentry *dentry, struct kstatfs *buf) buf->f_type = CRAMFS_MAGIC; buf->f_bsize = PAGE_CACHE_SIZE; buf->f_blocks = CRAMFS_SB(sb)->blocks; - buf->f_bfree = 0; - buf->f_bavail = 0; + // modify by cmc for cts test + buf->f_bfree = 1; // 0 + buf->f_bavail = 1; // 0 + // end modify buf->f_files = CRAMFS_SB(sb)->files; buf->f_ffree = 0; buf->f_fsid.val[0] = (u32)id;