Opened 16 years ago

Closed 16 years ago

#223 closed defect (fixed)

mondo restore hang no floppy present

Reported by: LazarusLong Owned by: Bruno Cornec
Priority: high Milestone: 2.2.5
Component: mondo Version: 2.2.4
Severity: major Keywords:


On Debian etch with mondo 2.2.4 installed I am seeing a hang during mondo restore while "I'm thinking..." due to my machine having no floppy drive. This appears to be same as ticket#136 which changeset[1496] tries to fix. The fix doesnt work on my machine since the dmesg | grep -i floppy shows a valid device. My machine has a floppy controller but no drive, I think the floppy driver prints a boot message on seeing the controller but doesnt know that no drive is attached.

A better test would be to use "getfdprm /dev/fd0u1722" from fdutils - this returns immediately with NO DEVICE. Alternately use low level calls:

#include <linux/fd.h> struct floppy_struct fdprms; int ifd, res; ifd = open("/dev/fd0u1722", O_RDONLY); if (ifd > 0) { open OK

res = ioctl(ifd, FDGETPRM, &fdprms); if (res >= 0) { media OK to mount } else { skip mount }

} else { skip mount }

Of course, same test would apply to /dev/fd0H1440.

Change History (4)

comment:1 by Bruno Cornec, 16 years ago

Status: newassigned

Could you look at #1843 to see if that realizes what you were thinking of ? Will be in final 2.2.5.

Thanks for your feedback !

comment:2 by LazarusLong, 16 years ago

Looks good to me. I'll be happy to test 2.2.5 when available on my machine.

Thanks for incorporating the change.

comment:3 by Bruno Cornec, 16 years ago

Could you try with the test version under please ?

comment:4 by Bruno Cornec, 16 years ago

Resolution: fixed
Status: assignedclosed

Anyway, floopy support is gone now, in latest SVN !

Note: See TracTickets for help on using tickets.