NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/57883: Tar opens /dev/(r)fd0* devices on backup hanging when floppy is empty



> >Fix:
> When formatted floppy is inserted in drive, backup of /dev with tar will finish in acceptable time (however it still tries to access floppy several times).
> 
> Expected behaviour: TAR should never open backed block or char devices (should just backup node type, major, minor and permissions), because it may have significant and unexpected side effects - including loss of data.

There is no race free way to get those. There are hundreds of ways to trick
a program into open a device. It's the fault of the device driver for having
unusual side effects on open.

Joerg






Home | Main Index | Thread Index | Old Index