bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: du counting files in hard-linked directories twice


From: Eric Blake
Subject: Re: du counting files in hard-linked directories twice
Date: Thu, 27 Aug 2009 20:54:36 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Matthew Woehlke on 8/27/2009 5:09 PM:
> Hard-linked *directories*? I wasn't aware those were allowed... (If I
> read 'man 3 link' right, they aren't allowed on Linux.)

POSIX permits, but does not require, them (and Linux intentionally does
not permit them).  Solaris has them (for superuser only), but they are
annoying; they break some optimizations that would otherwise be possible
due to unlink() vs. rmdir() semantics.  Therefore, coreutils already
intentionally drops privileges on Solaris in order to remove the ability
to unlink a hard-linked directory.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkqXRuwACgkQ84KuGfSFAYBpMACfTjrR2VmKWa0N04Y3SKr5xsJE
WhMAn1LFTOJiLGIbbePvkC5sYgnMfH05
=TGOI
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]