Hi all,
I need to calculate the exact space occupied by files on a CD (CDFS) before
creating an ISO image.
I know only that the size on disc is bigger than the real size !
Somebody knows how to do ?
I would appreciate your responce.
Fred
xxxxx@adhersis.com
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
> Hi all,
I need to calculate the exact space occupied by files on a CD (CDFS)
before
creating an ISO image.
CD sectors are 2KB in size.
Calculate the file size in sectors and round it up to 2KB alignment.
There is also thing like the directory size - each dirent occupies around
32bytes + the name length, the dirent cannot cross the sector boundary.
The complete ISO9660 (this is CDFS) spec is here:
http://www.y-adagio.com/public/standards/iso_cdromr/tocont.htm
Max
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
> > Hi all,
>
> I need to calculate the exact space occupied by files on a CD (CDFS)
before
> creating an ISO image.
CD sectors are 2KB in size.
How much OS will read if i read 10 bytes ?
Regards,
Satish K.S
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
> > CD sectors are 2KB in size.
How much OS will read if i read 10 bytes ?
Cc will read a page on cache miss - thus, 4KB.
Max
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
> > > CD sectors are 2KB in size.
>
> How much OS will read if i read 10 bytes ?
Cc will read a page on cache miss - thus, 4KB.
I will allocate 10 byte memory using Malloc function. like following ?
char * Ptr = malloc ( 10 );
How much OS will allocate in this case ? 4KB ??
Regards,
Satish K.S
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
64 bytes. I guess this is the min.
db
Satish wrote:
> > > CD sectors are 2KB in size.
> >
> > How much OS will read if i read 10 bytes ?
>
> Cc will read a page on cache miss - thus, 4KB.
>
I will allocate 10 byte memory using Malloc function. like following ?
char * Ptr = malloc ( 10 );
How much OS will allocate in this case ? 4KB ??
Regards,
Satish K.S
You are currently subscribed to ntdev as: xxxxx@wipro.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
> > > How much OS will read if i read 10 bytes ?
>
> Cc will read a page on cache miss - thus, 4KB.
>
I will allocate 10 byte memory using Malloc function. like following ?
char * Ptr = malloc ( 10 );
How much OS will allocate in this case ? 4KB ??
File read has nothing to do with mallocs.
If you read 10 bytes and if they are in cache - then no disk IO will occur.
Otherwise, Cc will read a 4KB page - or even several pages if you have
read-ahead.
Max
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
> > > > How much OS will read if i read 10 bytes ?
> >
> > Cc will read a page on cache miss - thus, 4KB.
> >
>
> I will allocate 10 byte memory using Malloc function. like following ?
>
> char * Ptr = malloc ( 10 );
>
> How much OS will allocate in this case ? 4KB ??
File read has nothing to do with mallocs.
Yea fine.
If you read 10 bytes and if they are in cache - then no disk IO will
occur.
Otherwise, Cc will read a 4KB page - or even several pages if you have
read-ahead.
This is not answer to my Q
Regards,
Satish K.S
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com