[PATCH] Add btrfs ioctl support.

Line Printer lineprinter0 at gmail.com
Fri May 13 15:30:42 UTC 2016


On Fri, May 13, 2016 at 6:01 PM, Jeff Mahoney <jeffm at suse.com> wrote:
> On 5/13/16 10:57 AM, Line Printer wrote:
>> On Thu, May 5, 2016 at 3:07 AM,  <jeffm at suse.com> wrote:
>>> From: Jeff Mahoney <jeffm at suse.com>
>>>
>>>  btrfs.c                            | 1298 ++++++++++++++++++++++++++++++++++++
>>
>> Would you care to enrich your code with a number of tests? You seem to
>> be most suitable for this task.
>
> I had started work on this, but the main issue is that you need an
> actual file system to test and modify. It quickly turns into a btrfs
> regression test suite instead of strace tests and introduces a
> requirement on the btrfs userspace tools.

Take a look at tests/ioctl_v4l2.c. By passing -1 as the first argument
to ioctl(2) you should be able to test at least some requests.




More information about the Strace-devel mailing list