Re: Support for fstatfs

2006-10-30 Thread Graham Leggett
On Mon, October 30, 2006 8:43 am, Justin Erenkrantz wrote: Is there any support planned for fstatfs and friends within APR? It's very unlikely unless you submit any patches, but you should know that. ;-) Indeed :) But, what information are you looking to get? I am looking for a way

Re: Support for fstatfs

2006-10-30 Thread Justin Erenkrantz
On 10/30/06, Graham Leggett [EMAIL PROTECTED] wrote: It's the win32 part that I am most interested in - I don't want to come up with an API and find win32 doesn't support it without a change to the API. Does anyone know what the equivalent function is on win32 so I can do some more digging?

Re: Support for fstatfs

2006-10-30 Thread Graham Leggett
On Mon, October 30, 2006 10:52 am, Justin Erenkrantz wrote: http://msdn.microsoft.com/library/en-us/fileio/fs/getdiskfreespaceex.asp For disk space, you can use GetDiskFreeSpaceEx(). -- justin Thanks - will investigate. Regards, Graham --

Re: Support for fstatfs

2006-10-30 Thread William A. Rowe, Jr.
Graham Leggett wrote: On Mon, October 30, 2006 8:43 am, Justin Erenkrantz wrote: But, what information are you looking to get? I am looking for a way to determine, given a file, whether sufficient space exists on the drive to write the file, before that file is processed, and it looks

Re: Support for fstatfs

2006-10-30 Thread Graham Leggett
William A. Rowe, Jr. wrote: Well, seeing as any test you do will be befuddled by file compression on the volume you are writing and that trusting this information is foolhardy if there are multiple users of the device, I'd ask you to rethink the design before you create yet another set of My

Re: Support for fstatfs

2006-10-30 Thread William A. Rowe, Jr.
Graham Leggett wrote: William A. Rowe, Jr. wrote: Well, seeing as any test you do will be befuddled by file compression on the volume you are writing and that trusting this information is foolhardy if there are multiple users of the device, I'd ask you to rethink the design before you

Re: Support for fstatfs

2006-10-30 Thread Graham Leggett
William A. Rowe, Jr. wrote: It seems that a more effective high-water mark is to set an upper bounds on the desired cache size. My understanding is that working out the size of a directory is more expensive than working out what you have left on a filesystem. Is this correct? If it is

Re: Support for fstatfs

2006-10-30 Thread William A. Rowe, Jr.
Graham Leggett wrote: William A. Rowe, Jr. wrote: It seems that a more effective high-water mark is to set an upper bounds on the desired cache size. My understanding is that working out the size of a directory is more expensive than working out what you have left on a filesystem. Is this

Re: Support for fstatfs

2006-10-30 Thread Graham Leggett
William A. Rowe, Jr. wrote: My understanding is that working out the size of a directory is more expensive than working out what you have left on a filesystem. Is this correct? Your understanding would vary widely by the filesystem in place. HFS, NTFS, ufs, etc etc all have different

Re: Support for fstatfs

2006-10-29 Thread Justin Erenkrantz
On 10/26/06, Graham Leggett [EMAIL PROTECTED] wrote: Is there any support planned for fstatfs and friends within APR? It's very unlikely unless you submit any patches, but you should know that. ;-) But, what information are you looking to get? statvfs()/fstatvfs() is the more portable

Support for fstatfs

2006-10-26 Thread Graham Leggett
Hi all, Is there any support planned for fstatfs and friends within APR? Regards, Graham -- smime.p7s Description: S/MIME Cryptographic Signature