6303111
From 8b6ce13e1b196cb9d0cc5b24dfc75c97a9eb883d Mon Sep 17 00:00:00 2001
6303111
From: Jan Kara <jack@suse.cz>
6303111
Date: Mon, 20 Aug 2012 19:16:05 +0200
6303111
Subject: [PATCH] quota: Fix reporting of NFS mountpoints
6303111
6303111
Commit b8ab76ad19e3c284ac14bd0450662bfc41719e03 creating split_nfs_mount()
6303111
forgot to remove zeroing of pathname character. That lead to broken reporting
6303111
quotas for NFSv3 mount points.
6303111
6303111
Thanks to anonymous reporter for spotting this.
6303111
6303111
Signed-off-by: Jan Kara <jack@suse.cz>
6303111
---
6303111
 rquota_client.c | 1 -
6303111
 1 file changed, 1 deletion(-)
6303111
6303111
diff --git a/rquota_client.c b/rquota_client.c
6303111
index 54a8921..e26e066 100644
6303111
--- a/rquota_client.c
6303111
+++ b/rquota_client.c
6303111
@@ -162,7 +162,6 @@ int rpc_rquota_get(struct dquot *dquot)
6303111
 		return -ENOENT;
6303111
 	}
6303111
 
6303111
-	*pathname++ = '\0';
6303111
 	/* For NFSv4, we send the filesystem path without initial /. Server prepends proper
6303111
 	 * NFS pseudoroot automatically and uses this for detection of NFSv4 mounts. */
6303111
 	if ((dquot->dq_h->qh_io_flags & IOFL_NFS_MIXED_PATHS) &&
6303111
-- 
6303111
1.7.11.4
6303111