mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-29 00:12:45 +00:00
Don't call DIOCWLABEL on disks, it is not implemented, and calling it
like this negated any practical value of the feature.
This commit is contained in:
parent
f080d33b66
commit
cd967e322a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=109873
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user