From eed7833b832e31b5ac8388117d26c2f7556b57fd Mon Sep 17 00:00:00 2001 From: phk Date: Sun, 26 Jan 2003 11:13:40 +0000 Subject: Don't call DIOCWLABEL on disks, it is not implemented, and calling it like this negated any practical value of the feature. --- bin/dd/dd.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'bin/dd') diff --git a/bin/dd/dd.c b/bin/dd/dd.c index f797a7b..78558d2 100644 --- a/bin/dd/dd.c +++ b/bin/dd/dd.c @@ -221,14 +221,8 @@ getfdtype(IO *io) } else { if (type & D_TAPE) io->flags |= ISTAPE; - else if (type & (D_DISK | D_MEM)) { - if (type & D_DISK) { - const int one = 1; - - (void)ioctl(io->fd, DIOCWLABEL, &one); - } + else if (type & (D_DISK | D_MEM)) io->flags |= ISSEEK; - } if (S_ISCHR(sb.st_mode) && (type & D_TAPE) == 0) io->flags |= ISCHR; } -- cgit v1.1