[prev in list] [next in list] [prev in thread] [next in thread]
List: fuse-devel
Subject: [fuse-devel] Fwd: st_nlink for '/'
From: Isaac To <isaac.to () gmail ! com>
Date: 2017-09-04 3:05:11
Message-ID: CAOArY3XWduj-QDejoUOGP00wciFcyCykabYMLzktmOxgnLjTew () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
On Friday, September 01, 2017 03:43 PM, Richard Danter wrote:
> Please excuse this newb question, but I can't seem to find an explanation
> in the docs...
>
> Looking at hello.c and some other examples, I see that for '/' the
> st_nlink is set to 2 whereas for other paths it is set to 1. But not all
> examples do this, null.c sets to 1. When should the value be 1 and when 2?
>
Try google for "use of st_nlink of directories".
[Attachment #5 (text/html)]
<div dir="ltr"><br><div class="gmail_quote">On Friday, September 01, 2017 03:43 PM, \
Richard Danter wrote:<br> <blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex"> Please excuse this newb question, \
but I can't seem to find an explanation in the docs...<br> <br>
Looking at hello.c and some other examples, I see that for '/' the st_nlink \
is set to 2 whereas for other paths it is set to 1. But not all examples do this, \
null.c sets to 1. When should the value be 1 and when 2?<br> </blockquote>
<br>
Try google for "use of st_nlink of directories".<br>
<br>
</div><br></div>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
--
fuse-devel mailing list
To unsubscribe or subscribe, visit https://lists.sourceforge.net/lists/listinfo/fuse-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic