lkml.org 
[lkml]   [2013]   [Mar]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 2/2] tools: hv: skip iso9660 mounts in hv_vss_daemon
    Date
    freeze does not work for iso9660 filesystems. A ENOSUPP may be catched
    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>
    ---
    tools/hv/hv_vss_daemon.c | 2 ++
    1 file changed, 2 insertions(+)

    diff --git a/tools/hv/hv_vss_daemon.c b/tools/hv/hv_vss_daemon.c
    index 830d606..f06cd8c 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)
    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;

    \
     
     \ /
      Last update: 2013-03-26 18:21    [W:4.171 / U:0.204 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site