• Nathan Scott's avatar
    [PATCH] blkdev_open/bd_claim vs BLKBSZSET · bf862ba5
    Nathan Scott authored
    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.
    bf862ba5
ioctl.c 5.24 KB