From: Vitaly Kuznetsov Date: Mon, 10 Nov 2014 16:37:02 +0000 (+0100) Subject: Tools: hv: vssdaemon: skip all filesystems mounted readonly X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9e5db05aae4657c7ade34ccc4b93f27ab647498e;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 Signed-off-by: K. Y. Srinivasan Acked-by: Dexuan Cui Signed-off-by: Greg Kroah-Hartman --- 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;