Source-Changes-HG archive

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

[src/trunk]: src/dist/pdisk disable warnings about linux only handling 15 ent...



details:   https://anonhg.NetBSD.org/src/rev/a06e99a81695
branches:  trunk
changeset: 536128:a06e99a81695
user:      dbj <dbj%NetBSD.org@localhost>
date:      Sun Sep 08 23:18:11 2002 +0000

description:
disable warnings about linux only handling 15 entries.
This check was found to not exist in the linux fdisk-0.1
sources, which are under current linuxppc use.  Also,
NetBSD users probably care less about warnings for bugs
in old versions of linux.

diffstat:

 dist/pdisk/pdisk.c |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (53 lines):

diff -r fbfca0a02e7b -r a06e99a81695 dist/pdisk/pdisk.c
--- a/dist/pdisk/pdisk.c        Sun Sep 08 16:17:45 2002 +0000
+++ b/dist/pdisk/pdisk.c        Sun Sep 08 23:18:11 2002 +0000
@@ -518,9 +518,11 @@
 
     printf("Edit %s -\n", name);
     
+#if 0 /* this check has been removed in linux prior to linux fdisk-0.1 */
     if (map != NULL && map->blocks_in_map > MAX_LINUX_MAP) {
        error(-1, "Map contains more than %d blocks - Linux may have trouble", MAX_LINUX_MAP);
     }
+#endif
 
     while (get_command("Command (? for help): ", first_get, &command)) {
        first_get = 0;
@@ -652,11 +654,12 @@
     }
     if (get_type == 0) {
        add_partition_to_map(name, kUnixType, base, length, map);
+#if 0 /* this check has been removed in linux prior to linux fdisk-0.1 */
        if (map->blocks_in_map > MAX_LINUX_MAP) {
            error(-1, "Map contains more than %d blocks - Linux may have trouble", MAX_LINUX_MAP);
        }
        goto xit1;
-
+#endif
     } else if (get_string_argument("Type of partition: ", &type_name, 1) == 0) {
        bad_input("Bad type");
        goto xit1;
@@ -670,9 +673,11 @@
            goto xit2;
        }
        add_partition_to_map(name, type_name, base, length, map);
+#if 0 /* this check has been removed in linux prior to linux fdisk-0.1 */
        if (map->blocks_in_map > MAX_LINUX_MAP) {
            error(-1, "Map contains more than %d blocks - Linux may have trouble", MAX_LINUX_MAP);
        }
+#endif
     }
 xit2:
     free(type_name);
@@ -844,9 +849,11 @@
        bad_input("The map is not writeable.");
        return;
     }
+#if 0 /* this check has been removed in linux prior to linux fdisk-0.1 */
     if (map->blocks_in_map > MAX_LINUX_MAP) {
        error(-1, "Map contains more than %d blocks - Linux may have trouble", MAX_LINUX_MAP);
     }
+#endif
     printf("Writing the map destroys what was there before. ");
     if (get_okay("Is that okay? [n/y]: ", 0) != 1) {
        return;



Home | Main Index | Thread Index | Old Index