OSDN Git Service

block/nfs: Implement bdrv_dirname()
authorMax Reitz <mreitz@redhat.com>
Fri, 1 Feb 2019 19:29:22 +0000 (20:29 +0100)
committerMax Reitz <mreitz@redhat.com>
Mon, 25 Feb 2019 14:11:26 +0000 (15:11 +0100)
commit0dcbc54a950986c5fbba5b2619fc4a33f92cb348
treeb5fe8a2bf36d09d402bf49ffca6aa733577f0e87
parent8a6239c071e27f2780b27461279b4ec8ec1b8b26
block/nfs: Implement bdrv_dirname()

While the basic idea is obvious and could be handled by the default
bdrv_dirname() implementation, we cannot generate a directory name if
the gid or uid are set, so we have to explicitly return NULL in those
cases.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Message-id: 20190201192935.18394-19-mreitz@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/nfs.c