| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
Approved by: cognet (mentor)
Notes:
svn path=/head/; revision=178765
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
of disk names, where you must free each pointer, as well as the array
by hand. [1]
- Destaticize "disks" in Disk_Names, it has no reasons to be static.
PR: kern/96077 [1]
PR: kern/114110 [1]
MFC after: 1 month
Approved by: rwatson (mentor)
Notes:
svn path=/head/; revision=176322
|
| |
|
|
|
|
|
|
|
| |
PR: bin/96326
Submitted by: Alex Kozlov
MFC after: 2 weeks
Notes:
svn path=/head/; revision=158033
|
| |
|
|
| |
Notes:
svn path=/head/; revision=154814
|
| |
|
|
| |
Notes:
svn path=/head/; revision=145013
|
| |
|
|
|
|
|
| |
MFC after: 1 week
Notes:
svn path=/head/; revision=139167
|
| |
|
|
|
|
|
| |
Submitted by: Lawrence.Lee@sun.com
Notes:
svn path=/head/; revision=137512
|
| |
|
|
|
|
|
|
|
|
|
| |
GCC doesn't warn about them without -pedantic.
Approved by: das (mentor)
PR: 56649
Reviewed by: md5
Notes:
svn path=/head/; revision=129302
|
| |
|
|
|
|
|
|
| |
submitted by: Suleiman Souhlal <refugee@segfaulted.com>
approved by: phk, jhb
Notes:
svn path=/head/; revision=128541
|
| |
|
|
|
|
|
| |
Glanced by: jhb
Notes:
svn path=/head/; revision=127595
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
platforms except ia64 and use Int_Open_Disk() in open_ia64_disk.c
on ia64. We need to know more than GEOM can provide us so we're
forced to read from the disk. Move uuid_type() to open_ia64_disk.c
and remove all references on non-ia64.
o Pass the GEOM conftxt to Int_Open_Disk() so that only Open_Disk()
needs to know about GEOM and libdisk can more easily be used with
media not handled by GEOM.
o Create an ia64 specific definiton of struct disk on ia64, because
we don't need/have most of the fields other platforms need and
other fields not applicable on platforms other than ia64.
o Do not compile change.c on ia64. It's too PC specific.
o In Fixup_Names() in create_chunk.c, try all partition numbers
that are valid for the GPT disk. We have the total number of
partitions that can be allocated in the disk structure on ia64.
Also, use the GPT partition naming if we're creating one under
a chunk of type "whole". It's a GPT partition in that case.
o In Create_Chunk(), compile-out the PC specific code on ia64 that
checks BIOS geometry restrictions.
o In Debug_Disk() in disk.c, dump the ia64 specific fields.
o Save the partition index in the chunk on ia64 so that we can
preserve it when we write the data back to disk. This avoids that
partitions get moved around or swapped after installing FreeBSD,
which may render a disk unusable.
Notes:
svn path=/head/; revision=121888
|
| |
|
|
|
|
|
|
|
| |
the "BARF 360" ccd(4) user's experience.
Submitted by: rwatson
Notes:
svn path=/head/; revision=119532
|
| |
|
|
|
|
|
|
| |
doesn't get fooled into returning a bogus list. This should fix sysinstall
from segfaulting when no disk devices are present.
Notes:
svn path=/head/; revision=115981
|
| |
|
|
| |
Notes:
svn path=/head/; revision=114329
|
| |
|
|
| |
Notes:
svn path=/head/; revision=114300
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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.
Notes:
svn path=/head/; revision=113083
|
| |
|
|
|
|
|
| |
Spotted by: Lucky Green <shamrock@cypherpunks.to>
Notes:
svn path=/head/; revision=112333
|
| |
|
|
|
|
|
|
|
|
| |
of BSD part chunks when opening a disk.
Reviewed by: phk
MFC after: 2 days
Notes:
svn path=/head/; revision=109082
|
| |
|
|
|
|
|
|
|
|
|
| |
devices that is not inserted any media.
This is MFC candidate.
Submitted by: ISAKA Yoji <isaka@cory.jp>
Notes:
svn path=/head/; revision=108292
|
| |
|
|
|
|
|
| |
- Get the slice name from the result of kern.geom.conftxt.
Notes:
svn path=/head/; revision=107011
|
| |
|
|
| |
Notes:
svn path=/head/; revision=106949
|
| |
|
|
|
|
|
|
|
| |
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.
Notes:
svn path=/head/; revision=106837
|
| |
|
|
| |
Notes:
svn path=/head/; revision=106761
|
| |
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
| |
- Fix to convert to the name of partition.
Notes:
svn path=/head/; revision=106633
|
| |
|
|
| |
Notes:
svn path=/head/; revision=106621
|
| |
|
|
|
|
|
| |
(merged i386 changes from chunk.c 1.41 and disk.c 1.100)
Notes:
svn path=/head/; revision=106549
|
| |
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
| |
Spotted by: Frode Nordahl <frode@nordahl.net>
Notes:
svn path=/head/; revision=106337
|
| |
|
|
| |
Notes:
svn path=/head/; revision=106240
|
| |
|
|
| |
Notes:
svn path=/head/; revision=106238
|
| |
|
|
|
|
|
| |
to the right place on the disk instead of srewn all over it.
Notes:
svn path=/head/; revision=106232
|
| |
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
| |
- Fix to build w/o the HAVE_GEOM option.
Notes:
svn path=/head/; revision=105791
|
| |
|
|
| |
Notes:
svn path=/head/; revision=105784
|
| |
|
|
|
|
|
| |
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
|
| |
|
|
| |
Notes:
svn path=/head/; revision=105652
|
| |
|
|
|
|
|
| |
Approved by: sam
Notes:
svn path=/head/; revision=105646
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
o fillin media s/h/c fields from new XML phk just added; need this because
sysinstall uses them in the fdisk look-alike
o add new tags to xml parser
o cleanup parser a touch; remove unused tags and move tag parsing stuff to
a table to simplify future additions
o redo callback to pass 64-bit values since mediasize overflows u_int32_t
o loosen parsing sanity checks a touch to deal with new xml we must handle
o move sector size probing to non-geom handling since we now get it from xml
o remove WHOLE_DISK_SLICE buggery now that we get mediasize from xml
Notes:
svn path=/head/; revision=105575
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
get the xml configuration for the devices and "parse" the information to
get what's needed
o replace #ifdef DEBUG constructs with DPRINT/DPRINTX to make the code more
readable
Note the xml "parser" is very very hackish and should be replaced with a
real one. This one was done to be very small and special-purpose; don't
think about copying it elsewhere.
Approved by: phk
Notes:
svn path=/head/; revision=105460
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
o memory wasn't reclaimed in certain cases
o add more msgs under #ifdef DEBUG
o rewrite tangle of for loops for clarity
NB: Open_Disk should redo how it malloc's memory so the caller can free
everything. Documentation says the caller can free the disk list to
reclaim everything but this leaks the indirect strings. Fixing this
is simple for the sysctl case but adds complexity to the fallback,
non-sysctl, case.
Notes:
svn path=/head/; revision=105349
|
| |
|
|
| |
Notes:
svn path=/head/; revision=105348
|