summaryrefslogtreecommitdiff
path: root/usr.sbin/sade/disks.c
Commit message (Collapse)AuthorAgeFilesLines
* Replace sade the extracted piece of sysinstall with sade the extractedNathan Whitehorn2012-12-301-972/+0
| | | | | | | | | | | piece of bsdinstall (although this time with a symlink instead of duplicated source code). Discussed on: freebsd-geom MFC after: 3 months Notes: svn path=/head/; revision=244859
* Port to new libdialog.Max Khon2011-11-241-32/+29
| | | | Notes: svn path=/head/; revision=227944
* Disk selection dialog is now a normal menu, not a checkboxed menu:Max Khon2011-11-241-93/+31
| | | | | | | | checkboxed menu is confusing and also can not be implemented in new libdialog. Notes: svn path=/head/; revision=227939
* Remove the reference to DD mode, and replace with Expert mode. Also, makeRebecca Cran2010-04-211-4/+3
| | | | | | | | | | | | | | | sure the "Q = Finish" text is visible. Reword the boot manager screen to try and avoid confusion, and make the order of the menu items match that in sysinstall. PR: bin/142916 Submitted by: Jeremy Chadwick <freebsd at jdc.parodius.com> Reviewed by: randi Approved by: rrs (mentor) MFC after: 1 week Notes: svn path=/head/; revision=207006
* Oops, missed removing an 's' in previous rev.Ken Smith2008-12-301-1/+1
| | | | | | | Submitted by: Jens Schweikhardt (schweikh <at> schweikhardt <dot> net) Notes: svn path=/head/; revision=186607
* Clean up this message a little bit.Ken Smith2008-12-301-4/+3
| | | | Notes: svn path=/head/; revision=186605
* Sound less scary about errorousous disk geometry due to wanting to limitDavid E. O'Brien2008-12-301-33/+60
| | | | | | | | | to 65535 cylinders. Submitted by: Carlos A. M. dos Santos <unixmania@gmail.com> Notes: svn path=/head/; revision=186581
* o Change the warning dialog for the 'W' command in both the labelMike Makonnen2008-05-051-7/+4
| | | | | | | | | | | | and partition editors to reflect the fact that this is a stand-alone application, not sysinstall(8). o Change an instance of sade(8) refering to itself as sysinstall(8) in a confirmation dialog. MFC after: 1 week Notes: svn path=/head/; revision=178769
* Unbreak sparc64 build.Xin LI2006-08-091-3/+3
| | | | | | | Reported by: tinderbox Notes: svn path=/head/; revision=161113
* Partitions are only meaningful for i386 and amd64 architectures, so disableXin LI2006-08-081-0/+6
| | | | | | | these code on other architectures. Notes: svn path=/head/; revision=161100
* Say welcome to 'sade', the SysAdmins Disk Editor. It's the fdisk and ↵Alexander Leidinger2006-08-071-8/+4
| | | | | | | | | | | | | | | disklabel part of sysinstall. So sysinstall may retire now, we have the important non-install part of it covered. ATM it doesn't understand GEOM stuff (like mirror, stripe, raid, ...), but patches to change this and to clean it up internally are more than welcome. Submitted by: mami@nyitolap.hu Notes: svn path=/head/; revision=161060
* Fix numerous warnings. Aside from menu items in system.c and menu.cJohn Baldwin2006-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. Notes: svn path=/head/; revision=156123
* - Back out 1.155. I mismerged my ancient local patch. Luckily it wasJung-uk Kim2006-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 Notes: svn path=/head/; revision=155965
* - Hide 'incorrect geometry warning' in non-interactive mode. A user shouldJung-uk Kim2006-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. Notes: svn path=/head/; revision=154931
* Add over 32GB disk support on pc98 (userland part).Yoshihiro Takahashi2005-03-301-1/+1
| | | | | | | Submitted by: Hirokazu WATANABE Notes: svn path=/head/; revision=144334
* Clear all "active partition" bits before we set a new one.Xin LI2004-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) Notes: svn path=/head/; revision=135258
* Move the inclusion of libdisk.h from sysinstall.h to the source filesMarcel Moolenaar2004-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. Notes: svn path=/head/; revision=133040
* Remove unnecessary use of the __ia64__ conditional. This slightly improvesMarcel Moolenaar2004-08-011-5/+3
| | | | | | | maintainability and generally avoids confusion. Notes: svn path=/head/; revision=132984
* Change libdisk and sysinstall to use d_addr_t rather than u_long for diskJohn Baldwin2004-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 Notes: svn path=/head/; revision=127081
* o Compile-out "wizard" mode on ia64.Marcel Moolenaar2003-11-011-2/+4
| | | | | | | | o Do not set bootblocks on ia64. It's not even a functionality in libdisk on ia64. Notes: svn path=/head/; revision=121863
* Expand the fdisk size display toggling to include GB.David E. O'Brien2003-08-191-2/+6
| | | | Notes: svn path=/head/; revision=119138
* GRRR. Do not force Dangerously Dedicated mode on amd64 when you selectPeter Wemm2003-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. Notes: svn path=/head/; revision=115852
* Add __amd64__ ifdefs to enable the bootblock handling code, slices, etc.Peter Wemm2003-05-241-3/+3
| | | | | | | | Approved by: re (murray) Obtained from: obrien Notes: svn path=/head/; revision=115293
* - Use some macros to define common text between the dialog boxes to set theJohn Baldwin2002-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 Notes: svn path=/head/; revision=107649
* Fixed a partition type for pc98 when create or change slices in the fdiskYoshihiro Takahashi2002-12-041-0/+8
| | | | | | | | | editor. Approved by: re (jhb) Notes: svn path=/head/; revision=107587
* Fix a bug in the fdisk editor that partially masked the chunk deletionJohn Baldwin2002-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 Notes: svn path=/head/; revision=107554
* Only include the fdisk editor and associated code if WITH_SLICES isJohn Baldwin2002-11-271-8/+10
| | | | | | | | | | defined. Tested on: i386, alpha, sparc64 Approved by: re Notes: svn path=/head/; revision=107349
* Enable selecting the type of partition menu on pc98.Yoshihiro Takahashi2002-11-161-17/+17
| | | | Notes: svn path=/head/; revision=106990
* Fix to build for pc98.Yoshihiro Takahashi2002-11-151-1/+1
| | | | Notes: svn path=/head/; revision=106948
* Also test for type efi everywhere we currently test for type fat.Marcel Moolenaar2002-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. Notes: svn path=/head/; revision=106839
* A support for creating EFI partitions. This is required on ia64,Marcel Moolenaar2002-11-101-0/+3
| | | | | | | but not made conditional upon it. Notes: svn path=/head/; revision=106744
* - Added the MenuIPLType menu for selecting pc98 boot IPL.Yoshihiro Takahashi2002-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. Notes: svn path=/head/; revision=106374
* Chunk functions in libdisk take an extra arguement for all archs to accomodatePoul-Henning Kamp2002-10-221-12/+1
| | | | | | | PC98 with less ifdef madness. Notes: svn path=/head/; revision=105686
* Fix to check disk geometry.Yoshihiro Takahashi2002-10-141-2/+4
| | | | | | | Submitted by: kawanobe@st.rim.or.jp (Kawanobe Koh) Notes: svn path=/head/; revision=105105
* * Negative #if's are harder to read as they don't tell exactly what archDavid E. O'Brien2002-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 Notes: svn path=/head/; revision=104940
* Only install the mbr code on i386.. not ia64. This changes it fromPeter Wemm2002-07-241-1/+1
| | | | | | | #ifndef __alpha__ to #ifdef __i386__ Notes: svn path=/head/; revision=100637
* Fix integer overflow causing disk/partition size display wrappingPierre Beyssac2002-05-311-3/+3
| | | | | | | above 4GB. Notes: svn path=/head/; revision=97674
* Add a 'diskInteractive' variable that can be set to interactively partitionJohn Baldwin2002-05-311-2/+4
| | | | | | | and label a disk from a sysinstall script. Notes: svn path=/head/; revision=97667
* Teach sysinstall(8) how to read boot managers out of /bootRuslan Ermilov2002-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 Notes: svn path=/head/; revision=93322
* Silence more warnings.Murray Stokely2001-09-221-2/+2
| | | | Notes: svn path=/head/; revision=83845
* ``An undocumented feature is a bug.''Joerg Wunsch2001-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. Notes: svn path=/head/; revision=75676
* Moved '#endif' to correct position. (previous commit broke pc98 support)Yoshihiro Takahashi2001-03-151-1/+1
| | | | Notes: svn path=/head/; revision=74297
* Really finish softupdate setting from the label editor and fixJordan K. Hubbard2001-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. Notes: svn path=/head/; revision=74156
* Backtrack a bit.. Put the dangerously dedicated option under aPeter Wemm2001-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. Notes: svn path=/head/; revision=71054
* Don't invite trouble by waving the 'Dangerously Dedicated' (DD) optionPeter Wemm2001-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. Notes: svn path=/head/; revision=71051
* Adapt sysinstall to use the new msgNoYes() function which assumesJordan K. Hubbard2000-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 :). Notes: svn path=/head/; revision=70005
* - Added support for installing boot0 and boot0.5 for PC-98.Yoshihiro Takahashi2000-08-121-20/+112
| | | | | | | - Cosmetic changes. Notes: svn path=/head/; revision=64555
* - Support MBR boot loaders that are larger than one sector size.John Baldwin2000-07-121-18/+31
| | | | | | | - Axe the 1024 cylinder checks as they are no longer relevant. Notes: svn path=/head/; revision=63031
* - Remove obsolete PC-card boot.flp hack. It was for making both PC-cardYoshihiro Takahashi2000-06-051-11/+78
| | | | | | | | | | | | | | | | | boot.flp and plain boot.flp. - Clean up crunchgen related routine. - Add PC-98 support. TODO: o Documentation o Fix some messages for PC-98 o Decrease the size of fixit.flp to 1.2MB o I18N (See: http://www.jp.FreeBSD.org/BootAsia/index.html) No response from jkh Notes: svn path=/head/; revision=61277
* Add the 'Z' key to the slice editor. Hitting it toggles the units theDavid E. O'Brien2000-05-261-9/+34
| | | | | | | | | sizes are displayed in. Ok'ed by: murray Notes: svn path=/head/; revision=60937