Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tools: hv: skip iso9660 mounts in hv_vss_daemon

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>

authored by

Olaf Hering and committed by
Greg Kroah-Hartman
10b637b4 7b413b65

+2
+2
tools/hv/hv_vss_daemon.c
··· 88 88 while((ent = getmntent(mounts))) { 89 89 if (strncmp(ent->mnt_fsname, match, strlen(match))) 90 90 continue; 91 + if (strcmp(ent->mnt_type, "iso9660") == 0) 92 + continue; 91 93 if (strcmp(ent->mnt_dir, "/") == 0) { 92 94 root_seen = 1; 93 95 continue;