Re: statfs on link
Re: statfs on link
- Subject: Re: statfs on link
- From: Justin Walker <email@hidden>
- Date: Mon, 11 Apr 2005 11:12:26 -0700
On Apr 11, 2005, at 5:58, Hervé Kergourlay wrote:
on a symbolic link, statfs return information on the FS of the target
of the link
but how to get information on the FS of the link itself ??
I need something as "lstat" for the "stat" API
An off-the-top-of-my-still-in-a-coma head solution (AFAIK, there is no
direct one) is:
stat/lstat the name you want to check with statfs;
if it is not a symbolic link, statfs it;
if it is a symbolic link, statfs the name with the last component
stripped
(e.g., if /path/to/sym/link lstats as a sym link, then statfs
/path/to/sym). This is roughly how lstat() works.
Regards,
Justin
--
Justin C. Walker, Curmudgeon at Large
Institute for General Semantics
-----------
My wife 'n kids 'n dog are gone,
I can't get Jesus on the phone,
But Ol' Milwaukee's Best is my best friend.
-----------
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden