<sigh>

I apologize, my question lacked clarity.  I know about the mkisofs options
to tell you the size of the filesystem given a set of files.

What I'm doing is taking a directory tree that is larger than a single disk
and splitting it across multiple disks.  I wrote a program do this
"intelligently", that is, not splitting any directories that are smaller
than a cd in size and splitting directories when necessary as little as
possible.  Yes, in pathological cases this could result in a much
larger set of disks than necessary, but for what I'm doing it works very
well.  So I don't have a predetermined set of files, I need the sizes to
determine what the sets will be.

But... my program takes the size returned by lstat and rounds it to the
nearest 2K, for all types of filesystem objects.  This overestimates the
size by a small amount.  Normally not an issue but recently I had a case
where it created N disks in a case where calculating the sizes correctly
would have led to N-1.  I'm looking for good approximate sizes for the other
types of objects to improve the accuracy of the program.  The mkisofs
options can't help me here. Well, I could run mkisofs on various samples and
do statistics, but it seemed to me that someone here might well already know
the answers...

-Mark


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

Reply via email to