tools/virtiofsd: xattr name mappings: Simple 'map'
commit1d84a0213a2ec7094abe6d896ce0ec0b5aa0cacf
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Fri, 23 Oct 2020 16:58:12 +0000 (23 17:58 +0100)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Mon, 26 Oct 2020 18:35:32 +0000 (26 18:35 +0000)
tree2a32448542354c13712bd028ca816a66bfbe49a4
parent491bfaea3bd44b47c62f758efffb67a392ded02b
tools/virtiofsd: xattr name mappings: Simple 'map'

The mapping rule system implemented in the last few patches is
extremely flexible, but not easy to use.  Add a simple
'map' type as a sprinkling of sugar to make it easy.

e.g.

  -o xattrmap=":map::user.virtiofs.:"

would be sufficient to prefix all xattr's
or

  -o xattrmap=":map:trusted.:user.virtiofs.:"

would just prefix 'trusted.' xattr's and leave
everything else alone.

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Message-Id: <20201023165812.36028-6-dgilbert@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
docs/tools/virtiofsd.rst
tools/virtiofsd/passthrough_ll.c