James Pearson <[EMAIL PROTECTED]> wrote:
> >How do you calculate the amount of space taken up by files and directories
> >on a cd with Rock Ridge? I assume that for normal files it is roughly the
> >filesize rounded up to the nearest 2K... but what about device files?
> >Directories? Symbolic links?
>
> mkisofs -print-size [other_options]
>
> The amount of space the file data occupies for an ordinary file is exactly the
> file size rounded up to the nearest 2048 bytes. However this doesn't take
> in to account the space used by the directory entries for each file/directory
> (plus path tables, volume headers etc.)
>
> Device file, symbolic links and other Rock Ridge extensions are stored in
> the SUSP field with each directory entry.
>
> There is no easy way of estimating how much space is used by the directory
> entries, path tables etc. - but as mkisofs works all this out for you, just
> use the -print-size option to tell you exactly ...
It would be useful if the -print-size option disabled writing the
output, or if there was a -dummy option. Humm, that sounds easy, I may
look at adding it. Then the data in the files need not be read, just the
directory entry, and the whole process would be far easier.
I do mkisofs from NFS mounted directories at times, and I would not
mind the speedup.
--
-bill davidsen ([EMAIL PROTECTED])
"The secret to procrastination is to put things off until the
last possible moment - but no longer" -me
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]