aboutsummaryrefslogtreecommitdiff
path: root/sbin/fdisk
Commit message (Collapse)AuthorAgeFilesLines
* fdisk: Bump deprecated version in warning message as wellEd Maste2025-10-241-1/+1
| | | | | Fixes: f817f6e7f4a8 ("fdisk: Bump removal to FreeBSD 16.0") Sponsored by: The FreeBSD Foundation
* fdisk: Bump removal to FreeBSD 16.0Ed Maste2025-10-241-2/+2
| | | | | | Removal did not happen prior to 15.0. Sponsored by: The FreeBSD Foundation
* fdisk: Remove support for vinum volumesJohn Baldwin2025-01-231-2/+1
| | | | | Reviewed by: imp, emaste Differential Revision: https://reviews.freebsd.org/D48537
* fdisk: emit deprecation notice when runEd Maste2024-10-131-0/+4
| | | | | | | Requested by: rgrimes Reviewed by: bapt Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D43585
* fdisk: add deprecation/removal notice to man pageEd Maste2024-10-131-0/+16
| | | | | | | | | | As of 2015 (commit b8c19fd71994) the fdisk man page claimed the command is obsolete, but had no explicit mention of removal. Add another note that follows our current deprecation notice format. Reviewed by: imp Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D47067
* fdisk: Make confusing fdisk messages a little less ambiguousWarner Losh2024-10-111-2/+5
| | | | | | | | We print an error when we can't read the MBR. Add minimal messages about continuing anyway. PR: 167036 Sponsored by: Netflix
* Remove residual blank line at start of MakefileWarner Losh2024-07-151-1/+0
| | | | | | | This is a residual of the $FreeBSD$ removal. MFC After: 3 days (though I'll just run the command on the branches) Sponsored by: Netflix
* fdisk(8): Fix typo forth -> fourthChih-Chun Wu2024-02-131-1/+1
| | | | | Event: Advanced UNIX Programming Course (Fall'23) at NTHU Pull Request: https://github.com/freebsd/freebsd-src/pull/1010
* sbin: Automated cleanup of cdefs and other formattingWarner Losh2023-11-271-1/+0
| | | | | | | | | | | | | | | | Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row. Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/ Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/ Remove /\n+#if.*\n#endif.*\n+/ Remove /^#if.*\n#endif.*\n/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/ Sponsored by: Netflix
* Remove $FreeBSD$: one-line nroff patternWarner Losh2023-08-161-1/+0
| | | | Remove /^\.\\"\s*\$FreeBSD\$$\n/
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-163-3/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-162-4/+0
| | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
* Remove $FreeBSD$: two-line .h patternWarner Losh2023-08-161-2/+0
| | | | Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
* Mark usage function as __dead2 in programs where it does not returnAlfonso Gregory2023-07-071-1/+1
| | | | | | | | In most cases, usage does not return, so mark them as __dead2. For the cases where they do return, they have not been marked __dead2. Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/735
* spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDWarner Losh2023-05-122-2/+2
| | | | | | | | | The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause. Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
* fdisk: Use valid prototypes for function declarations with no arguments.John Baldwin2023-04-241-7/+7
| | | | | Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D39726
* Update/fix Makefile.depend for userlandSimon J. Gerraty2023-04-191-3/+0
|
* Remove deprecated GEOM classesConrad Meyer2019-08-134-41/+122
| | | | | | | | | | | | | | Follow-up on r322318 and r322319 and remove the deprecated modules. Shift some now-unused kernel files into userspace utilities that incorporate them. Remove references to removed GEOM classes in userspace utilities. Reviewed by: imp (earlier version) Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D21249 Notes: svn path=/head/; revision=351001
* Add DragonFly's partition number to fdisk(8) and diskmbr.hConrad Meyer2019-05-181-0/+1
| | | | | | | | | | | This change doesn't make any attempt to add support for these slices to the relevent GEOM classes. Just register the number in fdisk and the canonical list of kernel macros (diskmbr.h). Obtained from: DragonFlyBSD (794d80aa519b394b3174f20776a) (small subset of) Notes: svn path=/head/; revision=347948
* Allow fdisk(8) to deal with sectors larger than 2048Rodney W. Grimes2018-10-251-1/+1
| | | | | | | | | | especially for 4Kn drives with PMBR's Approved by: bde (mentor) MFC: 3 days Notes: svn path=/head/; revision=339707
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* sbin: normalize paths using SRCTOP-relative paths or :H when possibleEnji Cooper2017-03-041-1/+1
| | | | | | | | | | This simplifies make logic/output MFC after: 1 month Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=314656
* Document the history of fdisk based on the original post to comp.unix.bsd by ↵Sevan Janiyan2016-10-051-4/+19
| | | | | | | | | | | | | | | | | | | Julian Elischer [1] and the Mach 2.5 Installation notes [2]. I was unable to pin point the exact version of Mach the fdisk utility appeared as I could not find documentation older than version 2.5 & no source code or repo history. fdisk utility appears as a separate utility[3] in v2.5. Due to this, I have avoided stating the exact version fdisk first appeared in Mach. Add authors section. Make correction pointed by igor [1] https://groups.google.com/d/topic/comp.unix.bsd/Hhi45vAHxDg/discussion [2] ftp://ftp.mcs.vuw.ac.nz/doc/misc/mach-i386-doc/i386_install.ps [3] ftp://ftp.mcs.vuw.ac.nz/doc/misc/mach-i386-doc/i386_manpages.ps PR: 212469 Approved by: bcr (mentor) MFC after: 5 days Differential Revision: https://reviews.freebsd.org/D8104 Notes: svn path=/head/; revision=306731
* fdisk: drop unused macro and make use of roundup()/rounddown().Pedro F. Giffuni2016-04-301-16/+14
| | | | Notes: svn path=/head/; revision=298861
* Explicitly add more files to the 'runtime' package.Glen Barber2016-02-091-0/+1
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295450
* It's 2015, and some people are still trying to use fdisk and thenEdward Tomasz Napierala2015-09-021-0/+7
| | | | | | | | | | | | | | | | go asking what debug flags to set for GEOM to make it work. Advice them to use gpart(8) instead. Something similar should probably done with disklabel, but I need to rewrite the disklabel examples first. Reviewed by: wblock@ MFC after: 1 month Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D3315 Notes: svn path=/head/; revision=287396
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+21
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge sync of headSimon J. Gerraty2015-05-271-2/+1
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=283595
| * Merge head from 7/28Simon J. Gerraty2014-08-191-10/+0
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=270164
| * | Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * | Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * | Merge headSimon J. Gerraty2014-04-281-3/+7
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265044
| * \ \ Merge head@256284Simon J. Gerraty2013-10-131-2/+2
| |\ \ \ | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=256424
| * | | | Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * | | | Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | | | Convert sbin/ to LIBADDBaptiste Daroussin2014-11-251-2/+1
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | Reduce overlinking Notes: svn path=/head/; revision=275030
* | | | Remove ia64.Marcel Moolenaar2014-07-071-10/+0
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This includes: o All directories named *ia64* o All files named *ia64* o All ia64-specific code guarded by __ia64__ o All ia64-specific makefile logic o Mention of ia64 in comments and documentation This excludes: o Everything under contrib/ o Everything under crypto/ o sys/xen/interface o sys/sys/elf_common.h Discussed at: BSDcan Notes: svn path=/head/; revision=268351
* | | Fix fdisk(8) to create 2TB partitions on disks larger than 2TB, rather thanJuli Mallett2013-11-271-3/+7
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | only being able to create 1TB partitions: o) Use an unsigned 32-bit quantity to store the number of disk sectors. o) Detect overflow of said 32-bit quantity and clamp to 2^32. o) Rather than returning the disk sector count from get_params, return 0 on success, since its return value is only ever compared to -1 to detect failure. This would cause returning 2^32 sectors to be interpreted as an error. Reviewed by: bde ("good for a quick fix") Notes: svn path=/head/; revision=258686
* | Sweep man pages replacing ad -> ada.Sergey Kandaurov2013-10-011-2/+2
|/ | | | | | | | | Approved by: re (blackend) MFC after: 1 week X-MFC note: stable/9 only Notes: svn path=/head/; revision=255977
* VMware environment is frequent nowadays. Add VMFS id.Dmitry Morozovsky2012-04-161-0/+1
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=234345
* Fix multi-line comment formatting.Andrey V. Elsukov2011-11-071-2/+4
| | | | | | | | Pointed by: jh MFC after: 1 week Notes: svn path=/head/; revision=227295
* Improve error reporting when MBR can not be written.Andrey V. Elsukov2011-11-071-36/+62
| | | | | | | | | | | | Remove obsolete code which uses DIOCSMBR ioctl. When writing MBR first check that GEOM_MBR is available, if it is not available, then try write MBR directly to provider. If both are failed, then recommend to use gpart(8). MFC after: 2 week Notes: svn path=/head/; revision=227292
* Initialize "acc" value inside the loop to reset failed attempts.Andrey V. Elsukov2011-11-061-2/+2
| | | | | | | | PR: misc/162262 MFC after: 3 days Notes: svn path=/head/; revision=227280
* Add reference to gpart(8).Andrey V. Elsukov2011-11-061-0/+1
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=227272
* Add missing static keywords for global variables to tools in sbin/.Ed Schouten2011-11-041-1/+1
| | | | | | | | | These tools declare global variables without using the static keyword, even though their use is limited to a single C-file, or without placing an extern declaration of them in the proper header file. Notes: svn path=/head/; revision=227081
* remove trailing whitespace...John-Mark Gurney2011-10-291-3/+3
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=226908
* error if /boot/mbr is empty... This can happen on a system like armJohn-Mark Gurney2011-10-291-0/+2
| | | | | | | | | | that doesn't have a /boot/mbr, and you touch it to get past the previous error message... MFC after: 1 week Notes: svn path=/head/; revision=226907
* The decimal() function was changed in r217808 to take theAndrey V. Elsukov2011-08-191-1/+1
| | | | | | | | | | | | | maximum value instead of number of bits. But for case when limitation is not needed it erroneously skips conversion to number and always returns zero. So, don't skip conversion for case when limitation is not needed. PR: bin/159765 Approved by: re (kib) Notes: svn path=/head/; revision=225007