api/admin: expose volume path in admin.vm.volume.Info
Since (for LVM at least) path is dynamic now, add information about it to volume info. This is not very useful outside of dom0, but in dom0 it can be very useful for various scripts. This will disclose current volume revision id, but it is already possible to deduce it from snapshots list.
This commit is contained in:
parent
4282a41fcb
commit
d211a2771a
@ -335,7 +335,7 @@ class QubesAdminAPI(qubes.api.AbstractQubesAPI):
|
||||
volume = self.dest.volumes[self.arg]
|
||||
# properties defined in API
|
||||
volume_properties = [
|
||||
'pool', 'vid', 'size', 'usage', 'rw', 'source',
|
||||
'pool', 'vid', 'size', 'usage', 'rw', 'source', 'path',
|
||||
'save_on_stop', 'snap_on_start', 'revisions_to_keep']
|
||||
|
||||
def _serialize(value):
|
||||
|
@ -39,7 +39,7 @@ import qubes.storage
|
||||
|
||||
# properties defined in API
|
||||
volume_properties = [
|
||||
'pool', 'vid', 'size', 'usage', 'rw', 'source',
|
||||
'pool', 'vid', 'size', 'usage', 'rw', 'source', 'path',
|
||||
'save_on_stop', 'snap_on_start', 'revisions_to_keep']
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user