Re: [question] file_operations->owner

From: Alexander Viro (viro@math.psu.edu)
Date: Sat Jul 01 2000 - 13:22:44 EST


On Fri, 30 Jun 2000, Tigran Aivazian wrote:

> Hi guys,
>
> this question is short and simple - is it true that only the drivers need
> to set fop->owner to THIS_MODULE and *not* the modular filesystems also?
>
> Because I see, for example, microcode.c has been updated to have it but
> filesystems weren't..

For filesystems it's done on file_system_type level. If you have it
mounted you should not allow rmmod and once you've got that protection you
don't have to care about opened files - kinda hard to umount while
something is opened.

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



This archive was generated by hypermail 2b29 : Fri Jul 07 2000 - 21:00:09 EST