reiser4: FITRIM ioctl -- where to place the handler?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I've started to iterate on the batch mode discard implementation for reiser4,
and the first question is -- where to place the ioctl handler?

From what I've been able to understand, we need something like
reiser4_ioctl_dir_common() in plugin/file_ops.c, pointer to which should
become ->{unlocked,compat}_ioctl() of directory_f_ops in plugin/object.c.

However, in this case, what is DIRECTORY_FILE_PLUGIN_ID and corresponding
entry in file_plugins array in plugin/object.c? How is it related to
directories?

I see that its ->{inode,file,as}_ops are empty, so it probably does not
participate in dispatching ioctls, but I'd like to make sure this is the case.

Thanks,
-- 
Ivan Shapovalov / intelfx /

Attachment: signature.asc
Description: This is a digitally signed message part.


[Index of Archives]     [Linux File System Development]     [Linux BTRFS]     [Linux NFS]     [Linux Filesystems]     [Ext4 Filesystem]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Resources]

  Powered by Linux