| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
Spotted by: Lucky Green <shamrock@cypherpunks.to>
|
| |
|
|
|
|
|
| |
functions.
- Clean up a few signed/unsigned warnings.
|
| |
|
|
|
|
|
|
|
| |
of BSD part chunks when opening a disk.
Reviewed by: phk
MFC after: 2 days
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- In Create_Chunk_DWIM(), if there is a freebsd chunk that has no
children chunks, then trying to add a child part chunk will fail even
though there is free space. Handle this special case by adding an
unused chunk the full size of the freebsd chunk as a child of the
freebsd chunk before adding the new part chunk. This situation can
happen when changing the type of an existing slice to be a FreeBSD
slice type or when installing onto a blank disk on Alpha (which has
no slices.)
Reviewed by: phk
MFC after: 2 days
|
| |
|
|
|
|
| |
especially in troff files.
|
|
|
|
|
|
|
|
| |
devices that is not inserted any media.
This is MFC candidate.
Submitted by: ISAKA Yoji <isaka@cory.jp>
|
|
|
|
|
|
|
| |
are marked up in stdio(3), and because they are defined expressions
of type "FILE *".
Approved by: re
|
|
|
|
|
|
|
|
|
|
|
| |
to be cleaner. Also, when deleting a chunk, try to find the mother chunk
as a whole chunk by default if this isn't a BSD partition or a unused or
whole chunk. Before we just did this for FreeBSD and FAT slices, which
means that other chunk types such as EFI and mbr (mbr is used for slices
that don't have their own chunk type).
Submitted by: nyan (mostly)
Approved by: re
|
|
|
|
| |
- Get the slice name from the result of kern.geom.conftxt.
|
| |
|
|
|
|
|
|
| |
difference between the two from a low-level point of view is that
the partition type is different. This change adds EFI related cases
to existing switch statements with existing FAT related cases.
|
|
|
|
| |
- Rearrange things a tiny bit.
|
|
|
|
|
|
| |
with stdlib.h).
discussed with: phk
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
on ia64, because that's where we need to put the loader and the
kernel.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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...
|
|
|
|
| |
- Fix to convert to the name of partition.
|
| |
|
|
|
|
| |
correct value in the next statement.
|
| |
|
|
|
|
| |
- Miscellaneous cleanups.
|
|
|
|
| |
(merged i386 changes from chunk.c 1.41 and disk.c 1.100)
|
|
|
|
|
|
|
| |
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".
|
| |
|
| |
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
with GPT chunks of type "part" do not necessarily live under chunks
of type "freebsd". We don't necessarily have a disklabel.
|
|
|
|
| |
Spotted by: Frode Nordahl <frode@nordahl.net>
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
to the right place on the disk instead of srewn all over it.
|
| |
|
| |
|
|
|
|
|
|
|
| |
Always ignore the RAW_PART for BSD.
Having no quirks is not a mistake for an architecture.
Tested by: DES
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Don't explode on 'write' because we access a pointer we just freed.
|
|
|
|
| |
order instead of last.
|
|
|
|
|
| |
This file depends on some major surgery in the rest of libdisk which is
not yet committed.
|