| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
and uses a number of problematic pre-gpart interfaces. Since it has been
entirely obsoleted by interfaces in geom, remove it.
|
|
|
|
|
| |
on ia64. Not only do we not have a disklabel by default, we also do
not have a notion of cylinders, tracks and sectors.
|
|
|
|
|
|
|
|
|
| |
Move the remaining bits of <sys/diskslice.h> to <i386/include/bootinfo.h>
Move i386/pc98 specific bits from <sys/reboot.h> to
<i386/include/bootinfo.h> as well.
Adjust includes in sys/boot accordingly.
|
|
|
|
|
| |
functions.
- Clean up a few signed/unsigned warnings.
|
| |
|
|
|
|
|
|
|
| |
own file and own copy of WriteDisk() to do things in.
This should have happened years ago, instead of adding #ifdefs all
over the place.
|
| |
|
|
|
|
|
|
|
|
|
| |
Constify some things.
Staticize some things.
Remove some unused things.
Prototype some things.
Don't install a gazillion man-pages links.
Drop support for ON-TRACK disk-manager.
|
|
|
|
| |
Sponsored by: DARPA & NAI Labs.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Peter had repocopied sys/disklabel.h to sys/diskpc98.h and sys/diskmbr.h.
These two new copies are still intact copies of disklabel.h and
therefore protected by #ifndef _SYS_DISKLABEL_H_ so #including them
in programs which already include <sys.disklabel.h> is currently a
no-op.
This commit adds a number of such #includes.
Once I have verified that I have fixed all the places which need fixing,
I will commit the updated versions of the three #include files.
Sponsored by: DARPA & NAI Labs.
|
|
|
|
|
|
|
| |
initialize it to zero so we don't have to have everbody and their
aunt including FFS specific header files.
Sponsored by: DARPA & NAI Labs.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
+ make Open_Disk sense the sector size by trying 512, 1024 and 2048
in this order. This makes the kernel note that
dscheck(cd1): bio_bcount 512 is not on a sector boundary (ssize 2048)
dscheck(cd1): bio_bcount 1024 is not on a sector boundary (ssize 2048)
if 2048 is the sector size. If this worries anyone: the message is from
/usr/src/sys/kern/subr_diskslice.c and shutups are to be placed there.
+ Have read_block and write_block use an additional parameter, the
sector size.
+ replace all barfout calls with return NULL, 0, __LINE__, etc.
Note that this does NOT emit diagnostics. More often than not,
you don't want library functions to scribble on stderr -- it may
not even be available. The right thing is to propagate the error
condition to upper management. The app should take care of errors.
+ use d1->sector_size instead of 512 in various places. I've left many
places untouched, especially those writing MBRs. I simply added
another arg hardcoded as 512. This is because I would not know what
I'm doing... I felt this approach would be reasonably backward
compatible and not introduce any new bugs in critical software.
Famous last words. Messing with MBRs might soon put me in the same
screwup meister category as, uh, never mind. :-)
+ bump the max no of disks from 20 to 32 (due to PR 24503).
PR: 8434 / 8436 / 24503
Submitted by: Jens Schweikhardt <schweikh@schweikhardt.net>
|
|
|
|
|
| |
It's OK, the Project and afford them now -- they aren't as expensive as
they used to be.
|
|
|
|
|
|
| |
Also, looking to the future, don't assume all the world is an i386 and all
its disk layout brain damage will be repeated by other platforms. So all
the diking out if we are an Alpha, becomes adding in if we are an i386.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
`err()'). libdisk does! and additionally libdisk gets confused on Alpha
disks with foreign disklabels, throws up its hands and exits. This is
the cause of the "going no where without my init" install bug on the Alpha.
So now on the Alpha, rather than call err(), we print the error string and
continue processing.
Submitted by: jkh
|
|
|
|
|
|
|
|
|
| |
present, this is limited to turning on the packet option if any of
disk slices begin above cylinder 1023. The effect of this change
should therefore be to automatically enable LBA support, as needed,
when installing FreeBSD.
Something-of-the-kind-requested-by: peter
|
|
|
|
| |
- Cosmetic changes.
|
|
|
|
|
|
| |
- Recognize slice type 0x24 as FAT (only PC-98).
Submitted by: Nobuyuki Koganemaru <kogane@koganemaru.co.jp>
|
|
|
|
|
|
| |
with fdisk, ensure that they are a multiple of the sector size in length.
- Axe all the 1024 cylinder checks as they are no longer relevant with the
fixed bootstrap.
|
| |
|
|
|
|
|
| |
This should fix sysinstall and other tools that don't expect the 'r' devices
to exist anymore (and thus don't create them).
|
| |
|
| |
|
| |
|
|
|
|
| |
Enabled writing to the disklabel when writing a disk (only affects alpha).
|
|
|
|
| |
Submitted by: dfr
|
|
|
|
| |
Submitted by: dfr
|
|
|
|
| |
Submitted by: Some from Satoh Junichi (junichi@astec.co.jp)
|
| |
|
|
|
|
| |
Submitted by: dfr
|
|
|
|
|
| |
"da" and "od" devices. Formerly ESDI was used for them, causing
problems for fresh installations of CAM systems.
|
| |
|
|
|
|
|
|
|
|
| |
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.
Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.
|
| |
|
|
|
|
| |
out in my curses interfaces and spamming my screen.
|
|
|
|
| |
Approved (in spirit) by: jkh
|
| |
|
| |
|
| |
|
|
|
|
| |
Submitted By: phk
|
| |
|
| |
|
|
|
|
| |
handle OnTrack Disk manager correctly.
|
| |
|
|
|
|
| |
CheckRules sets the CHUNK_ALIGN & CHUNK_PAST_1024 flags.
|
|
|
|
|
|
| |
end CHS is 1023,bios_hd,bios_sect if past 1024. This way we can find
bios the geometry again.
Added a primitive "scan" to tst01.
|
|
|
|
|
| |
Get the CHS's right.
Get the disklabels (more) right.
|