Easy DOSFS question

Victor V. Vengerov Victor.Vengerov at oktetlabs.ru
Thu Nov 25 13:45:24 UTC 2004


Thomas Doerfler wrote:

>Hi Etienne,
>
>  
>
>>Hi Thomas,
>>Is there a way to get the free space available on a DOSFS mount?
>>    
>>
>
>Easy answer: no :-(
>
>Basically, you would have to walk through the FAT to 
>find things out. And there is no call to do things 
>like that right now.
>  
>
At start of day, you may open dummy file and make binary search of 
maximum free space available by calling seek(,,SEEK_SET), assuming that 
no other file system activity happens. But this is kludge.

Victor


-- 
Victor Vengerov
OKTET Labs, St.-Petersburg, Russia  http://www.oktetlabs.ru
Phone: +78124286709 (office) +78129389372 (mobile) +78124281653 (home)




More information about the users mailing list