Re: OT? 10.4 VFS - ls works, but Carbon File Mgr listing does not
Re: OT? 10.4 VFS - ls works, but Carbon File Mgr listing does not
- Subject: Re: OT? 10.4 VFS - ls works, but Carbon File Mgr listing does not
- From: Brian Bergstrand <email@hidden>
- Date: Fri, 29 Jul 2005 14:37:43 -0500
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Jul 29, 2005, at 1:50 PM, Mike Smith wrote:
On Jul 28, 2005, at 1:12 PM, Brian Bergstrand wrote:
Sometimes I'll see the entries flash in a window for less than a
second and then disappear and then other times they'll never
appear. I think the problem may be related to our access/getattr
calls, but I don't know what to look for. I've looked at NFS and
WebDav and our access/getattr are as similar as possible to those.
This is typical for the Finder in the case where the initial
enumeration found an item, but when a subsequent operation on it
returned an error the Finder doesn't think it can do anything
useful about.
As Quinn suggested, start with fs_usage and look for errors. If
getattrlist is failing, take a look at your getattr handler and
check that VATTR_ALL_SUPPORTED() returns true against the
vnode_attr that you're returning. The VFS will synthesise some
fields, but getattrlist(2) will fail if an attribute can't be
returned (unlike the VFS-level interface).
= Mike
The problem is we don't support certain things. Is it okay to fill in
0 for fields that we don't support?
In particular, va_acl, va_encoding, va_uuuid, and va_guuid, and
va_nchildren? Looking at getattrlist in the kernel, it looks like it
should ignore or synth these values (although va_nchildren defaults
to va_nlink - 2 and we always return 1 for va_nlink, so that would
result in an underflow for va_nchildren).
I ran fs_usuage, and it looks like getdirentries is return EINVAL for
some reason, didn't see any errors elsewhere. So at least I have a
place to start now.
Thanks Quinn and Mike.
Brian Bergstrand
<http://www.bergstrand.org/brian/> PGP Key ID: 0xB6C7B6A2
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
iD8DBQFC6oWSedHYW7bHtqIRAkjbAKDza8elRlF3pqz2nbvlTT1NM+rGogCglijg
08ymdxLgANOMO3FtZeEm6ds=
=KtDH
-----END PGP SIGNATURE-----
_______________________________________________
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