Tools: hv: vssdaemon: Ignore VFAT mounts during the Freeze operation
authorK. Y. Srinivasan <kys@microsoft.com>
Wed, 12 Feb 2014 16:40:22 +0000 (08:40 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 15 Feb 2014 19:53:39 +0000 (11:53 -0800)
If the guest has a FAT file system mounted, skip it during the FREEZE
operation. With this change we can support host initiated backup of
the guest even when the guest may have FAT file systems mounted.

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 520de330457106657ab747581f983d23d695e5df..6a213b8cd7b9034ad097d60b2ce5295e458d4054 100644 (file)
@@ -87,6 +87,8 @@ static int vss_operate(int operation)
                        continue;
                if (strcmp(ent->mnt_type, "iso9660") == 0)
                        continue;
+               if (strcmp(ent->mnt_type, "vfat") == 0)
+                       continue;
                if (strcmp(ent->mnt_dir, "/") == 0) {
                        root_seen = 1;
                        continue;