Added mount option delegated and cached

This commit is contained in:
Christian W 2019-11-01 22:41:45 +01:00 committed by Muayyad Alsadi
parent 147f0ae42f
commit 8c3b7e6c54

View File

@ -100,6 +100,8 @@ def parse_short_mount(mount_str, basedir):
for opt in mount_opts:
if opt=='ro': mount_opt_dict["read_only"]=True
elif opt=='rw': mount_opt_dict["read_only"]=False
elif opt=='delegated': mount_opt_dict["delegated"]=dict(propagation=opt)
elif opt=='cached': mount_opt_dict["cached"]=dict(propagation=opt)
elif propagation_re.match(opt): mount_opt_dict["bind"]=dict(propagation=opt)
else:
# TODO: ignore