]> git.openfabrics.org - ~adrianc/mstflint.git/commitdiff
r3714: Make flint actually support unknown sector types, for forward compatibility.
authorMichael S. Tsirkin <mst@mellanox.co.il>
Tue, 11 Oct 2005 08:00:05 +0000 (08:00 +0000)
committerMichael S. Tsirkin <mst@mellanox.co.il>
Tue, 11 Oct 2005 08:00:05 +0000 (08:00 +0000)
flint.cpp

index 9f73a32feea3b4b9837e1e868bae4fa0997bc5b9..d377838fa554f32259f9734cbeb6f437add0db40 100644 (file)
--- a/flint.cpp
+++ b/flint.cpp
@@ -3744,12 +3744,7 @@ bool Operations::checkGen(FBase& f, u_int32_t beg,
     part_cnt++;
 
     // May be BOOT3?
-    if (gph.type < H_FIRST  ||  gph.type > H_LAST) {
-        if (part_cnt > 2) {
-            report("%s /0x%x/ - Invalid partition type (%d)\n",
-                   pref, offs+beg, gph.type);
-            return false;
-        } else
+    if (part_cnt <= 2) {
             return checkBoot2(f, beg, offs, next, pref);
     }