Re: [ql-users] How Much Space Do I Have?

2006-09-26 Thread Malcolm Cadman
In message <[EMAIL PROTECTED]>, Marcel Kilgus 
<[EMAIL PROTECTED]> writes

>Bob Spelten wrote:
>> Thats about 2GB while it should be 4GB free on a 6GB partition.
>> All my partitions give exactly the same numbers, they all have more than
>> 4GB free.
>> Also QPAC2 Files reports 2048MB for both free and total numbers.
>> My QPC2 (3.32/3.12) runs under W98SE.
>
>Hm yes, W98, that's the clue. The Microsoft documentation to the
>function GetDiskFreeSpace mentions this:
>
>"Windows Me/98/95: For volumes that are greater than 2 GB, the
>GetDiskFreeSpace function may return misleading values. The function
>caps the values that are stored into *lpNumberOfFreeClusters and
>*lpTotalNumberOfClusters so as to never report volume sizes that are
>greater than 2 GB. On volumes that are less than 2 GB and that have
>more than 64 actual sectors per cluster, *lpSectorsPerCluster will be
>capped at 64 and the values that are stored into *lpSectorsPerCluster,
>*lpNumberOfFreeClusters, and *lpTotalNumberOfClusters will be
>incorrect. That is because the operating system adjusts the values so
>that computations with them yield the correct volume size with the
>capped *lpSectorsPerCluster."
>
>Yeah, great.

He ... he ... that is a "get out of jail free card" for M$ ... :-)

>Must wait for me to be in a really good mood to bother to work around
>this.

Or just a sunny day .

-- 
Malcolm Cadman
___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm


Re: [ql-users] How Much Space Do I Have?

2006-09-26 Thread George Gwilt

On 25 Sep 2006, at 17:30, Marcel Kilgus wrote:

> George Gwilt wrote:
>> If I want to know whether a floppy disk will take the file I want to
>> save to it I type STAT. If DATAD$  = "flp1_" I can see the total
>> number of sectors and the number of free sectors. This is useful. It
>> works with ram1 to ram8, with win1 to win8 and so on. But it does not
>> give the correct answer for dos1 to dos8 for QPC2.
>
> stat dos1_
>
> c:\
> 1486360/149500824 sectors
>
> No idea, looks right to me here. Actually DOS was the reason I had to
> alter STAT to deal with large drives. But that was in 2002, i.e. no
> recent change.
>

My dos1 is c:\ and STAT DOS1_ correctly gives 36006712/58605112

However, dos6 is h:\ and STAT DOS6_ gives 3600720/58605112 instead of  
a correct 17688/245728. It seems clear that the returned figures for  
STAT DOSx all relate to DOS1.

George
___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm


Re: [ql-users] How Much Space Do I Have?

2006-09-26 Thread Marcel Kilgus
George Gwilt wrote:
> My dos1 is c:\ and STAT DOS1_ correctly gives 36006712/58605112
>
> However, dos6 is h:\ and STAT DOS6_ gives 3600720/58605112 instead of
> a correct 17688/245728. It seems clear that the returned figures for  
> STAT DOSx all relate to DOS1.

That at least was a honest to god bug, yes. Will be fixed in next
release. And while I was at it I'm now also working around the 2GB
limitation on 95/98/ME.

Marcel

___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm


Re: [ql-users] How Much Space Do I Have?

2006-09-26 Thread Malcolm Lear
My system gives some very strange results.
STAT dos1_ (153GB) is: 238221176/321669424 and returns 238221152/321669424
dos2_ (8GB) should be: 321744/16787488 and returns 238221168/321669424
It seems that dos2_ is reporting back the capacity of dos1_. I'm running 
the latest QPCII
on XP Pro. Dos1_ is a SATA drive and dos2_ an old ATA.

Malcolm


George Gwilt wrote:

>If I want to know whether a floppy disk will take the file I want to  
>save to it I type STAT. If DATAD$  = "flp1_" I can see the total  
>number of sectors and the number of free sectors. This is useful. It  
>works with ram1 to ram8, with win1 to win8 and so on. But it does not  
>give the correct answer for dos1 to dos8 for QPC2. To find out how  
>much space I have left on, say, a memory stick I have to climb down  
>to Windows to find the answer. Is this restriction intentional? WSTAT  
>works perfectly well. It is only SATA that fails.
>
>George
>___
>QL-Users Mailing List
>http://www.q-v-d.demon.co.uk/smsqe.htm
>
>  
>
___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm


Re: [ql-users] How Much Space Do I Have?

2006-09-25 Thread Marcel Kilgus
Bob Spelten wrote:
> Thats about 2GB while it should be 4GB free on a 6GB partition.
> All my partitions give exactly the same numbers, they all have more than
> 4GB free.
> Also QPAC2 Files reports 2048MB for both free and total numbers.
> My QPC2 (3.32/3.12) runs under W98SE.

Hm yes, W98, that's the clue. The Microsoft documentation to the
function GetDiskFreeSpace mentions this:

"Windows Me/98/95: For volumes that are greater than 2 GB, the
GetDiskFreeSpace function may return misleading values. The function
caps the values that are stored into *lpNumberOfFreeClusters and
*lpTotalNumberOfClusters so as to never report volume sizes that are
greater than 2 GB. On volumes that are less than 2 GB and that have
more than 64 actual sectors per cluster, *lpSectorsPerCluster will be
capped at 64 and the values that are stored into *lpSectorsPerCluster,
*lpNumberOfFreeClusters, and *lpTotalNumberOfClusters will be
incorrect. That is because the operating system adjusts the values so
that computations with them yield the correct volume size with the
capped *lpSectorsPerCluster."

Yeah, great.

Must wait for me to be in a really good mood to bother to work around
this.

Marcel

___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm


Re: [ql-users] How Much Space Do I Have?

2006-09-25 Thread Bob Spelten
Op Mon, 25 Sep 2006 18:30:42 +0200 schreef Marcel Kilgus  
<[EMAIL PROTECTED]>:

> stat dos1_
>
> c:\
> 1486360/149500824 sectors
>
> No idea, looks right to me here. Actually DOS was the reason I had to
> alter STAT to deal with large drives. But that was in 2002, i.e. no
> recent change.

Strange, my dos1 drive gives:
  C:\
4193664/4193664 sectors

Thats about 2GB while it should be 4GB free on a 6GB partition.
All my partitions give exactly the same numbers, they all have more than  
4GB free.
Also QPAC2 Files reports 2048MB for both free and total numbers.
My QPC2 (3.32/3.12) runs under W98SE.

Bob

-- 
Gemaakt met Opera's revolutionaire e-mailprogramma:  
http://www.opera.com/mail/
___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm


Re: [ql-users] How Much Space Do I Have?

2006-09-25 Thread Marcel Kilgus
George Gwilt wrote:
> If I want to know whether a floppy disk will take the file I want to
> save to it I type STAT. If DATAD$  = "flp1_" I can see the total  
> number of sectors and the number of free sectors. This is useful. It  
> works with ram1 to ram8, with win1 to win8 and so on. But it does not
> give the correct answer for dos1 to dos8 for QPC2.

stat dos1_

c:\
1486360/149500824 sectors

No idea, looks right to me here. Actually DOS was the reason I had to
alter STAT to deal with large drives. But that was in 2002, i.e. no
recent change.

Marcel

___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm