Re: [dm-devel] confusion about multipath_prepare_ioctl

2018-03-07 Thread shhuiw
On 2018年03月06日 13:44, Mike Snitzer wrote: > On Mon, Mar 05 2018 at 10:35pm -0500, > Wang Sheng-Hui wrote: > >> Dear, >> >> Sorry to trouble you. >> >> I noticed some code in dm-*.c like: >> " >> static int multipath_prepare_ioctl(struct dm_target *ti, >> struct

[dm-devel] confusion about multipath_prepare_ioctl

2018-03-06 Thread Wang Sheng-Hui
Dear, Sorry to trouble you. I noticed some code in dm-*.c like: " static int multipath_prepare_ioctl(struct dm_target *ti, struct block_device **bdev, fmode_t *mode) { ... /* * Only pass ioctls through if the device sizes match exactly. */ if (!r

Re: [dm-devel] confusion about multipath_prepare_ioctl

2018-03-05 Thread Mike Snitzer
On Mon, Mar 05 2018 at 10:35pm -0500, Wang Sheng-Hui wrote: > Dear, > > Sorry to trouble you. > > I noticed some code in dm-*.c like: > " > static int multipath_prepare_ioctl(struct dm_target *ti, > struct block_device **bdev, fmode_t *mode) > { > ... >