History log of /freebsd/sbin/fdisk/fdisk.c (Results 151 – 175 of 240)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 40905b6e 14-Jan-2009 Luigi Rizzo <luigi@FreeBSD.org>

more changes from Christoph:
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


# fbcb16ef 14-Jan-2009 Luigi Rizzo <luigi@FreeBSD.org>

remove unused argument to print_s0()

Submitted by: Christoph Mallon
MFC after: 3 days


# c4898ccb 14-Jan-2009 Luigi Rizzo <luigi@FreeBSD.org>

Some small fixes submitted by Christoph Mallon, specifically:

+ 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()
fun

Some small fixes submitted by Christoph Mallon, specifically:

+ 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

show more ...


Revision tags: release/7.1.0_cvs, release/7.1.0, release/6.4.0_cvs, release/6.4.0
# bd5add58 30-Sep-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Improve error message given on g_providername call failure.
- While there, make error messages consistent with the rest.

Approved by: kib (mentor)


# b31e5ae2 07-Sep-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Make use of the new and g_device_path utility function in libgeom to avoid
duplication of code in fdisk and boot0cfg. Also make use of g_providername to
fix an issue with fdisk and boot0cfg not

- Make use of the new and g_device_path utility function in libgeom to avoid
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)

show more ...


# a61d9186 31-Jul-2008 David E. O'Brien <obrien@FreeBSD.org>

Add a -q[uiet] flag for scripts.


Revision tags: release/7.0.0_cvs, release/7.0.0, release/6.3.0_cvs, release/6.3.0
# 5b93d331 06-May-2007 Andre Oppermann <andre@FreeBSD.org>

Add Apple HFS+ (0xAF) MBR partition type identificator.

Submitted by: rpaulo (SoC2007 student)


# 7914c60f 30-Apr-2007 Maxim Konovalov <maxim@FreeBSD.org>

o Add -p flag: print a slice table in fdisk configuration file format.
Now it is possible to do something like fdisk -p ad0 | fdisk -f - ad1.

PR: bin/110182
Submitted by: Jukka A. Ukkonen
MFC after

o Add -p flag: print a slice table in fdisk configuration file format.
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

show more ...


Revision tags: release/6.2.0_cvs, release/6.2.0
# aee85526 19-Jun-2006 Simon L. B. Nielsen <simon@FreeBSD.org>

- Fail with an understandable error message if we cannot detect the
sector size, instead of later failing with an error about /boot/mbr
not being a multiple of the sector size (since we end up wi

- Fail with an understandable error message if we cannot detect the
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

show more ...


Revision tags: release/5.5.0_cvs, release/5.5.0, release/6.1.0_cvs, release/6.1.0, release/6.0.0_cvs, release/6.0.0
# d63612b4 17-Sep-2005 Craig Rodrigues <rodrigc@FreeBSD.org>

Call gctl_free() to free resource allocated with gctl_get_handle().

PR: bin/84664
Submitted by: Daan Vreeken <Danovitsch at Vitsch dot net>
MFC after: 3 days


# de78c288 15-Jul-2005 Poul-Henning Kamp <phk@FreeBSD.org>

Attempt gctl verb "write MBR" when updating.

This should solve the problem of modifying a busy MBR.


Revision tags: release/5.4.0_cvs, release/5.4.0
# 7fa181d4 01-May-2005 Yoshihiro Takahashi <nyan@FreeBSD.org>

cosmetic changes.


# 61456bbd 01-May-2005 Yoshihiro Takahashi <nyan@FreeBSD.org>

Use NDOSPART macro instead of a magic number.


# ca4cc473 29-Apr-2005 Poul-Henning Kamp <phk@FreeBSD.org>

If we resort to opening a slice instead of the base device, do so with
the correct mode for our arguments.


Revision tags: release/4.11.0_cvs, release/4.11.0
# 59a51468 10-Nov-2004 Poul-Henning Kamp <phk@FreeBSD.org>

Add 0xbf as new partition id for Solaris.

Submitted by: Lawrence.Lee@sun.com


Revision tags: release/5.3.0_cvs, release/5.3.0
# 26cd3449 20-Oct-2004 Ruslan Ermilov <ru@FreeBSD.org>

Don't prepend "/dev" if an argument given is an absolute pathname.

Reviewed by: jhb


# a67ed623 14-Jun-2004 Poul-Henning Kamp <phk@FreeBSD.org>

Make fdisk initialize the first instead of the last slice by default.


Revision tags: release/4.10.0_cvs, release/4.10.0, release/5.2.1_cvs, release/5.2.1, release/5.2.0_cvs, release/5.2.0
# bb007328 18-Dec-2003 Hartmut Brandt <harti@FreeBSD.org>

Add the Solaris x86 boot partition type. This is used in Solaris 10
(and perhaps earlier).

Submitted by: Joerg Schilling <schilling@fokus.fraunhofer.de>


# 7fb7df31 13-Nov-2003 Dag-Erling Smørgrav <des@FreeBSD.org>

Warn about partitions that would overlap with the master boot record, and
if the user agrees, move them out one track.

MFC after: 7 days


Revision tags: release/4.9.0_cvs, release/4.9.0, release/5.1.0_cvs, release/5.1.0
# c69284ca 03-May-2003 David E. O'Brien <obrien@FreeBSD.org>

Use __FBSDID() to quiet GCC 3.3 warnings.


# 1a03d6d5 13-Apr-2003 Poul-Henning Kamp <phk@FreeBSD.org>

Use symbolic constants from <sys/diskmbr.h> instead of local constants.

Always set the magic sequence when we write, rather than trusting the
previously read boot code to do so.

Use explicit encodi

Use symbolic constants from <sys/diskmbr.h> instead of local constants.

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.

show more ...


Revision tags: release/4.8.0_cvs, release/4.8.0
# c0fdfdba 29-Mar-2003 Poul-Henning Kamp <phk@FreeBSD.org>

Use default geometry in case the device doesn't provide one:
512 for sectorsize.
63 for sectors.
255 for heads.
This will mostly show up on MD(4) devices.


Revision tags: release/5.0.0_cvs, release/5.0.0
# d64ada50 30-Dec-2002 Jens Schweikhardt <schweikh@FreeBSD.org>

Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/
Add FreeBSD Id tag where missing.


# f353c761 29-Dec-2002 Poul-Henning Kamp <phk@FreeBSD.org>

Make fdisk work on active GEOM devices.


# a8ad364a 27-Oct-2002 Poul-Henning Kamp <phk@FreeBSD.org>

Fix the regexp evilness so that fdisk can (again?) find the device
root is on from the root mount path.

Spotted by: imp


12345678910