From: Danek Duvall <duvall@emufarm.org>
To: Aaron Davies <agdavi01@louisville.edu>
Cc: zsh-users@sunsite.dk
Subject: Re: Globbing for Empty Directories?
Date: Mon, 29 Mar 2004 07:19:20 -0800 [thread overview]
Message-ID: <20040329151920.GA6379@lorien.emufarm.org> (raw)
In-Reply-To: <20040329132800.GA7384@DervishD>
On Mon, Mar 29, 2004 at 03:28:00PM +0200, DervishD wrote:
> > Adding any subdirectories or files to it seems to increase the
> > number of links it has.
>
> Not under Linux, at least, although it may depend on the
> filesystem type. For ext3, only subdirs increase the number of links
> of a directory.
As it should be. Think of it this way. st_nlink is the number of names
a filesystem object has on a filesystem. For any directory, that'll be
1) the name the directory has in its parent, 2) the name "." it contains
itself, and 3-nlink) the name ".." its children contain.
Non-directory files (generally) don't contain other files, so they won't
add to st_nlink.
Danek
next prev parent reply other threads:[~2004-03-29 15:20 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-28 7:00 Aaron Davies
2004-03-28 19:21 ` Bart Schaefer
2004-03-28 20:13 ` Aaron Davies
2004-03-28 20:55 ` Bart Schaefer
2004-03-28 23:55 ` Aaron Davies
2004-03-29 0:54 ` Bart Schaefer
2004-03-29 6:05 ` Aaron Davies
2004-03-28 19:49 ` DervishD
2004-03-29 6:03 ` Aaron Davies
2004-03-29 13:28 ` DervishD
2004-03-29 15:19 ` Danek Duvall [this message]
2004-03-29 15:57 ` DervishD
2004-03-29 23:11 ` Aaron Davies
2004-03-29 23:24 ` DervishD
2004-03-31 1:44 ` Aaron Davies
2004-03-31 8:44 ` DervishD
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=20040329151920.GA6379@lorien.emufarm.org \
--to=duvall@emufarm.org \
--cc=agdavi01@louisville.edu \
--cc=zsh-users@sunsite.dk \
/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.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).