Re: FSCatalogInfo's dataPhysicalSize shows constant wrong size for all files on a network drive?
Re: FSCatalogInfo's dataPhysicalSize shows constant wrong size for all files on a network drive?
- Subject: Re: FSCatalogInfo's dataPhysicalSize shows constant wrong size for all files on a network drive?
- From: Laurent Daudelin <email@hidden>
- Date: Fri, 29 Apr 2011 13:47:59 -0700
On Apr 29, 2011, at 11:10, Oleg Krupnov wrote:
> Hi,
>
> My program determines sizes of all files in a particular folder on
> some drive. I use FSCatalogInfo + FSGetCatalogInfoBulk. I am
> interested in physical size, so I use the dataPhysicalSize field.
>
> My code works fine on pretty much all disks I have ever tested.
> However, some users report that in rare cases, for some network
> drives, formatted for Windows, the reported file sizes are totally
> wrong. When I checked the log, I've found out that my program reports
> physical sizes of all files equal to 1048576 (2^20), without respect
> of their actual size. The stranger part of it is that the logical
> sizes of the same files (the dataLogicalSize field) are reported
> correctly.
>
> The problem is very hard to reproduce. It does not occur on ALL
> network drives, and does not occur on ALL windows drives, and not even
> on ALL network Windows drives, but only on SOME network Windows
> drives. I am puzzled, what can the problem be caused by? Or at least,
> can I somehow detect such problematic drives in advance?
I've been dealing with Windows shares and support in Leopard/Snow Leopard is not very good for them. I know for a fact that the modification time is always off by a few seconds. And copying files from/to Windows shares is also problematic. What seems to help is to make sure that, on the Windows side, the user gives everybody full permissions on what he's sharing.
-Laurent.
--
Laurent Daudelin
AIM/iChat/Skype:LaurentDaudelin http://www.nemesys-soft.com/
Logiciels Nemesys Software email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden