summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorVitaly Kuznetsov <vkuznets@redhat.com>2014-11-10 17:37:02 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-11-26 19:01:11 -0800
commit9e5db05aae4657c7ade34ccc4b93f27ab647498e (patch)
tree88c2f9d471aa4369b81761ead19aec14b8b04561 /tools
parent7a401744d517864f8f2f2afba589e58a71d03aa6 (diff)
downloadlinux-9e5db05aae4657c7ade34ccc4b93f27ab647498e.tar.gz
linux-9e5db05aae4657c7ade34ccc4b93f27ab647498e.tar.bz2
linux-9e5db05aae4657c7ade34ccc4b93f27ab647498e.zip
Tools: hv: vssdaemon: skip all filesystems mounted readonly
Instead of making a list of exceptions for readonly filesystems in addition to iso9660 we already have it is better to skip freeze operation for all readonly-mounted filesystems. Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com> Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Acked-by: Dexuan Cui <decui@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools')
-rw-r--r--tools/hv/hv_vss_daemon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/hv/hv_vss_daemon.c b/tools/hv/hv_vss_daemon.c
index ee44f0d730ef..5e63f70bd956 100644
--- a/tools/hv/hv_vss_daemon.c
+++ b/tools/hv/hv_vss_daemon.c
@@ -102,7 +102,7 @@ static int vss_operate(int operation)
while ((ent = getmntent(mounts))) {
if (strncmp(ent->mnt_fsname, match, strlen(match)))
continue;
- if (strcmp(ent->mnt_type, "iso9660") == 0)
+ if (hasmntopt(ent, MNTOPT_RO) != NULL)
continue;
if (strcmp(ent->mnt_type, "vfat") == 0)
continue;