summaryrefslogtreecommitdiff
path: root/fs/nfs/objlayout/pnfs_osd_xdr_cli.c
diff options
context:
space:
mode:
authorBoaz Harrosh <bharrosh@panasas.com>2011-08-04 08:52:51 +0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2011-08-04 19:54:48 +0400
commit9af7db3228acc286c50e3a0f054ec982efdbc6c6 (patch)
treecaf8fee7b55477d3710b08436c3d3285013bbc09 /fs/nfs/objlayout/pnfs_osd_xdr_cli.c
parent20618b21da0796115e81906d24ff1601552701b7 (diff)
downloadlinux-9af7db3228acc286c50e3a0f054ec982efdbc6c6.tar.xz
pnfs-obj: Fix the comp_index != 0 case
There were bugs in the case of partial layout where olo_comp_index is not zero. This used to work and was tested but one of the later cleanup SQUASHMEs broke it and was not tested since. Also add a dprint that specify those received layout parameters. Everything else was already printed. [Needed in v3.0] CC: Stable Tree <stable@kernel.org> Signed-off-by: Boaz Harrosh <bharrosh@panasas.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/objlayout/pnfs_osd_xdr_cli.c')
-rw-r--r--fs/nfs/objlayout/pnfs_osd_xdr_cli.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/nfs/objlayout/pnfs_osd_xdr_cli.c b/fs/nfs/objlayout/pnfs_osd_xdr_cli.c
index 16fc758e9123..b3918f7ac34d 100644
--- a/fs/nfs/objlayout/pnfs_osd_xdr_cli.c
+++ b/fs/nfs/objlayout/pnfs_osd_xdr_cli.c
@@ -170,6 +170,9 @@ int pnfs_osd_xdr_decode_layout_map(struct pnfs_osd_layout *layout,
p = _osd_xdr_decode_data_map(p, &layout->olo_map);
layout->olo_comps_index = be32_to_cpup(p++);
layout->olo_num_comps = be32_to_cpup(p++);
+ dprintk("%s: olo_comps_index=%d olo_num_comps=%d\n", __func__,
+ layout->olo_comps_index, layout->olo_num_comps);
+
iter->total_comps = layout->olo_num_comps;
return 0;
}