summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/disks.c
Commit message (Collapse)AuthorAgeFilesLines
* Farewall, sysinstall! You served us well for many years, but 10.0 is onenwhitehorn2011-10-031-1055/+0
| | | | | | | | digit beyond your time. Various sysinstall dependencies (e.g. libftpio, libdisk, libodialog, etc.) will be cleaned up in coming days. Some will take longer than others due to a few other consumers (tzsetup and sade).
* * Allow partial MB/GB values to be entered in the slice and label editors.brucec2010-06-161-12/+26
| | | | | | | | | | | | * Don't strdup the name when calling deviceRegister because the string is copied within new_device. * Use a subtype of 165, not 3, when creating a slice in noninteractive mode. PR: bin/135333 PR: bin/66350 Approved by: rrs (mentor) MFC after: 1 month
* Further unbreak powerpc & sparc64.marcel2010-06-141-1/+3
|
* Fix build breakages on ia64 introduced some commits ago.marcel2010-06-131-34/+37
|
* Make the "Q = Finish" text visible when running sysinstall as a normalbrucec2010-04-211-2/+5
| | | | | | | | application. Reword the boot manager screen to try and avoid confusion. Reviewed by: randi Approved by: rrs (mentor) MFC after: 1 week
* Remove unused variables.ed2010-01-021-1/+1
|
* Change the name displayed in sysinstall(8) from 'Wizard Mode'trasz2009-07-251-2/+2
| | | | | | | to 'Expert Mode', to make it less confusing to new users, to whom a 'wizard' is a set of simple dialogs with the 'next >>>' button. Approved by: re (kensmith)
* Remove the "dedicated disk mode" partitioning option from sysinstall, incperciva2009-07-221-16/+2
| | | | | | | | | | both the disk partitioning screen (the 'F' key) and via install.cfg (the VAR_DEDICATED_DISK option). This functionality is currently broken in 8.x due to libdisk and geom generating different partition names; this commit merely acts to help steer users away from the breakage. Submitted by: randi Approved by: re (kensmith)
* Clean up this message a little bit.kensmith2008-12-301-4/+3
|
* Sound less scary about errorousous disk geometry due to wanting to limitobrien2008-12-301-30/+59
| | | | | | to 65535 cylinders. Submitted by: Carlos A. M. dos Santos <unixmania@gmail.com>
* Fix an indentation.jkim2008-01-311-1/+1
|
* Do not sanitize disk geometry if it is set by scripts in non-interactive mode.jkim2008-01-311-8/+8
| | | | MFC after: 3 days
* When using sysinstall on a running system and editing a disk labelceri2006-10-081-1/+7
| | | | | | | | fails, suggest setting kern.geom.debugflags to 16. PR: bin/94409 Submitted by: Markus Oestreicher <m punkt oe at x dash trader dot de> MFC after: 10 days
* Fix numerous warnings. Aside from menu items in system.c and menu.cjhb2006-02-281-1/+1
| | | | | | | | this now compiles on i386 with WARNS?= 3. Most of the fixes included adding missing 'static' keywords to internal functions, using fully-defined terminators in statically defined arrays of structs, and various signed vs unsigned mismatches. Also G/C'd unused configSecurity() function.
* - Back out 1.155. I mismerged my ancient local patch. Luckily it wasjkim2006-02-231-18/+23
| | | | | | | | completely noop. - Geometry sanitization for non-interactive mode is moved to correct place. Reported by: Anton Yuzhaninov <citrin at citrin dot ru> Pointyhat: me
* - Hide 'incorrect geometry warning' in non-interactive mode. A user shouldjkim2006-01-271-11/+18
| | | | | | know what they are doing in non-interactive mode. Less scarier warning goes to debugging info instead. - Print sanitized geometry to debugging info.
* Add over 32GB disk support on pc98 (userland part).nyan2005-03-301-1/+1
| | | | Submitted by: Hirokazu WATANABE
* Clear all "active partition" bits before we set a new one.delphij2004-09-151-1/+7
| | | | | | | | | | This adds a safebelt that prevents users to mark more than one "active" partitions, which will lead to a unbootable machine, especially in multi-boot configurations. PR: bin/71404 MFC After: 3 days Approved by: murray (mentor)
* Move the inclusion of libdisk.h from sysinstall.h to the source filesmarcel2004-08-021-0/+1
| | | | | | | that actually need it. This makes it easier for a platform porter to find the files that may need tweaking to support whatever MD specific partitioning is needed. It also helps to prevent that the libdisk API gets exposed and/or used where it's not needed.
* Remove unnecessary use of the __ia64__ conditional. This slightly improvesmarcel2004-08-011-5/+3
| | | | maintainability and generally avoids confusion.
* Change libdisk and sysinstall to use d_addr_t rather than u_long for diskjhb2004-03-161-16/+21
| | | | | | | | | | | | | | | | addresses. For arch's with 64-bit longs, this is a nop, but for i386 this allows sysinstall to properly handle disks and filesystems > 1 TB. Changes from the original patch include: - Use d_addr_t rather than inventing a blkcnt type based on int64_t. - Use strtoimax() rather than strtoull() to parse d_addr_t's from config files. - Use intmax_t casts and %jd rather than %llu to printf d_addr_t values. Tested on: i386 Tested by: kuriyama Submitted by: julian MFC after: 1 month
* o Compile-out "wizard" mode on ia64.marcel2003-11-011-2/+4
| | | | | o Do not set bootblocks on ia64. It's not even a functionality in libdisk on ia64.
* Expand the fdisk size display toggling to include GB.obrien2003-08-191-2/+6
|
* GRRR. Do not force Dangerously Dedicated mode on amd64 when you selectpeter2003-06-041-1/+1
| | | | | | | 'use entire disk'. Neither for ia64 while I'm here - it needs a MBR if its going to use fdisk+disklabel. The ia64 case is mostly academic though because you'd be creating two partitions (dos + freebsd) rather than a single freebsd-only partition.
* Add __amd64__ ifdefs to enable the bootblock handling code, slices, etc.peter2003-05-241-3/+3
| | | | | Approved by: re (murray) Obtained from: obrien
* - Use some macros to define common text between the dialog boxes to set thejhb2002-12-051-38/+25
| | | | | | | | | | | | type of new slices and to change the type of existing slices. This also has the advantage of moving a few #ifdef PC98's up to where the macros are defined instead of in the middle of the code. - Change the behavior of the 'T' option in the slice editor so that the default value in the dialog box is the current type of the existing slice rather than defaulting to changing the slice to a FreeBSD slice as this is more intuitive. Approved by: re
* Fixed a partition type for pc98 when create or change slices in the fdisknyan2002-12-041-0/+8
| | | | | | editor. Approved by: re (jhb)
* Fix a bug in the fdisk editor that partially masked the chunk deletionjhb2002-12-031-2/+2
| | | | | | | | bug fixed yesterday. New slices created in the fdisk editor and slices whose sub-type is changed are of type 'mbr' if their sub-type is not a magic type, not type 'unknown'. Approved by: re
* Only include the fdisk editor and associated code if WITH_SLICES isjhb2002-11-271-8/+10
| | | | | | | defined. Tested on: i386, alpha, sparc64 Approved by: re
* Enable selecting the type of partition menu on pc98.nyan2002-11-161-17/+17
|
* Fix to build for pc98.nyan2002-11-151-1/+1
|
* Also test for type efi everywhere we currently test for type fat.marcel2002-11-131-0/+2
| | | | | | | With this change there's no a priori difference between EFI and FAT partitions. With this change and the corresponding change to libdisk, we can create EFI partitions, just like regular FAT partitions.
* A support for creating EFI partitions. This is required on ia64,marcel2002-11-101-0/+3
| | | | but not made conditional upon it.
* - Added the MenuIPLType menu for selecting pc98 boot IPL.nyan2002-11-031-15/+43
| | | | | | | - Disabled 'Syscons, Font', 'Syscons, Screenmap' and 'Syscons, Ttys' menus on pc98. - Fixed the MenuMouseType and MenuMousePort menus for pc98. - Fixed some comments for pc98.
* Chunk functions in libdisk take an extra arguement for all archs to accomodatephk2002-10-221-12/+1
| | | | PC98 with less ifdef madness.
* Fix to check disk geometry.nyan2002-10-141-2/+4
| | | | Submitted by: kawanobe@st.rim.or.jp (Kawanobe Koh)
* * Negative #if's are harder to read as they don't tell exactly what archobrien2002-10-111-7/+7
| | | | | | | | | something applies to. So change #ifndef to an explicit list of defines. * Treate sparc64 and ia64 as 64-bit platforms, which means larger roots. * sparc64 should halt back to the firmware, not reset. * sparc64 doesn't need to play MS-DOS/BIOS partition crap games. Reviewed by: jake
* Only install the mbr code on i386.. not ia64. This changes it frompeter2002-07-241-1/+1
| | | | #ifndef __alpha__ to #ifdef __i386__
* Fix integer overflow causing disk/partition size display wrappingpb2002-05-311-3/+3
| | | | above 4GB.
* Add a 'diskInteractive' variable that can be set to interactively partitionjhb2002-05-311-2/+4
| | | | and label a disk from a sysinstall script.
* Teach sysinstall(8) how to read boot managers out of /bootru2002-03-281-10/+17
| | | | | | | | instead of hardcoding them into the binary. This replaces the work-around in usr.sbin/sysinstall/Makefile,v 1.121. Suggested by: jhb MFC in: 1 week
* Silence more warnings.murray2001-09-221-2/+2
|
* ``An undocumented feature is a bug.''joerg2001-04-181-4/+4
| | | | | | Turn on my asbesto suit, and document the DD and Wizard mode menu keys. It's a nuisance to always have to look them up in the source code when needed.
* Moved '#endif' to correct position. (previous commit broke pc98 support)nyan2001-03-151-1/+1
|
* Really finish softupdate setting from the label editor and fixjkh2001-03-121-34/+15
| | | | | | | | | | a few cosmetic problems: o Allow it to work with scripts (see man page or install.cfg file). o Preserve old softupdates flag across newfs toggles o Clean up partitioned/labelled flag handling o Don't ask for MBR choice again if you've already written it out. o Actually document the new features.
* Backtrack a bit.. Put the dangerously dedicated option under apeter2001-01-151-1/+11
| | | | | | non-advertised option (F = "FreeBSD only"), and leave the A key with standard partitioning. It seems people still want a runtime backdoo to get to dangerously dedicated mode.
* Don't invite trouble by waving the 'Dangerously Dedicated' (DD) optionpeter2001-01-151-9/+2
| | | | | | | | | | at people. This has been sitting in my tree for a few months now. I have spoken with quite a few folks about this and the support for doing this was pretty strong. I dont remember names though, so I cannot share the blame :-(. Note that this does not *remove* DD mode, it just stops waving it at new users. You can still set it via config files etc, and the bootblocks and kernel still support it. You can still use disklabel to make true DD disks.
* Adapt sysinstall to use the new msgNoYes() function which assumesjkh2000-12-141-3/+3
| | | | | | no as a default. Sysinstall should be both less dangerous and less annoying as a result of this change, though that's just my opinion (since they're the defaults which annoy ME the least :).
* - Added support for installing boot0 and boot0.5 for PC-98.nyan2000-08-121-20/+112
| | | | - Cosmetic changes.
* - Support MBR boot loaders that are larger than one sector size.jhb2000-07-121-18/+31
| | | | - Axe the 1024 cylinder checks as they are no longer relevant.
OpenPOWER on IntegriCloud