Where Finder gets info for "Get Info" attributes.
Where Finder gets info for "Get Info" attributes.
- Subject: Where Finder gets info for "Get Info" attributes.
- From: Anatol Pomozov <email@hidden>
- Date: Fri, 08 Jul 2011 12:47:39 -0700
Hi,
I am hacking on fuse4x (fuse implementation for macosx) and I have a question related to fuse+VSF+Finder.
When I mount a volume using SSHFS it shows correct "available size" using df tool:
$ df /Volumes/foo/
Filesystem 512-blocks Used Available Capacity Mounted on
email@hidden: 269937120 136810192 119414752 54% /Volumes/foo
But when I click volume's "Get Info" in the Finder it shows zeros in capacity.
This makes me think that Finder does not make any request to VFS when I click "Get Info", instead it caches information from the very first request. From my experiments I can tell that the very first GETATTR request happens right after VFS vfsop_mount() ends but before mount() syscall returns to userspace. Because how Fuse works MOUNT and INIT are different operations and at the mount() step the fuse4x kernel extension does not know any information about the underlying filesystem. In this case fuse4x returns fake attributes set to 0. These zeros are cached by Finder.
Later when fuse4 kext connects to underlying filesystem valid attributes become available.
My questions:
- Does Finder really do request to VFS right before returning from mount() syscall?
- How to tell Finder not to cache these attributes? At least the result of very first GETATTR.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden