Re: [PATCH v1] man/man2/quotactl.2: tfix
Alejandro Colomar <[email protected]>
| Newsgroups | org.kernel.vger.linux-man |
|---|---|
| Message-ID | <agsKOHLgfGkiyE1r@devuan> |
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 <[email protected]> > > Cc: Petr Gajdos <[email protected]> > > Cc: Jan Blunck <[email protected]> > > Signed-off-by: Alejandro Colomar <[email protected]> > > 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>
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEES7Jt9u9GbmlWADAi64mZXMKQwqkFAmoLC1oACgkQ64mZXMKQ wqk1Rg/+I9TTiaoSOnA3xQEklFJREh8bNW4qin7fPd7Xiqeh0H2anahlgdca2P6w lrYRiIE1fJuzoOUoEXm9m+H2j9XnSrYsq5fngiBqpkmU8hWm07NNWlAFs24DC2aw ESVudEe+RtzM7QftHXObAXt0gryUPib0HMHeA0ClIGBH2EYzGsfU3bfISVxk7TTP PI7jMNV/ehG6sgSy5Umlhqbw3/D/+ixE2ZW06h1o7pond0ogH6agLaEkP/q0odO3 ePdJq65wSEUYKjzcDCwRmVTWUPwrJwXQfHXvYcKUI60SsxYk666p8CFChQi1OdV4 uoN46a66ip/xRqPsj0W5LG4glpTdGZmA7L9LOkBNz/hmiTRHDTu617YFZtOS+k7f ZPIlaOqnNwTYMuiZ+OmNfH2IBf4n9aRGKwpOTnfF07h858VKIt8IshENPQXLq995 r8vZRAtTGuWWMpJGlLRtdd5bHpFBfS5gyitMM6iG8h/d3Miy4UBhNpVksemtdben VjLzl0YGaIGQJz161QVG6ZFlVfIWw12/vCI7TVGlRJJA2O9U5FhdOPqBuBzRX3Cr yVJU72lsE6pCyD4R3qsO2BA6ID5Tb4EoUFMdub+zYDA9nXLqJQZ+pVhgaNbK9i7h x4mdAL1cAAs8Z1AKXKvbxvvw4dFBvYL9HlkWC/ZCh+WYqoNP+KM= =NCCJ -----END PGP SIGNATURE-----