From: Benny Halevy <bhalevy@xxxxxxxxxx> --- fs/nfsd/bl_ops.c | 1 + fs/nfsd/nfs4xdr.c | 3 +++ 2 files changed, 4 insertions(+), 0 deletions(-) diff --git a/fs/nfsd/bl_ops.c b/fs/nfsd/bl_ops.c index 22875fb..89249c4 100644 --- a/fs/nfsd/bl_ops.c +++ b/fs/nfsd/bl_ops.c @@ -184,6 +184,7 @@ static boolean_t extents_process(struct fiemap_extent_info *fei, int bl_layout_type(struct super_block *sb) { + dprintk("%s --> %d\n", __func__, LAYOUT_BLOCK_VOLUME); return LAYOUT_BLOCK_VOLUME; } diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c index 2263830..bd8e693 100644 --- a/fs/nfsd/nfs4xdr.c +++ b/fs/nfsd/nfs4xdr.c @@ -2592,6 +2592,8 @@ static __be32 fattr_handle_absent_fs(u32 *bmval0, u32 *bmval1, u32 *rdattr_err) if (sb && sb->s_pnfs_op && sb->s_pnfs_op->layout_type) type = sb->s_pnfs_op->layout_type(sb); + dprintk("%s: sb=%p s_pnfs_op=%p layout_type()=%p layout_type=%u\n", + __func__, sb, sb->s_pnfs_op, sb->s_pnfs_op ? sb->s_pnfs_op->layout_type : NULL, type); if (type) { if ((buflen -= 4) < 0) /* type */ goto out_resource; @@ -2604,6 +2606,7 @@ static __be32 fattr_handle_absent_fs(u32 *bmval0, u32 *bmval1, u32 *rdattr_err) if (bmval2 & FATTR4_WORD2_LAYOUT_BLKSIZE) { if ((buflen -= 4) < 0) goto out_resource; + dprintk("%s: layout_blksize=%lu\n", __func__, stat.blksize); WRITE32(stat.blksize); } #endif /* CONFIG_PNFSD */ -- 1.7.6 -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html