| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
| |
Pointed out by: marcel
Notes:
svn path=/head/; revision=194244
|
|
|
|
|
|
|
| |
Suggested by: trhodes
Notes:
svn path=/head/; revision=192772
|
|
|
|
|
|
|
|
|
|
|
| |
so that it understands '*' as 'DTRT'.
PR: 68312
Submitted by: Rene de Vries - rene at tunix dot nl (mostly)
MFC after: 3 weeks
Notes:
svn path=/head/; revision=192745
|
|
|
|
|
|
|
|
|
| |
Add entries for DELL and ASUS recovery partitions.
MFC after: 3 days
Notes:
svn path=/head/; revision=187248
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
replace the table of partition with a simpler and faster array of strings.
The change in the array is done mechanically, using vi commands.
Most entries in the table are probably 15+ years old and largely outdated,
so the next step is to remove stale entries with more current values.
Submitted by: Christoph Mallon, with small changes from me
MFC after: 3 days
Notes:
svn path=/head/; revision=187246
|
|
|
|
|
|
|
|
|
|
|
| |
pass a pointer instead of an index to print_part()
so it does not depend on a static variable.
Submitted by: Christoph Mallon
MFC after: 3 days
Notes:
svn path=/head/; revision=187241
|
|
|
|
|
|
|
|
| |
Submitted by: Christoph Mallon
MFC after: 3 days
Notes:
svn path=/head/; revision=187239
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
+ Remove a dead field of a struct. It serves no purpose anymore.
+ Remove a \n at the end of the format string of err(); the err()
function already adds a \n ;
+ remove many unnecessary casts which obfuscate the code.
This file has a huge number of indentation bugs, but I'd rather fix
them when/if we happen to modify the relevant parts of the code.
Submitted by: Christoph Mallon
MFC after: 3 days
Notes:
svn path=/head/; revision=187203
|
|
|
|
|
|
|
|
|
| |
- While there, make error messages consistent with the rest.
Approved by: kib (mentor)
Notes:
svn path=/head/; revision=183487
|
|
|
|
|
|
|
|
| |
PR: bin/127573
Submitted by: Eygene Ryabinkin
Notes:
svn path=/head/; revision=183296
|
|
|
|
|
|
|
|
|
|
|
|
| |
duplication of code in fdisk and boot0cfg. Also make use of g_providername to
fix an issue with fdisk and boot0cfg not using the correct provider when
writing the MBR.
Reviewed by: phk
Approved by: pjd (mentor)
Notes:
svn path=/head/; revision=182844
|
|
|
|
| |
Notes:
svn path=/head/; revision=181036
|
|
|
|
|
|
|
| |
Submitted by: rpaulo (SoC2007 student)
Notes:
svn path=/head/; revision=169324
|
|
|
|
|
|
|
|
|
|
|
| |
Now it is possible to do something like fdisk -p ad0 | fdisk -f - ad1.
PR: bin/110182
Submitted by: Jukka A. Ukkonen
MFC after: 1 month
Notes:
svn path=/head/; revision=169143
|
|
|
|
|
|
|
| |
- Remove some historical notes about "future" decisions.
Notes:
svn path=/head/; revision=165121
|
|
|
|
|
|
|
|
|
| |
: fdisk.c revision 1.74
: date: 2004/06/14 07:21:19; author: phk; state: Exp; lines: +3 -3
: Make fdisk initialize the first instead of the last slice by default.
Notes:
svn path=/head/; revision=165017
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
sector size, instead of later failing with an error about /boot/mbr
not being a multiple of the sector size (since we end up with an
assumed sector size of MAX_SEC_SIZE * 2).
- We query the sector size via an IOCTL anyway, so if that succeeds
use that instead of probing for it via read(2) calls. This fixes
the problem with fdisk failing to operate on at least graid3 and
md(4) devices on kernels with src/sys/geom/geom_dev.c before
rev. 1.90, due to fdisk failing to detect the sector size.
- When detecting the root device allow "/" characters in it, which
happens with e.g. gmirror devices.
Reviewed by: cperciva
MFC after: 1 week
Notes:
svn path=/head/; revision=159757
|
|
|
|
|
|
|
|
|
| |
PR: bin/84664
Submitted by: Daan Vreeken <Danovitsch at Vitsch dot net>
MFC after: 3 days
Notes:
svn path=/head/; revision=150249
|
|
|
|
|
|
|
| |
This should solve the problem of modifying a busy MBR.
Notes:
svn path=/head/; revision=148035
|
|
|
|
| |
Notes:
svn path=/head/; revision=145763
|
|
|
|
| |
Notes:
svn path=/head/; revision=145747
|
|
|
|
|
|
|
| |
the correct mode for our arguments.
Notes:
svn path=/head/; revision=145690
|
|
|
|
|
|
|
| |
Submitted by: Lawrence.Lee@sun.com
Notes:
svn path=/head/; revision=137511
|
|
|
|
|
|
|
| |
Reviewed by: jhb
Notes:
svn path=/head/; revision=136720
|
|
|
|
| |
Notes:
svn path=/head/; revision=131488
|
|
|
|
| |
Notes:
svn path=/head/; revision=130452
|
|
|
|
|
|
|
| |
Use WARNS?= instead of WARNS=.
Notes:
svn path=/head/; revision=126178
|
|
|
|
|
|
|
|
|
| |
(and perhaps earlier).
Submitted by: Joerg Schilling <schilling@fokus.fraunhofer.de>
Notes:
svn path=/head/; revision=123637
|
|
|
|
|
|
|
|
|
| |
if the user agrees, move them out one track.
MFC after: 7 days
Notes:
svn path=/head/; revision=122627
|
|
|
|
| |
Notes:
svn path=/head/; revision=120998
|
|
|
|
| |
Notes:
svn path=/head/; revision=114589
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Always set the magic sequence when we write, rather than trusting the
previously read boot code to do so.
Use explicit encoding/decoding of little endian disk image.
Remove a comment which was OBE.
Change the test vector for "fdisk -I" to reflect that there is a magic
sequence in the result now.
Add test case for "fdisk" which reads the image back.
At least for the two test-cases this program now gives the same result
on sparc64 as on i386. The lack of an installed /boot/mbr on sparc64
raises an (un)interesting question.
Notes:
svn path=/head/; revision=113454
|
|
|
|
|
|
|
| |
Add a very simple regression test for "fdisk -I".
Notes:
svn path=/head/; revision=113451
|
|
|
|
|
|
|
|
|
|
| |
512 for sectorsize.
63 for sectors.
255 for heads.
This will mostly show up on MD(4) devices.
Notes:
svn path=/head/; revision=112826
|
|
|
|
|
|
|
| |
Add FreeBSD Id tag where missing.
Notes:
svn path=/head/; revision=108470
|
|
|
|
| |
Notes:
svn path=/head/; revision=108395
|
|
|
|
|
|
|
|
|
| |
root is on from the root mount path.
Spotted by: imp
Notes:
svn path=/head/; revision=106033
|
|
|
|
|
|
|
| |
issues a useless warning now.
Notes:
svn path=/head/; revision=106031
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
Notes:
svn path=/head/; revision=104272
|
|
|
|
|
|
|
| |
Sponsored by: DARPA & NAI Labs.
Notes:
svn path=/head/; revision=103665
|
|
|
|
|
|
|
|
|
| |
expecting a bogo-disklabel to contain them, if possible.
This makes fdisk work with GEOM.
Notes:
svn path=/head/; revision=103348
|
|
|
|
| |
Notes:
svn path=/head/; revision=102231
|
|
|
|
|
|
|
|
|
| |
(but not actual) alignment problems. Both of these bugs were detected
on ia64's and were fatal on ia64's due to premature setting of WARNS
to 4.
Notes:
svn path=/head/; revision=100202
|
|
|
|
| |
Notes:
svn path=/head/; revision=97569
|
|
|
|
|
|
|
|
| |
no /boot/mbr to read the boot code from (ia64 does not *have* bootblocks!).
fdisk depended on magic in the /boot/mbr file to initialize some fields.
Notes:
svn path=/head/; revision=95860
|
|
|
|
|
|
|
| |
Submitted by: Hiten Pandya <hiten@uk.FreeBSD.org>
Notes:
svn path=/head/; revision=95602
|
|
|
|
|
|
|
|
|
|
|
|
| |
s/partition/slice/ in fdisk.8
fix a bug in fdisk(8) where it did not honer -t when using -I
PR: 36563 and 35688
Submitted by: bde
Reviewed by: bde
Notes:
svn path=/head/; revision=95002
|
|
|
|
|
|
|
| |
linelength.
Notes:
svn path=/head/; revision=93394
|
|
|
|
|
|
|
|
| |
PR: i386/14793
MFC after: 3 days
Notes:
svn path=/head/; revision=90866
|
|
|
|
|
|
|
|
|
|
|
|
| |
of unused partition entries and later detection of unused entries.
Use memcpy to be consistent with the rest of the code, and fix a
minor style nit.
Submitted by: bde
Notes:
svn path=/head/; revision=88714
|