[node-patches] Change in ovirt-node[master]: utils_fs: cleanup empty dirs on unpersist
fabiand at fedoraproject.org
fabiand at fedoraproject.org
Fri Jul 4 13:28:27 UTC 2014
Fabian Deutsch has submitted this change and it was merged.
Change subject: utils_fs: cleanup empty dirs on unpersist
......................................................................
utils_fs: cleanup empty dirs on unpersist
Up until now, when unpersisting a path like:
/config/var/run/vdsm/persistence/foo
in /config there would be remains stored forever:
/config/var/run/vdsm/persistence
With this patch, the parent directory of the persisted path will be
iteratively cleaned upwards so that empty directories are pruned
from /config
Change-Id: I0431974804819c5d4f587165cae7be665529b345
Signed-off-by: Antoni S. Puimedon <asegurap at redhat.com>
---
M src/ovirt/node/utils/fs/__init__.py
1 file changed, 18 insertions(+), 0 deletions(-)
Approvals:
Fabian Deutsch: Verified; Looks good to me, approved
--
To view, visit http://gerrit.ovirt.org/29572
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I0431974804819c5d4f587165cae7be665529b345
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Antoni Segura Puimedon <asegurap at redhat.com>
Gerrit-Reviewer: Douglas Schilling Landgraf <dougsland at redhat.com>
Gerrit-Reviewer: Fabian Deutsch <fabiand at fedoraproject.org>
Gerrit-Reviewer: automation at ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server
More information about the node-patches
mailing list