[PATCH] blkdev_open/bd_claim vs BLKBSZSET
I was modifying mkfs.xfs to use O_EXCL for 2.6, and hit a snag. It seems that once I've opened a block dev with O_EXCL I can no longer issue the BLKBSZSET ioctl to it. Making this change, the ioctl succeeds cos the original filp bdev owner from open now matches with the owner in the ioctl call.
Showing
Please register or sign in to comment