Re: How to interrogate optical discs

2010-06-17 Thread Richard Shaw
On Wed, Jun 16, 2010 at 8:29 AM, Richard Shaw wrote: > On Wed, Jun 16, 2010 at 7:59 AM, Bruno Wolff III wrote: >> On Tue, Jun 15, 2010 at 20:38:56 -0500, >>  Richard Shaw wrote: >>> 3        iso_size = math.ceil(file_size/(2*1024))*2*1024 >> >> With loose typing the about might be doing the divi

Re: How to interrogate optical discs

2010-06-16 Thread Richard Shaw
On Wed, Jun 16, 2010 at 7:59 AM, Bruno Wolff III wrote: > On Tue, Jun 15, 2010 at 20:38:56 -0500, >  Richard Shaw wrote: >> 3        iso_size = math.ceil(file_size/(2*1024))*2*1024 > > With loose typing the about might be doing the division as integer division. > One possible fix would be: > iso_

Re: How to interrogate optical discs

2010-06-16 Thread Bruno Wolff III
On Tue, Jun 15, 2010 at 20:38:56 -0500, Richard Shaw wrote: > 3iso_size = math.ceil(file_size/(2*1024))*2*1024 With loose typing the about might be doing the division as integer division. One possible fix would be: iso_size = ((file_size + ((2*1024)-1))/(2*1024))*(2*1024) -- users mail

Re: How to interrogate optical discs

2010-06-15 Thread Richard Shaw
On Tue, Jun 15, 2010 at 6:33 PM, Richard Shaw wrote: > I did some searching but found no definitive answer. One thing that > could improve the image size estimation is to round up the size of > each file to a multiple of 2k. This still will not take into account > file system metadata overhead but

Re: How to interrogate optical discs

2010-06-15 Thread Robert G. (Doc) Savage
On Tue, 2010-06-15 at 18:47 -0400, Tom Horsley wrote: > On Tue, 15 Jun 2010 17:07:13 -0500 > Robert G. (Doc) Savage wrote: > > > If there really is overhead and other data being added, we'd like to > > know as accurately as possible the size of that added amount. > > I think it depends entirely

Re: How to interrogate optical discs

2010-06-15 Thread Richard Shaw
On Tue, Jun 15, 2010 at 5:47 PM, Tom Horsley wrote: > On Tue, 15 Jun 2010 17:07:13 -0500 > Robert G. (Doc) Savage wrote: > >> If there really is overhead and other data being added, we'd like to >> know as accurately as possible the size of that added amount. > > I think it depends entirely on how

Re: How to interrogate optical discs

2010-06-15 Thread Tom Horsley
On Tue, 15 Jun 2010 17:07:13 -0500 Robert G. (Doc) Savage wrote: > If there really is overhead and other data being added, we'd like to > know as accurately as possible the size of that added amount. I think it depends entirely on how many directory entries it needs to make, etc. I don't think th

Re: How to interrogate optical discs

2010-06-15 Thread Robert G. (Doc) Savage
On Tue, 2010-06-15 at 17:07 -0400, Tom Horsley wrote: > On Tue, 15 Jun 2010 14:37:14 -0500 > Robert G. (Doc) Savage wrote: > > > I believe it's either an > > error in the file size sorting algorithm, or some extra data being added > > to the ISO image. > > I'm pretty sure there is an indetermina

Re: How to interrogate optical discs

2010-06-15 Thread Tom Horsley
On Tue, 15 Jun 2010 14:37:14 -0500 Robert G. (Doc) Savage wrote: > I believe it's either an > error in the file size sorting algorithm, or some extra data being added > to the ISO image. I'm pretty sure there is an indeterminate amount of overhead added for the table of contents, storage layout i

Re: How to interrogate optical discs

2010-06-15 Thread Robert G. (Doc) Savage
On Tue, 2010-06-15 at 12:48 -0500, Richard Shaw wrote: > On Fri, Jun 11, 2010 at 7:44 PM, Robert G. (Doc) Savage > wrote: > > > > On Sat, 2010-06-12 at 07:35 +0800, Ed Greshko wrote: > >> On 06/12/2010 06:28 AM, Robert G. (Doc) Savage wrote: > >> > Is there a simple command line I can use to inter

Re: How to interrogate optical discs

2010-06-15 Thread Richard Shaw
On Fri, Jun 11, 2010 at 7:44 PM, Robert G. (Doc) Savage wrote: > > On Sat, 2010-06-12 at 07:35 +0800, Ed Greshko wrote: >> On 06/12/2010 06:28 AM, Robert G. (Doc) Savage wrote: >> > Is there a simple command line I can use to interrogate a blank >> > optical disc that will return the number of sec

Re: How to interrogate optical discs

2010-06-11 Thread Robert G. (Doc) Savage
On Sat, 2010-06-12 at 07:35 +0800, Ed Greshko wrote: > On 06/12/2010 06:28 AM, Robert G. (Doc) Savage wrote: > > Is there a simple command line I can use to interrogate a blank > > optical disc that will return the number of sectors/blocks on it? > > dvd+rw-mediainfo ? Ed, That's just what I w

Re: How to interrogate optical discs

2010-06-11 Thread Ed Greshko
On 06/12/2010 06:28 AM, Robert G. (Doc) Savage wrote: > I think I need help from anyone having special exertise with > growisofs/mkisofs, I'm trying to troubleshoot a discrepancy between > the number of 2k sectors detected by discspan.py (see > http://sourceforge.net/projects/discspan/) >