summaryrefslogtreecommitdiff
path: root/quotaio.c
diff options
context:
space:
mode:
authorjkar8572 <jkar8572>2007-08-23 18:55:27 +0000
committerjkar8572 <jkar8572>2007-08-23 18:55:27 +0000
commit690f9c08922da8d625732259c5db5f67a17ed4e0 (patch)
tree71557de433450887299a18a344280547577b6749 /quotaio.c
parent8719bd099ddcab78a31aab6cc72cc37e4b783af1 (diff)
Made possible to use quota rpc in mixed NFSv3 and NFSv4 environments -
quota(1) and similar tools now use paths without leading / for NFSv4 mounts (Jan Kara)
Diffstat (limited to 'quotaio.c')
-rw-r--r--quotaio.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/quotaio.c b/quotaio.c
index bb87c4e..65c108c 100644
--- a/quotaio.c
+++ b/quotaio.c
@@ -54,6 +54,7 @@ struct quota_handle *init_io(struct mntent *mnt, int type, int fmt, int flags)
h->qh_type = type;
sstrncpy(h->qh_quotadev, mnt_fsname, sizeof(h->qh_quotadev));
free((char *)mnt_fsname);
+ sstrncpy(h->qh_fstype, mnt->mnt_type, MAX_FSTYPE_LEN);
if (nfs_fstype(mnt->mnt_type)) { /* NFS filesystem? */
if (fmt != -1 && fmt != QF_RPC) { /* User wanted some other format? */
errstr(_("Only RPC quota format is allowed on NFS filesystem.\n"));