summaryrefslogtreecommitdiffstats
path: root/sbin/fdisk
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>1995-10-03 11:12:50 +0000
committerjulian <julian@FreeBSD.org>1995-10-03 11:12:50 +0000
commita7126a6a16e1383d131be453e9b8840a03e789b2 (patch)
treec7e6eec26bd3d77f0f179f7a2f6465779db50ff3 /sbin/fdisk
parentafd96ea47e6e6d17d2a71e5b0d887581e0cad61c (diff)
downloadFreeBSD-src-a7126a6a16e1383d131be453e9b8840a03e789b2.zip
FreeBSD-src-a7126a6a16e1383d131be453e9b8840a03e789b2.tar.gz
remove the calls to DIOCWLABEL, as it isn't supported any more
and the error message confuses the user. (just commented out foe now)
Diffstat (limited to 'sbin/fdisk')
-rw-r--r--sbin/fdisk/fdisk.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sbin/fdisk/fdisk.c b/sbin/fdisk/fdisk.c
index 6b3fb11..f712cf0 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
}
}
OpenPOWER on IntegriCloud