Am 30.04.24 um 02:30 schrieb Al Viro:
On Mon, Apr 29, 2024 at 04:41:19PM +0200, Stefan Haberland wrote:
The dasdfmt tool checks if the disk is actually in use and refuses to
work on an 'in use' DASD.
So for example a partition that was in use has to be unmounted first.
Hmm... How is that check done? Does it open device exclusive?
No, it just checks the open_count gathered from the driver through
another ioctl.
And yes, of course there is a race in this check that between gathering
the data
and disabling the device it could be opened.