Opened 12 years ago

Closed 12 years ago

#136 closed defect (fixed)

mondorestore hang - no floppy present

Reported by: bruno Owned by: bruno
Priority: normal Milestone: 2.2.5
Component: mondo Version: 2.2.1
Severity: normal Keywords:
Cc:

Description

The problem has been reported on the ML and is stored here so that it's not forgotten:

> >> 10828 0           280 S   sh -c mount /dev/fd0u1722 /tmp/tmpfs/mondo.tmp.17767/ ...
> >> 10829 0           460 D   mount /dev/fd0u1722 /tmp/tmpfs/mondo.tmp.17767/mount. ...
> >>
> >> But, I don't hav a floppy. It looks, that mondorescue try to kill the mount process after the start with a delay of 15 seconds, but nothing happens. The manual kill of the >>process with -9 fails too.

I checked the code, and you're right. The mount is done unconditionaly
:-( And after 15 seconds it's killed. In your case, as the access
remains in the D state, it will never return, thus the issue.

What you can do is comment the lines:

    sprintf(command, "mount /dev/fd0u1722 %s", mountpt);
    sprintf(tmp,
            "(sleep 15; kill `ps | grep \"%s\" | cut -d' ' -f1` 2>
/dev/null) &",
            command);
    mr_msg(1, "tmp = '%s'", tmp);
    system(tmp);
    res = run_program_and_log_output(command, FALSE);
    if (res) {
        sprintf(command, "mount /dev/fd0H1440 %s", mountpt);
        res = run_program_and_log_output(command, FALSE);
    }

in mondo-rstr-tools.c and replace it with:
res=0;

I need to find a better solution of course.

Change History (4)

comment:1 Changed 12 years ago by bruno

  • Milestone changed from 2.2.3 to 2.2.4

comment:2 Changed 12 years ago by bruno

  • Status changed from new to assigned

Should be fixed in rev [1496]

comment:3 Changed 12 years ago by bruno

  • Milestone changed from 2.2.4 to 2.2.5

comment:4 Changed 12 years ago by bruno

  • Resolution set to fixed
  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.