diff options
| author | 2026-09-29 10:19:35 +1000 | |
|---|---|---|
| committer | 2026-09-28 20:30:16 -0600 | |
| commit | ce054fbe9a4bf4ffefef0f8e2504ea54da058ed2 (patch) | |
| tree | e1845041bed9e4135aac1583870ef7cc8073b6da /scripts/Makefile.thinlto | |
| parent | swim: Fix FDEJECT ioctl for exclusive open (diff) | |
swim3: Fix FDEJECT ioctl for exclusive open
The eject command from the util-linux package does not work with the
swim3 driver: the drive doesn't eject anything and the command fails.
Apparently, ioctl(fd, FDEJECT) returns -EBUSY after fd was opened O_EXCL.
Fix this by checking ref_count for either 1 or -1. Either value means that
the caller is the sole user of the disk.
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Tested-by: Stan Johnson <userm57@yahoo.com>
Signed-off-by: Finn Thain <fthain@linux-m68k.org>
Link: https://patch.msgid.link/f4cb43726ee6f1cf159a6208f77b4cceea670a3c.1790641175.git.fthain@linux-m68k.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
