* Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
- * Copyright (c) 2011, 2012, Intel Corporation.
+ * Copyright (c) 2011, 2013, Intel Corporation.
*/
/*
* This file is part of Lustre, http://www.lustre.org/
struct obd_statfs osfs;
int rc = dt_statfs(NULL, dt, &osfs);
- if (rc != 0) {
+ if (rc == 0) {
*eof = 1;
- rc = snprintf(page, count, "%d\n",
+ rc = snprintf(page, count, "%u\n",
(unsigned) osfs.os_bsize);
}
struct obd_statfs osfs;
int rc = dt_statfs(NULL, dt, &osfs);
- if (rc != 0) {
+ if (rc == 0) {
__u32 blk_size = osfs.os_bsize >> 10;
__u64 result = osfs.os_blocks;
struct obd_statfs osfs;
int rc = dt_statfs(NULL, dt, &osfs);
- if (rc != 0) {
+ if (rc == 0) {
__u32 blk_size = osfs.os_bsize >> 10;
__u64 result = osfs.os_bfree;
struct obd_statfs osfs;
int rc = dt_statfs(NULL, dt, &osfs);
- if (rc != 0) {
+ if (rc == 0) {
__u32 blk_size = osfs.os_bsize >> 10;
__u64 result = osfs.os_bavail;
struct obd_statfs osfs;
int rc = dt_statfs(NULL, dt, &osfs);
- if (rc != 0) {
+ if (rc == 0) {
*eof = 1;
rc = snprintf(page, count, LPU64"\n", osfs.os_files);
}
struct obd_statfs osfs;
int rc = dt_statfs(NULL, dt, &osfs);
- if (rc != 0) {
+ if (rc == 0) {
*eof = 1;
rc = snprintf(page, count, LPU64"\n", osfs.os_ffree);
}