All of lore.kernel.org
 help / color / mirror / Atom feed
From: "H. Peter Anvin" <hpa@zytor.com>
To: Chris Wedgwood <cw@f00f.org>
Cc: Tomas Hruby <thruby@few.vu.nl>, Theodore Tso <tytso@mit.edu>,
	Erik Mouw <erik@harddisk-recovery.com>,
	linux-fsdevel@vger.kernel.org
Subject: Re: ext2/3 subdirectory limit [WAS: Choosing and tuning Linux file systems]
Date: Mon, 26 Jun 2006 14:13:31 -0700	[thread overview]
Message-ID: <44A04DFB.3020801@zytor.com> (raw)
In-Reply-To: <20060626210341.GB28032@tuatara.stupidest.org>

Chris Wedgwood wrote:
> 
>> As Ted said, not all fiel systems follow this. This means that such
>> applications cannot e.g., remove a directory (rm -r) from such a FS?
> 
> i don't know about rm, but some versions of find need -noleaf (see the
> man page for details)
> 
>> I am asking because we have an issue that an older version of mc
>> cannot remove directory recursively, however we have not observed
>> this on any new system. Might the nlink count be the problem?
> 
> i'm not seen the nlink problem occur because pretty much all
> filesystems have nlink set correctly *or* they set it to one like
> autofs does which happens to work because 1-2-n underflows (there are
> also those who claim that nlink==1 implies you don't know how many
> links there are)

Right.  On most applications, it "just works" because of underflow (if 
you treat nlink as unsigned and subtract 2, then you get UINT_MAX which 
is functionally infinity.)  This is a good reason for this particular 
retcon.

The established practice is to set nlink to 1 if either you don't know 
how many links there are or there are too many to fit in the nlink field.

	-hpa

  reply	other threads:[~2006-06-26 21:14 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-25 22:00 Choosing and tuning Linux file systems Valerie Henson
2006-06-25 22:13 ` Matthew Wilcox
2006-06-25 22:26 ` Arjan van de Ven
2006-06-26  7:22 ` Neil Brown
2006-06-26  9:04 ` Nate Diller
2006-06-27 18:46   ` Valerie Henson
2006-06-26 11:10 ` Erik Mouw
2006-06-26 12:36   ` ext2/3 subdirectory limit [WAS: Choosing and tuning Linux file systems] Tomas Hruby
2006-06-26 12:35     ` Arjan van de Ven
2006-06-26 12:54     ` Theodore Tso
2006-06-26 16:25       ` Andreas Dilger
2006-06-26 17:35       ` Chris Wedgwood
2006-06-26 21:03         ` Tomas Hruby
2006-06-26 21:03           ` Chris Wedgwood
2006-06-26 21:13             ` H. Peter Anvin [this message]
2006-06-26 12:59     ` Erik Mouw
2006-06-26 21:09       ` Tomas Hruby
     [not found] ` <20060626091357.GQ5817@schatzie.adilger.int>
2006-06-26 22:01   ` Choosing and tuning Linux file systems Valerie Henson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=44A04DFB.3020801@zytor.com \
    --to=hpa@zytor.com \
    --cc=cw@f00f.org \
    --cc=erik@harddisk-recovery.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=thruby@few.vu.nl \
    --cc=tytso@mit.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.