>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 ...

James Pearson


--  
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to