Linux-man Archive on lore.kernel.org
 help / color / Atom feed
From: Yang Xu <xuyang2018.jy@cn.fujitsu.com>
To: <mtk.manpages@gmail.com>
Cc: <linux-man@vger.kernel.org>, Yang Xu <xuyang2018.jy@cn.fujitsu.com>
Subject: [PATCH] quotactl.2: add EINVAL situation of Q_XQUOTARM call
Date: Tue, 3 Dec 2019 14:05:53 +0800
Message-ID: <1575353153-18936-1-git-send-email-xuyang2018.jy@cn.fujitsu.com> (raw)

Since kernel commit 3dd4d40b4208("xfs: Sanity check flags
of Q_XQUOTARM call"), it has added flags check. If it is
not usr,grp,prj quota type, it will report EINVAL.

Signed-off-by: Yang Xu <xuyang2018.jy@cn.fujitsu.com>
---
 man2/quotactl.2 | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/man2/quotactl.2 b/man2/quotactl.2
index 34d3cfca8..d636818bd 100644
--- a/man2/quotactl.2
+++ b/man2/quotactl.2
@@ -666,8 +666,10 @@ value containing flags (the same as in
 .I d_flags
 field of
 .I fs_disk_quota
-structure) which identify what types of quota should be removed
-(note that the quota type passed in the
+structure, check flags since Linux 5.5)
+.\" 3dd4d40b420846dd35869ccc8f8627feef2cff32
+which identify what types of quota
+should be removed(note that the quota type passed in the
 .I cmd
 argument is ignored, but should remain valid in order to pass preliminary
 quotactl syscall handler checks).
@@ -736,6 +738,12 @@ is
 .BR Q_QUOTAON ,
 but the specified quota file is corrupted.
 .TP
+.B EINVAL
+.I cmd
+is
+.BR Q_XQUOTARM ,
+but the addr does not point to valid quota types.
+.TP
 .B ENOENT
 The file specified by
 .I special
-- 
2.18.0




                 reply index

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publically to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1575353153-18936-1-git-send-email-xuyang2018.jy@cn.fujitsu.com \
    --to=xuyang2018.jy@cn.fujitsu.com \
    --cc=linux-man@vger.kernel.org \
    --cc=mtk.manpages@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Linux-man Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-man/0 linux-man/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-man linux-man/ https://lore.kernel.org/linux-man \
		linux-man@vger.kernel.org
	public-inbox-index linux-man

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-man


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git