const struct file_operations struct definition

From: santi mondal
Date: Tue Sep 09 2008 - 03:38:32 EST


Hi All,

I was trying to build a kernel module to block all the writes
happening to a particular disk/mount point (multiple disk/mount points
at the same time). To achieve this I tried to replace the
file_operations->write function pointer. Since it is defined as
"const", replacing it is not poissible. Is there any way outs to get
the control in the filesystem's write funtion ?

It would be of great help if anybody could throw some ideas.

Sorry for sending the e-mail without subscribing to the list. Please
cc me while replying back to this e-mail.

thanks
-santi
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/