| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |
|
|
|
|
|
|
|
| |
with stdlib.h).
discussed with: phk
Notes:
svn path=/head/; revision=106783
|
| |
|
|
| |
Notes:
svn path=/head/; revision=106761
|
| |
|
|
| |
Notes:
svn path=/head/; revision=106752
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
always to the first 16 sectors of the disk. The firmware reads the boot
code from a partition, defaulting to 'a' if none is specified, which only
corresponds to the first 16 sectors of the disk if 'a' is first. Solaris
often makes the swap partition first, instead of the root partition, and
users expect to be able to do the same with freebsd as well. This also
allows one to temporarily boot from another partition if the boot block
on the root partition gets scrambled somehow.
Notes:
svn path=/head/; revision=106745
|
| |
|
|
|
|
|
|
| |
Also, return chunk type efi in case we find an EFI partition in
the GPT. We used to return FAT due to a lack of EFI type.
Notes:
svn path=/head/; revision=106743
|
| |
|
|
|
|
|
|
| |
on ia64, because that's where we need to put the loader and the
kernel.
Notes:
svn path=/head/; revision=106742
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
o Remove all code guarded by !defined(__ia64__). This file is
specifically written for ia64,
o Handle the case when read_block() or write_block() fails. We
don't want sysinstall(8) to signal a thumbs-up on error,
o Set the starting (cyl,hd,sect) triple to 0xFFFFFF when either
bios_hd or bios_sect is zero or the LBA us not representable
with the triple. In that case automaticly initialize the
ending triple with 0xFFFFFF as well,
o Reindent Write_Int32() as it was different than the rest of
the file,
o Remove some unused variables that appeared to be used but
were effectively useless.
o Plug a memory leak: The second timne we read the MBR, we write
out a modified block, but didn't free the memory after writing.
o Replace d1->sector_size with 512 when we read/write the MBR.
We ignore the sector size in cases we shouldn't but adhered to
it in cases it would be wrong if the sector_size wasn't 512.
This file should eventually be rewritten to write out a GPT. For
now, a MBR will do...
Notes:
svn path=/head/; revision=106741
|
| |
|
|
|
|
|
| |
- Fix to convert to the name of partition.
Notes:
svn path=/head/; revision=106633
|
| |
|
|
| |
Notes:
svn path=/head/; revision=106623
|
| |
|
|
|
|
|
| |
correct value in the next statement.
Notes:
svn path=/head/; revision=106622
|
| |
|
|
| |
Notes:
svn path=/head/; revision=106621
|
| |
|
|
|
|
|
| |
- Miscellaneous cleanups.
Notes:
svn path=/head/; revision=106619
|
| |
|
|
|
|
|
| |
(merged i386 changes from chunk.c 1.41 and disk.c 1.100)
Notes:
svn path=/head/; revision=106549
|
| |
|
|
|
|
|
|
|
|
| |
to use the same start condition as the i386 version. However, since
Alpha's only have one fake "slice" from sysinstall's perspective we don't
need to use a loop, but can just write out the BSD label in the first
fake "slice".
Notes:
svn path=/head/; revision=106548
|
| |
|
|
| |
Notes:
svn path=/head/; revision=106384
|
| |
|
|
| |
Notes:
svn path=/head/; revision=106373
|
| |
|
|
|
|
|
|
|
|
| |
of heads end the number of sectors per track. If there's an obvious
insanity (heads and sectors are both zero or the media size is not
an integral multiple of heads times sector) we set the number of
cylinders to zero.
Notes:
svn path=/head/; revision=106368
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
1. When the parition type is not an integer, try to parse the type
as an UUID. If that succeeds, map the UUID to chunk_e.
2. For GPT partitions, pass the type constructed in point 1 above
to Add_Chunk.
While here, fix the MBREXT case by only checking if the first 3
characters are MBR. This avoids duplication.
Notes:
svn path=/head/; revision=106343
|
| |
|
|
|
|
|
|
| |
with GPT chunks of type "part" do not necessarily live under chunks
of type "freebsd". We don't necessarily have a disklabel.
Notes:
svn path=/head/; revision=106342
|
| |
|
|
|
|
|
| |
Spotted by: Frode Nordahl <frode@nordahl.net>
Notes:
svn path=/head/; revision=106337
|
| |
|
|
| |
Notes:
svn path=/head/; revision=106303
|
| |
|
|
| |
Notes:
svn path=/head/; revision=106241
|
| |
|
|
| |
Notes:
svn path=/head/; revision=106240
|
| |
|
|
| |
Notes:
svn path=/head/; revision=106238
|
| |
|
|
| |
Notes:
svn path=/head/; revision=106237
|
| |
|
|
| |
Notes:
svn path=/head/; revision=106236
|
| |
|
|
|
|
|
| |
to the right place on the disk instead of srewn all over it.
Notes:
svn path=/head/; revision=106232
|
| |
|
|
| |
Notes:
svn path=/head/; revision=106223
|
| |
|
|
| |
Notes:
svn path=/head/; revision=106222
|
| |
|
|
|
|
|
|
|
|
| |
Always ignore the RAW_PART for BSD.
Having no quirks is not a mistake for an architecture.
Tested by: DES
Notes:
svn path=/head/; revision=106155
|
| |
|
|
| |
Notes:
svn path=/head/; revision=106141
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This significantly rewamps libdisks discovery of existing disk
layout.
Please send me reports if this does not work as expected on
i386 or sparc64 platforms.
I need to sort out alpha, pc98 and ia64 (in that order) before
testing on those platforms make a lot of sense.
Belived to work for: i386 sparc64
Unknown state: pc98 alpha ia64
Notes:
svn path=/head/; revision=106135
|
| |
|
|
|
|
|
| |
Don't explode on 'write' because we access a pointer we just freed.
Notes:
svn path=/head/; revision=106116
|
| |
|
|
|
|
|
| |
order instead of last.
Notes:
svn path=/head/; revision=106114
|
| |
|
|
|
|
|
|
| |
This file depends on some major surgery in the rest of libdisk which is
not yet committed.
Notes:
svn path=/head/; revision=106113
|
| |
|
|
|
|
|
| |
I've cloned write_ia64_disk.c from write_i386_disk.c.
Notes:
svn path=/head/; revision=106008
|
| |
|
|
|
|
|
| |
on alpha, sparc64 and ia64
Notes:
svn path=/head/; revision=105873
|
| |
|
|
|
|
|
|
|
|
| |
remove CHUNK_BSD_COMPAT, it was a bad idea, and now its gone.
remove DOSPTYP_ONTRACK, missed in OnTrack removal commit.
unifdef -DHAVE_GEOM
make tst01 compile again.
Notes:
svn path=/head/; revision=105821
|
| |
|
|
| |
Notes:
svn path=/head/; revision=105820
|
| |
|
|
|
|
|
|
| |
many lists of disk device driver names in the system. At this point
we should really get the names from the XML, but hey...
Notes:
svn path=/head/; revision=105818
|
| |
|
|
|
|
|
| |
with the disk. GEOM will automatically retaste when we closet he filedesc.
Notes:
svn path=/head/; revision=105817
|
| |
|
|
|
|
|
|
|
|
| |
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.
Notes:
svn path=/head/; revision=105816
|
| |
|
|
| |
Notes:
svn path=/head/; revision=105815
|
| |
|
|
|
|
|
| |
- Fix to build w/o the HAVE_GEOM option.
Notes:
svn path=/head/; revision=105791
|
| |
|
|
| |
Notes:
svn path=/head/; revision=105784
|
| |
|
|
| |
Notes:
svn path=/head/; revision=105711
|
| |
|
|
| |
Notes:
svn path=/head/; revision=105707
|
| |
|
|
|
|
|
| |
numbers, but so far havn't come up with anything: Add an #ifdef PC98.
Notes:
svn path=/head/; revision=105688
|
| |
|
|
|
|
|
| |
an extra argument for all archs.
Notes:
svn path=/head/; revision=105685
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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.
Notes:
svn path=/head/; revision=105681
|