Skip to content

Commit

Permalink
Orangefs: make .statfs gossip_debug more complete.
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Marshall <[email protected]>
  • Loading branch information
hubcapsc committed Jan 13, 2016
1 parent 569dbfc commit be57366
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions fs/orangefs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,15 @@ static int orangefs_statfs(struct dentry *dentry, struct kstatfs *buf)
goto out_op_release;

gossip_debug(GOSSIP_SUPER_DEBUG,
"orangefs_statfs: got %ld blocks available | "
"%ld blocks total | %ld block size\n",
"%s: got %ld blocks available | "
"%ld blocks total | %ld block size | "
"%ld files total | %ld files avail\n",
__func__,
(long)new_op->downcall.resp.statfs.blocks_avail,
(long)new_op->downcall.resp.statfs.blocks_total,
(long)new_op->downcall.resp.statfs.block_size);
(long)new_op->downcall.resp.statfs.block_size,
(long)new_op->downcall.resp.statfs.files_total,
(long)new_op->downcall.resp.statfs.files_avail);

buf->f_type = sb->s_magic;
memcpy(&buf->f_fsid, &ORANGEFS_SB(sb)->fs_id, sizeof(buf->f_fsid));
Expand Down

0 comments on commit be57366

Please sign in to comment.