Most the routines in dasd_ioctl.c open a file descriptor for the device that is passed to them, perform an operation on it, and then close the file descriptor before returning. The dasd_is_ro routine doesn't do that:
int dasd_is_ro(const char device, bool ro)
{
int fd, val;
Most the routines in dasd_ioctl.c open a file descriptor for the device that is passed to them, perform an operation on it, and then close the file descriptor before returning. The dasd_is_ro routine doesn't do that: int dasd_is_ro(const char device, bool ro) { int fd, val;
}
From what I can tell, dasdfmt exits while it still has an open file descriptor for the DASD volume being formatted. Is this expected, or a bug?