PBHGetVInfoSync result changed in Snow Leopard?
PBHGetVInfoSync result changed in Snow Leopard?
- Subject: PBHGetVInfoSync result changed in Snow Leopard?
- From: Timo Naroska <email@hidden>
- Date: Thu, 10 Sep 2009 18:42:05 +0200
Hi All,
we encountered a problem with Carbon based applications when accessing
our custom File System on Snow Leopard.
The applications in question use the (deprecated) PBHGetVInfoSync()
call to retrieve a kind of "optimal I/O size".
The specific value returned by PBHGetVInfoSync() is in
volumeParam.ioVAlBlkSiz. It appears that on Leopard there is
some random non-zero value returned. At least I was not able to
determine how the returned value relates to any
information that my kernel driver returns either in vfs_getattr or in
the vfsstatfs structure.
However on Snow Leopard the call always returns zero in ioVAlBlkSiz
which results in infinite loops in the applications
as they are using the value as increment in read/write file loops.
I see that PBHGetVInfoSync() is long deprecated and that the apps not
checking for zero values is bad style, but the question
remains which volume attributes in the unix kernel world are used to
determine ioVAlBlkSiz and whether the change in Snow
Leopard is as designed or a bug?
Any help appreciated,
Timo
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden