From: Alejandro Colomar <alx@kernel.org>
To: Jan Kara <jack@suse.cz>
Cc: linux-man@vger.kernel.org, Petr Gajdos <pgajdos@suse.cz>,
Jan Blunck <jblunck@novell.com>
Subject: Re: [PATCH v1] man/man2/quotactl.2: tfix
Date: Mon, 18 May 2026 14:51:45 +0200 [thread overview]
Message-ID: <agsKOHLgfGkiyE1r@devuan> (raw)
In-Reply-To: <kf4k33gsaax2v2iwzfprvogsyfqxbjdldpkdefwraaea2ytijx@tm7g2gul3h53>
[-- Attachment #1: Type: text/plain, Size: 1456 bytes --]
Hi Jan,
On 2026-05-18T12:20:50+0200, Jan Kara wrote:
> On Sat 16-05-26 19:12:08, Alejandro Colomar wrote:
> > It seems most likely that this was a typo, and that Q_XQUOTAON was
> > meant.
> >
> > Fixes: 1eeddf25 (2010-06-16; "quotactl.2: Major updates")
> > Cc: Jan Kara <jack@suse.cz>
> > Cc: Petr Gajdos <pgajdos@suse.cz>
> > Cc: Jan Blunck <jblunck@novell.com>
> > Signed-off-by: Alejandro Colomar <alx@kernel.org>
>
> Right. Thanks for the fix. Feel free to add:
I have more questions about quotactl(2). In the operations that ignore
the 'id' argument, am I right to assume that QCMD() is unnecessary? My
assumption is because if there's no user or group ID to be used, it also
doesn't make sense to specify whether we want to affect a user or a
group.
So, for example, Q_QUOTAOFF would have the following synopsis:
int quotactl(Q_QUOTAOFF, const char *_Nullable special, 0, NULL);
While Q_QUOTAON would have the following one:
int quotactl(QCMD(Q_QUOTAON, type), const char *_Nullable special,
int fmt, caddr_t quota_path);
Is that correct?
Also, I wonder why caddr_t was used at all, instead of void*. It seems
to unnecessarily require a cast, which could have been avoided with
void*. In quotactl_fd(), since we need to use syscall(2), which is
variadic, I'll document the correct pointer types, instead of caddr_t*.
Have a lovely day!
Alex
--
<https://www.alejandro-colomar.es>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2026-05-18 12:51 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-16 17:12 [PATCH v1] man/man2/quotactl.2: tfix Alejandro Colomar
2026-05-18 10:20 ` Jan Kara
2026-05-18 10:27 ` Alejandro Colomar
2026-05-18 12:51 ` Alejandro Colomar [this message]
2026-05-18 15:05 ` Jan Kara
2026-05-18 15:12 ` Alejandro Colomar
2026-05-18 15:17 ` Why is caddr_t used in quotactl(2)? Alejandro Colomar
Reply instructions:
You may reply publicly 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=agsKOHLgfGkiyE1r@devuan \
--to=alx@kernel.org \
--cc=jack@suse.cz \
--cc=jblunck@novell.com \
--cc=linux-man@vger.kernel.org \
--cc=pgajdos@suse.cz \
/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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox