[haiku-commits] haiku: hrev44665 - src/add-ons/kernel/file_systems/udf

  • From: korli@xxxxxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Fri, 28 Sep 2012 00:46:45 +0200 (CEST)

hrev44665 adds 1 changeset to branch 'master'
old head: a71c00d3140e66b5c2f10109c64e14444c3f2a3a
new head: 5485c7646e7b34dc683a48463fcbc4c5c4f75ede

----------------------------------------------------------------------------

5485c76: udf: print an error for unsupported revisions

                                   [ Jérôme Duval <jerome.duval@xxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev44665
Commit:      5485c7646e7b34dc683a48463fcbc4c5c4f75ede
URL:         http://cgit.haiku-os.org/haiku/commit/?id=5485c76
Author:      Jérôme Duval <jerome.duval@xxxxxxxxx>
Date:        Thu Sep 27 22:45:06 2012 UTC

----------------------------------------------------------------------------

1 file changed, 6 insertions(+), 2 deletions(-)
.../kernel/file_systems/udf/Recognition.cpp        |    8 ++++++--

----------------------------------------------------------------------------

diff --git a/src/add-ons/kernel/file_systems/udf/Recognition.cpp 
b/src/add-ons/kernel/file_systems/udf/Recognition.cpp
index ca1ea9e..da9dc76 100644
--- a/src/add-ons/kernel/file_systems/udf/Recognition.cpp
+++ b/src/add-ons/kernel/file_systems/udf/Recognition.cpp
@@ -525,7 +525,11 @@ walk_integrity_sequence(int device, uint32 blockSize, 
uint32 blockShift,
        }
        if (!error)
                error = lastDescriptorWasClosed ? B_OK : B_BAD_DATA;
-       if (!error) 
-               error = highestMinimumUDFReadRevision <= UDF_MAX_READ_REVISION 
? B_OK : B_ERROR;
+       if (error == B_OK
+               && highestMinimumUDFReadRevision > UDF_MAX_READ_REVISION) {
+               error = B_ERROR;
+               FATAL(("found udf revision 0x%x more than max 0x%x\n",
+                       highestMinimumUDFReadRevision, UDF_MAX_READ_REVISION));
+       }
        RETURN(error);                                  
 }


Other related posts:

  • » [haiku-commits] haiku: hrev44665 - src/add-ons/kernel/file_systems/udf - korli