Re: [PATCH 7/7] tests: Added tests for NFS disk protocol

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jan 04, 2021 at 15:53:08 +0800, Han Han wrote:
> On Wed, Dec 30, 2020 at 5:23 AM Ryan Gahagan <rgahagan@xxxxxxxxxxxxx> wrote:
> 
> > Signed-off-by: Ryan Gahagan <rgahagan@xxxxxxxxxxxxx>
> > ---

[...]

> > function='0x0'/>
> > +    </disk>
> > +    <disk type='network' device='disk'>
> > +      <driver name='qemu' type='qcow2'/>
> > +      <source protocol='gluster' name='Volume2/Image'>
> > +        <host transport='unix' socket='/path/to/sock'/>
> > +      </source>
> > +      <backingStore type='network' index='1'>
> > +        <format type='qcow2'/>
> > +        <source protocol='nfs' name='/backing/store/nfs'>
> > +          <host name='example.org'/>
> > +          <nfs user='+1234' group='+5678'/>
> >
> I am curious why the uid/gid here is formatted as +NUMBER instead of the
> NUMBER itself...

The '+' prefix means that the user is explicitly an UID (numeric) and
must not be translated to an uid from a username (you can have numeric
user name which maps to a different UID).

In the tests we want to bypass the translation to preserve stable
output.




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux