parent
ec791b120a
commit
ed5ef6458c
1 changed files with 2 additions and 2 deletions
|
|
@ -42,8 +42,8 @@ def scan_mounts(topdir):
|
|||
for line in fo.readlines():
|
||||
path = line.split()[1]
|
||||
if path.startswith(topdir):
|
||||
if path.endswith('\040(deleted)'):
|
||||
path = path[:-10]
|
||||
if path.endswith(r'\040(deleted)'):
|
||||
path = path[:-13]
|
||||
logger.warning('Found deleted mountpoint: %s' % path)
|
||||
mplist.append(path)
|
||||
fo.close()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue