[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Easy DOSFS question
- Date: Thu, 25 Nov 2004 16:45:24 +0300
- From: Victor.Vengerov at oktetlabs.ru (Victor V. Vengerov)
- Subject: Easy DOSFS question
Thomas Doerfler wrote:
>>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.
OKTET Labs, St.-Petersburg, Russia http://www.oktetlabs.ru
Phone: +78124286709 (office) +78129389372 (mobile) +78124281653 (home)