tools: hv: skip iso9660 mounts in hv_vss_daemon
authorOlaf Hering <olaf@aepfle.de>
Wed, 24 Apr 2013 14:48:53 +0000 (07:48 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Apr 2013 16:02:35 +0000 (09:02 -0700)
fsreeze does not work for iso9660 filesystems. A ENOSUPP may be caught
in the freeze case, but the subsequent thaw call would fail and leads to
a false error.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/hv/hv_vss_daemon.c

index dc73a897d8c6cebf98c2170a7cc099121f271e55..712cfc516c65665606a6a93e53c7a4f24d9b4209 100644 (file)
@@ -88,6 +88,8 @@ 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)
+                       continue;
                if (strcmp(ent->mnt_dir, "/") == 0) {
                        root_seen = 1;
                        continue;