Re: [ndctl PATCH 05/10] libdaxctl: allow memblock_in_dev() to return an error

2019-10-18 Thread Dan Williams
On Wed, Oct 2, 2019 at 4:49 PM Vishal Verma wrote: > > With the MEM_FIND_ZONE operation, and the expectation that it will be > called from 'daxctl list' listings, it is possible that memblock_in_dev() > gets called without sufficient privileges. If this happens, currently, > the above simply

[ndctl PATCH 05/10] libdaxctl: allow memblock_in_dev() to return an error

2019-10-02 Thread Vishal Verma
With the MEM_FIND_ZONE operation, and the expectation that it will be called from 'daxctl list' listings, it is possible that memblock_in_dev() gets called without sufficient privileges. If this happens, currently, the above simply returns a 'false'. This was acceptable when the only operations