Dan Kenigsberg has submitted this change and it was merged.
Change subject: mount.py: handle (deleted) mount points
......................................................................
mount.py: handle (deleted) mount points
If an NFS mount is removed from the server, client side kernel appends
" (deleted)" to it specification. It comes from fs/dcache.c's d_path()
function:
Convert a dentry into an ASCII path name. If the entry has been deleted
the string " (deleted)" is appended. Note that this is ambiguous.
In this patch we assume that every mount specification ending with this
string is indeed a deleted one, and not a funky nfs server provided by
an evil admin that hates Linux.
Change-Id: I8fdeda5f2900d818912ef5a939b60687462d5344
Bug-Url:
http://bugzilla.redhat.com/807351
Signed-off-by: Saggi Mizrahi <smizrahi(a)redhat.com>
Signed-off-by: Dan Kenigsberg <danken(a)redhat.com>
---
M vdsm/storage/mount.py
1 file changed, 8 insertions(+), 0 deletions(-)
Approvals:
Haim Ateya: Verified
Federico Simoncelli: Looks good to me, approved
Dan Kenigsberg:
--
To view, visit
http://gerrit.ovirt.org/3261
To unsubscribe, visit
http://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I8fdeda5f2900d818912ef5a939b60687462d5344
Gerrit-PatchSet: 16
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Saggi Mizrahi <smizrahi(a)redhat.com>
Gerrit-Reviewer: Dan Kenigsberg <danken(a)redhat.com>
Gerrit-Reviewer: Daniel Paikov <paikov(a)gmail.com>
Gerrit-Reviewer: Eduardo <ewarszaw(a)redhat.com>
Gerrit-Reviewer: Federico Simoncelli <fsimonce(a)redhat.com>
Gerrit-Reviewer: Haim Ateya <hateya(a)redhat.com>
Gerrit-Reviewer: Saggi Mizrahi <smizrahi(a)redhat.com>
Gerrit-Reviewer: Yeela Kaplan <ykaplan(a)redhat.com>
Gerrit-Reviewer: oVirt Jenkins CI Server