aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorFinn Thain <fthain@linux-m68k.org>2026-09-29 10:19:35 +1000
committerJens Axboe <axboe@kernel.dk>2026-09-28 20:30:16 -0600
commitc76b93df9ae61d8ddebf6aa3bc218252f85e80c6 (patch)
tree48873d3921170dffb20b3cb1c936c73022100ece /scripts/Makefile.thinlto
parentswim: Return -EROFS when opened with BLK_OPEN_WRITE flag (diff)
swim: Fix FDEJECT ioctl for exclusive open
The eject command from the util-linux package does not work with the swim driver: the drive doesn't eject anything and the command fails. Apparently, ioctl(fd, FDEJECT) returns -EBUSY when fd is 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: 8852ecd97488 ("m68k: mac - Add SWIM floppy support") Tested-by: Stan Johnson <userm57@yahoo.com> Signed-off-by: Finn Thain <fthain@linux-m68k.org> Link: https://patch.msgid.link/ae3ee8e86833a2739d7857460cbe2addf4146088.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