[libvirt PATCHv3 0/4] Add support for QEMU's fmode and dmode

Brian Turek brian.turek at gmail.com
Tue Oct 6 18:36:03 UTC 2020


Peter Krempa wrote:
> Since the qemu command line option is formatted as 4 octal digits, a
> mode such as '1775' which is a valid mode for a directory will still be
> formatted as something which looks like a decimal number:
>
> -fsdev
local,security_model=mapped,dmode=1775,id=fsdev-fs1,path=/export/fs1 \
>
> Also the documentation doesn't mention whether sticky bit and such are
> actually handled.

This is totally fair.  QEMU has zero documentation on the intended limits on
these two options but the QEMU source masks them with 0777.  Given that we
only have the implementation to go off of rather than the intent, should we
assume that sticky bits will never be supported or that it's an
unintentional
shortcoming in the QEMU code?

I can either do similar masking or mask with 07777 and send along the
results
to QEMU as a 5-digit number (the first digit being a leading 0) .The
libvirt docs
could then say the behavior is ultimately determined by QEMU but, currently,
sticky bits are not supported?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20201006/9756b871/attachment-0001.htm>


More information about the libvir-list mailing list