check_deep_fs: realpath check

This commit is contained in:
ranl 2014-01-01 14:01:39 +02:00
parent c920dfd133
commit ae93696f89
1 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ Monitor a mount on the filesystem and all of it sub mounts
from optparse import OptionParser
import subprocess
import os
import os.path
def parse_args():
@ -43,7 +43,7 @@ def get_mount_point(loc):
Get the mount point of the path
'''
mount = os.readlink(os.path.abspath(loc))
mount = os.path.realpath(os.path.abspath(loc))
while not os.path.ismount(mount):
mount = os.path.dirname(mount)