In
a7369bcd860af61a073cb2424139e3acccdcb203, I accidentally reversed
the sense of the error check after the call to dt_statfs() in
lprocfs_dt_rd_{blksize,{files,kbytes}{free,avail}. Unreverse the error
checking.
Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: I91873f23cd69c2217474c26b9751aec259fae155
Reviewed-on: http://review.whamcloud.com/6385
Reviewed-by: Robert Read <robert.read@intel.com>
Tested-by: Hudson
Reviewed-by: Emoly Liu <emoly.liu@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
struct obd_statfs osfs;
int rc = dt_statfs(NULL, dt, &osfs);
struct obd_statfs osfs;
int rc = dt_statfs(NULL, dt, &osfs);
- rc = snprintf(page, count, "%d\n",
+ rc = snprintf(page, count, "%u\n",
(unsigned) osfs.os_bsize);
}
(unsigned) osfs.os_bsize);
}
struct obd_statfs osfs;
int rc = dt_statfs(NULL, dt, &osfs);
struct obd_statfs osfs;
int rc = dt_statfs(NULL, dt, &osfs);
__u32 blk_size = osfs.os_bsize >> 10;
__u64 result = osfs.os_blocks;
__u32 blk_size = osfs.os_bsize >> 10;
__u64 result = osfs.os_blocks;
struct obd_statfs osfs;
int rc = dt_statfs(NULL, dt, &osfs);
struct obd_statfs osfs;
int rc = dt_statfs(NULL, dt, &osfs);
__u32 blk_size = osfs.os_bsize >> 10;
__u64 result = osfs.os_bfree;
__u32 blk_size = osfs.os_bsize >> 10;
__u64 result = osfs.os_bfree;
struct obd_statfs osfs;
int rc = dt_statfs(NULL, dt, &osfs);
struct obd_statfs osfs;
int rc = dt_statfs(NULL, dt, &osfs);
__u32 blk_size = osfs.os_bsize >> 10;
__u64 result = osfs.os_bavail;
__u32 blk_size = osfs.os_bsize >> 10;
__u64 result = osfs.os_bavail;
struct obd_statfs osfs;
int rc = dt_statfs(NULL, dt, &osfs);
struct obd_statfs osfs;
int rc = dt_statfs(NULL, dt, &osfs);
*eof = 1;
rc = snprintf(page, count, LPU64"\n", osfs.os_files);
}
*eof = 1;
rc = snprintf(page, count, LPU64"\n", osfs.os_files);
}
struct obd_statfs osfs;
int rc = dt_statfs(NULL, dt, &osfs);
struct obd_statfs osfs;
int rc = dt_statfs(NULL, dt, &osfs);
*eof = 1;
rc = snprintf(page, count, LPU64"\n", osfs.os_ffree);
}
*eof = 1;
rc = snprintf(page, count, LPU64"\n", osfs.os_ffree);
}