diff options
author | Olaf Hering <olaf@aepfle.de> | 2013-04-24 10:48:53 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-04-24 12:02:35 -0400 |
commit | 10b637b4c8a21b299f691cecc4b6f16f44936c6d (patch) | |
tree | f046c2085ef310fafd7a51a490406e82bca2f224 /tools | |
parent | 7b413b65531422cc3d12a8acf53a43bc0d3c9f7b (diff) |
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>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/hv/hv_vss_daemon.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/hv/hv_vss_daemon.c b/tools/hv/hv_vss_daemon.c index dc73a897d8c6..712cfc516c65 100644 --- a/tools/hv/hv_vss_daemon.c +++ b/tools/hv/hv_vss_daemon.c | |||
@@ -88,6 +88,8 @@ static int vss_operate(int operation) | |||
88 | while((ent = getmntent(mounts))) { | 88 | while((ent = getmntent(mounts))) { |
89 | if (strncmp(ent->mnt_fsname, match, strlen(match))) | 89 | if (strncmp(ent->mnt_fsname, match, strlen(match))) |
90 | continue; | 90 | continue; |
91 | if (strcmp(ent->mnt_type, "iso9660") == 0) | ||
92 | continue; | ||
91 | if (strcmp(ent->mnt_dir, "/") == 0) { | 93 | if (strcmp(ent->mnt_dir, "/") == 0) { |
92 | root_seen = 1; | 94 | root_seen = 1; |
93 | continue; | 95 | continue; |