![]() | |||||||||||||
Messages in this thread |
On Sun, 24 Nov 2002, Werner Almesberger wrote: > do you really need a "magic" file for this ? I don't know how > well sysfs supports mkdir/rmdir (if at all), but they would > seem to provide a much more natural interface. (VFS allows > rmdir to remove non-empty directories, so you wouldn't have > to rm -r.) a) sysfs doesn't allow mkdir/rmdir and thus avoids an imperial buttload of races - witness the crap in devfs. b) rmdir of non-empty directory pretty much guarantees another buttload of races. c) mkdir creating non-empty directory or rmdir removing non-empty directory is *ugly*. BTW, Roman's "filesystem" for modules in its current form is vetoed, as far as I'm concerned - this sort of magic is just plain wrong. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ | ||||||||||||
| Last update: 2005-03-22 12:31 [W:0.350 / U:0.110 seconds] ©2003-2008 Jasper Spaans | |||||||||||||