[PATCH RFC] Add a macro for null mount options to sbin/mount*

Jean-Sébastien Pédron jspedron at club-internet.fr
Wed Jun 1 02:43:38 PDT 2005


Xin LI wrote:
> Hi, -arch@,
>
> In our mount* utilities, the null mount option, which is usually be used
> as a terminator of an option vector, is defined with some hand-rolled
> terms, e.g.: {NULL}, {NULL, 0, 0, 0}, etc.
>
> I think it would be nice to have a new macro to deal with this, say,
> MOPT_NULL, which would be extended to {NULL, 0, 0, 0}, which can act as
> an explicit initialize.  And in my opinion, something like:

This idea is really great, but may I suggest a name like MOPT_END or
MOPT_LIST_END? Because the macro should indicate the end of this vector,
  not by what it'll be replaced.

Regards,

--
Jean-Sébastien Pédron
http://www.dumbbell.fr/

PGP Key: http://www.dumbbell.fr/pgp/pubkey.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-arch/attachments/20050601/3e11a4b4/signature.bin


More information about the freebsd-arch mailing list