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

Peter Krempa pkrempa at redhat.com
Mon Jan 4 10:46:54 UTC 2021


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 at cs.utexas.edu> wrote:
> 
> > Signed-off-by: Ryan Gahagan <rgahagan at cs.utexas.edu>
> > ---

[...]

> > 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.




More information about the libvir-list mailing list