Re: [PATCH v2 07/13] Add OPEN_TREE_NAMESPACE and FSMOUNT_NAMESPACE to sys/mount.h

Adhemerval Zanella Netto <[email protected]>
Newsgroups gmane.comp.lib.glibc.alpha
Organization Linaro
Message-ID <[email protected]>

On 03/07/26 14:44, Florian Weimer wrote:
>>  /* mount attributes used on fsmount.  */
>>  #define MOUNT_ATTR_RDONLY       0x00000001 /* Mount read-only.  */
>> @@ -267,6 +269,10 @@ enum fsconfig_command
>>  #ifndef OPEN_TREE_CLONE
>>  # define OPEN_TREE_CLONE    1 /* Clone the target tree and attach the clone */
>>  #endif
>> +#ifndef OPEN_TREE_NAMESPACE
>> +# define OPEN_TREE_NAMESPACE 2 /* Clone the target tree into a new mount
>> +				  namespace */
>> +#endif
> I would use
> 
> #define OPEN_TREE_NAMESPACE (1 << 1)
> 
> without the #ifdef.  We added the #ifdef only because the referenced
> commit changed the token sequence for OPEN_TREE_CLONE.

Ack.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.