[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: problem with BD sessions after 4GB



Thomas Schmitt wrote:
Hi,

Arnold Maderthaner:
 Mounted Media:         43h, BD-RE
growisofs -M /dev/dvdrw -R -J -joliet-long -use-the-force-luke=4gms
:-( next session would cross 4GB boundary, aborting...

This is contrary to what i read from the source code.

You will have to obtain a source tarball of dvd+rw-tools
and take a look into growisofs.c .
Search for the error message text which i get to see
like this:

    else if (next_session > (0x200000-0x5000)) /* 4GB/2K-40MB/2K */
        if ((mmc_profile&0xFFFF)<0x20 ||
            ((mmc_profile&0xFFFF)<0x40 && !no_4gb_check))
            fprintf (stderr,":-( next session would cross 4GB "
                            "boundary, aborting...\n"),
            exit (FATAL_START(ENOSPC));

Disable it by spoiling the size test:

    else if (0 && next_session > (0x200000-0x5000)) /* 4GB/2K-40MB/2K */
        ...

compile and check whether it will work then.

If you are curious then leave the test active and
print the media type as perceived by growisofs:

            fprintf (stderr,":-( next session would cross 4GB "
                            "boundary (0x%X), aborting...\n",
                            (unsigned) (mmc_profile&0xFFFF) ),

The hex number given in brackets would be supposed to be
0x43 ... but that does not match source and program behavior.
I would be curious :))

Particularly since the media reported after the write was 0x43. But I think it's more likely that the media type is correct, and this test just should not be done. The logic to skip this test may be failing. Of course the media check could be put into the test instead of your debug "0 &&" to be sure this media is allowed to be large.

--
Bill Davidsen <davidsen@tmr.com>
 "Woe unto the statesman who makes war without a reason that will still
be valid when the war is over..." Otto von Bismark



Reply to: