Re: [PATCH 0/2] block: enforce ioctl(BLKROSET) and set_disk_ro()

2017-11-27 Thread Ilya Dryomov
On Thu, Nov 16, 2017 at 10:02 AM, Ilya Dryomov wrote: > On Thu, Nov 9, 2017 at 7:44 PM, Ilya Dryomov wrote: >> Hello, >> >> I was doing some cleanup work on rbd BLKROSET handler and discovered >> that we ignore partition rw/ro setting (hd_struct->policy)

Re: [PATCH 0/2] block: enforce ioctl(BLKROSET) and set_disk_ro()

2017-11-16 Thread Ilya Dryomov
On Thu, Nov 9, 2017 at 7:44 PM, Ilya Dryomov wrote: > Hello, > > I was doing some cleanup work on rbd BLKROSET handler and discovered > that we ignore partition rw/ro setting (hd_struct->policy) for pretty > much everything but straight writes. > > David (CCed) has blktests

[PATCH 0/2] block: enforce ioctl(BLKROSET) and set_disk_ro()

2017-11-09 Thread Ilya Dryomov
Hello, I was doing some cleanup work on rbd BLKROSET handler and discovered that we ignore partition rw/ro setting (hd_struct->policy) for pretty much everything but straight writes. David (CCed) has blktests patches standing by. (Another aspect of this is that we don't enforce open(2) mode.