From ba3551df6ee773f042f8b8605becb7bda18ec312 Mon Sep 17 00:00:00 2001 From: Julian Elischer Date: Tue, 3 Oct 1995 11:12:50 +0000 Subject: [PATCH] remove the calls to DIOCWLABEL, as it isn't supported any more and the error message confuses the user. (just commented out foe now) --- sbin/fdisk/fdisk.c | 4 ++++ sbin/i386/fdisk/fdisk.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/sbin/fdisk/fdisk.c b/sbin/fdisk/fdisk.c index 6b3fb1130b36..f712cf00ec0c 100644 --- a/sbin/fdisk/fdisk.c +++ b/sbin/fdisk/fdisk.c @@ -582,14 +582,18 @@ write_s0() * sector 0. (e.g. empty disk) */ flag = 1; +#ifdef NOT_NOW if (ioctl(fd, DIOCWLABEL, &flag) < 0) perror("ioctl DIOCWLABEL"); +#endif if (write_disk(0, (char *) mboot.bootinst) == -1) { fprintf(stderr, "%s: Can't write fdisk partition table\n", name); return -1; flag = 0; +#ifdef NOT_NOW (void) ioctl(fd, DIOCWLABEL, &flag); +#endif } } diff --git a/sbin/i386/fdisk/fdisk.c b/sbin/i386/fdisk/fdisk.c index 6b3fb1130b36..f712cf00ec0c 100644 --- a/sbin/i386/fdisk/fdisk.c +++ b/sbin/i386/fdisk/fdisk.c @@ -582,14 +582,18 @@ write_s0() * sector 0. (e.g. empty disk) */ flag = 1; +#ifdef NOT_NOW if (ioctl(fd, DIOCWLABEL, &flag) < 0) perror("ioctl DIOCWLABEL"); +#endif if (write_disk(0, (char *) mboot.bootinst) == -1) { fprintf(stderr, "%s: Can't write fdisk partition table\n", name); return -1; flag = 0; +#ifdef NOT_NOW (void) ioctl(fd, DIOCWLABEL, &flag); +#endif } }