Messages in this thread | | | Date | Wed, 02 May 2012 22:49:12 +0200 | From | Paolo Bonzini <> | Subject | Re: [PATCH] scsi: Silence unnecessary warnings about ioctl to partition |
| |
Il 02/05/2012 17:49, Paolo Bonzini ha scritto: >> > Customisable filters are not hard. We've got all the filtering code in >> > kernel and the ability to verify filters, even the ability to JIT them. >> > Just support adding/removing/running a BPF filter on the channel in >> > question. >> > >> > So it shouldn't be much code to do what you want. > Yes, it's not much code if I don't get into cgroups land and stick with > a ioctl to add and remove BPF filters that look at CDBs.
Except that then I need to access some "struct file" member in SG_IO, thus changing ioctl from block_device/fmode to block_device/file. This would partially undo the 2007 switch from inode/file by Al Viro. Somehow I'm not that optimist anymore, though I'd be happy to be proven wrong.
Paolo
| |