1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-24 11:29:10 +00:00
freebsd/sys
Bruce Evans 0e6021ad31 Reject attempts to set an in-core label which says that the "disk"
or a partition is larger than the slice.

Now `disklabel -Brw sdX auto' should fail properly on sliced disks
without partition of type 165, e.g., on zip disks with the factory
default formatting.  Previously it set a bogus in-core label for
the compatibility slice and used this to corrupt the MBR (the slice
has offset 0 and size 0, but setting the label in effect corrupted
its size to nonzero).

`disklabel -Brw sdX auto' already failed properly on normally (not
dangerously dedicated) sliced disks _with_ partition of type 165,
because the compatibility slice has a nonzero offset so the MBR
remained inaccessible when the size was corrupted.

This bug only affected in-core labels.  On-disk labels are checked
carefully when they read and written.
1997-09-16 10:11:49 +00:00
..
alpha Always defines macros for PC-98 display. 1997-09-04 09:05:17 +00:00
amd64 Addf flags 0x10 to the sio0 line, so it is available as a potential 1997-09-14 18:57:01 +00:00
compat Moved include files which are independent of bs driver. 1997-08-28 09:23:57 +00:00
compile
conf Make FDC_DEBUG a supported option. 1997-09-16 07:45:45 +00:00
ddb Minor hack to also allow for syscons's "interesting" arrow keys. 1997-08-17 21:21:50 +00:00
dev Make FDC_DEBUG a supported option. 1997-09-16 07:45:45 +00:00
fs Convert select -> poll. 1997-09-14 02:58:12 +00:00
geom Removed unused #includes. 1997-06-14 13:56:12 +00:00
gnu Update select -> poll in drivers. 1997-09-14 03:19:42 +00:00
i386 Make FDC_DEBUG a supported option. 1997-09-16 07:45:45 +00:00
isa Make FDC_DEBUG a supported option. 1997-09-16 07:45:45 +00:00
isofs/cd9660 Convert select -> poll. 1997-09-14 02:58:12 +00:00
kern Reject attempts to set an in-core label which says that the "disk" 1997-09-16 10:11:49 +00:00
libkern Removed unused #includes. 1997-08-02 14:33:27 +00:00
miscfs devfs changes to allow old (better) and newer (braindamaged) behaviour. 1997-09-16 09:10:18 +00:00
modules Add example for IPFIREWALL_DEFAULT_TO_ACCEPT 1997-09-10 04:19:07 +00:00
msdosfs Convert select -> poll. 1997-09-14 02:58:12 +00:00
net Update network code to use poll support. 1997-09-14 03:10:42 +00:00
netatalk Update network code to use poll support. 1997-09-14 03:10:42 +00:00
netinet Prevent overflow with fragmented packets 1997-09-15 23:07:01 +00:00
netipx Update network code to use poll support. 1997-09-14 03:10:42 +00:00
netkey
netnatm Update network code to use poll support. 1997-09-14 03:10:42 +00:00
netns Remove unneeded member nsp_head from struct nspcb. 1997-04-14 18:26:51 +00:00
nfs select -> poll 1997-09-14 03:00:44 +00:00
nfsclient select -> poll 1997-09-14 03:00:44 +00:00
nfsserver Remove a couple of stubborn NetBSD #if's. 1997-09-10 20:22:32 +00:00
pc98 Synchronize with sys/i386/conf/files.i386 revision 1.176. 1997-09-15 04:00:32 +00:00
pccard Update select -> poll in drivers. 1997-09-14 03:19:42 +00:00
pci Update select -> poll in drivers. 1997-09-14 03:19:42 +00:00
powerpc/include
rpc Resolve conflicts. 1997-05-28 04:45:15 +00:00
scsi Update select -> poll in drivers. 1997-09-14 03:19:42 +00:00
sys Regenerate _after_ the commit to syscalls.master 1997-09-15 02:03:45 +00:00
tools 3 lines of code and updates to a number of comments. 1997-09-10 20:11:02 +00:00
ufs Convert select -> poll. 1997-09-14 02:58:12 +00:00
vm Update select -> poll in drivers. 1997-09-14 03:19:42 +00:00
Makefile Commit a long-forgotten tweak for building tags in /usr/src/sys. 1997-07-13 07:36:20 +00:00