diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2006-09-26 23:33:05 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2006-09-26 23:33:05 +0000 |
commit | 2bf9309e28746a4b6a52286fbfaa52035e8bc80e (patch) | |
tree | 1a0c40b9e97feb2a6762ccc9486778b4e20fb856 /lib/libc/gen | |
parent | ecd84bf31bad64b35b9fc94c35074f968296f988 (diff) |
Zap D_REMOVABLE flag from disklabel. If you didn't already know that
floppies and cd's were removable, displaying that fact in disklabel
output was unlikely to help. And the display in disklabel was the only
use of D_REMOVABLE in the tree.
ok marco@
Diffstat (limited to 'lib/libc/gen')
-rw-r--r-- | lib/libc/gen/disklabel.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/libc/gen/disklabel.c b/lib/libc/gen/disklabel.c index dc1adeff8fa..ad5148e0cde 100644 --- a/lib/libc/gen/disklabel.c +++ b/lib/libc/gen/disklabel.c @@ -75,8 +75,6 @@ getdiskbyname(const char *name) cgetstr(buf, "b0", &dp->d_boot0); cgetstr(buf, "b1", &dp->d_boot1); - if (cgetstr(buf, "ty", &cq) > 0 && strcmp(cq, "removable") == 0) - dp->d_flags |= D_REMOVABLE; if (cgetcap(buf, "sf", ':') != NULL) dp->d_flags |= D_BADSECT; |