Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: automounted directory status

by DrHyde (Prior)
on Jan 31, 2014 at 11:58 UTC ( #1072832=note: print w/replies, xml ) Need Help??


in reply to automounted directory status

On perl 5.14.2 (the only version I've got on this 'ere Linux machine, but I assume it's the same on 5.8), -w and friends boil down to stat(2) calls:

$ strace perl -e '-w "/etc"' ... stat("/etc", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 ...

Perl doesn't know about filesystems and automount, it just relies on the OS to Do The Right Thing. If you write a little snippet of C code that just stat()s a directory, then I expect you'll find that it behaves the same.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1072832]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2019-05-22 18:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you enjoy 3D movies?



    Results (140 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!