Re: Removing files in devfs

Juan Quintela (quintela@mandrakesoft.com)
19 Jan 2002 21:54:57 +0100


>>>>> "oliver" == Oliver Feiler <kiza@gmx.net> writes:

oliver> Hello,
oliver> Is this behaviour supposed to be?

oliver> 9:36 root@kiza /dev# l null
oliver> crw-rw-rw- 1 root root 1, 3 Jan 1 1970 null
oliver> 9:36 root@kiza /dev# rm null
oliver> removing `null'
oliver> 9:36 root@kiza /dev# l null
oliver> ls: null: No such file or directory
oliver> 9:36 root@kiza /dev#

oliver> I have kernel 2.4.16 with devfs and on every other system I tried I
oliver> only get "rm: cannot unlink `null': Operation not permitted" when trying to
oliver> delete something in devfs. And I cannot see any differences as far as devfs is
oliver> concerned on the systems I tried. devfs compiled in, mounted on boot time,
oliver> same version of devfsd.

oliver> Regards,

oliver> Oliver

Since 2.4.16-preX, you can't remove a {file,symlink} in devfs created
by devfs :(

That hit me hardly whith /dev/root. I had to remove the code that
generate that link to get my system booting (where system is anything
booting with mkinitrd + devfs).

Later, Juan.

-- 
In theory, practice and theory are the same, but in practice they 
are different -- Larry McVoy
-
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/