remove the calls to DIOCWLABEL, as it isn't supported any more

and the error message confuses the user.
(just commented out foe now)
This commit is contained in:
Julian Elischer 1995-10-03 11:12:50 +00:00
parent 7c4f0a18ff
commit ba3551df6e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=11143
2 changed files with 8 additions and 0 deletions

View File

@ -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
}
}

View File

@ -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
}
}