#
4f0166f6 |
| 09-Jul-2012 |
krw <krw@openbsd.org> |
Make 'swap' command work like fdisk(8) says -- you must supply two valid partition numbers.
|
#
0cdbad8a |
| 09-Jul-2012 |
krw <krw@openbsd.org> |
Use strtonum() instead of strtol() inside ask_num(). Many overflows are thus avoided. Since bounds are now reliable don't check the returned value for being in-bounds. Since default value is forced i
Use strtonum() instead of strtol() inside ask_num(). Many overflows are thus avoided. Since bounds are now reliable don't check the returned value for being in-bounds. Since default value is forced inside bounds, don't bother being tricky and passing a default that is outside the bounds being specified.
ok beck@
show more ...
|
#
a4c67e1e |
| 08-Jul-2012 |
krw <krw@openbsd.org> |
set_pid() does not need prompt string, low or high parameters. These are all constants. Independantly suggested by guenther@.
|
#
25dbb8fa |
| 08-Jul-2012 |
krw <krw@openbsd.org> |
Split out an ask_pid() function rather than over-parameterizing the ask_num() function. Remove now unneeded 'flags' and 'help' parameters from both. Display out of range values in hex in ask_pid(), s
Split out an ask_pid() function rather than over-parameterizing the ask_num() function. Remove now unneeded 'flags' and 'help' parameters from both. Display out of range values in hex in ask_pid(), since we are seeking hex input.
ok guenther@
show more ...
|
#
68f201ae |
| 08-Jul-2012 |
krw <krw@openbsd.org> |
Call Xsetpid() to edit the partition type from Xedit() rather than duplicating the code. Allows simplification of the EDIT() #define in Xedit() since we always ASK_DEC and use a NULL help parameter w
Call Xsetpid() to edit the partition type from Xedit() rather than duplicating the code. Allows simplification of the EDIT() #define in Xedit() since we always ASK_DEC and use a NULL help parameter when invoking ask_num().
show more ...
|
#
f2985c8a |
| 08-Jul-2012 |
krw <krw@openbsd.org> |
Nuke useless EDIT() #define in Xsetpid.
A #define to simplify a function calling snippet does not simply or help when it is used only once.
|
#
99f63382 |
| 08-Jul-2012 |
krw <krw@openbsd.org> |
Replace tricker atoi() and hand rolled parsing with strsep() and strtonum(). Make related error messages consistant.
ok haesbaert@
|
#
52bfb61c |
| 07-Jul-2012 |
krw <krw@openbsd.org> |
Replace atoi() with strtonum() where it's easy. Make related error messages consistant. Check for valid partition when 'select'ing a partition.
ok haesbaert@
|
#
f1102820 |
| 25-Apr-2012 |
matthew <matthew@openbsd.org> |
Before writing it to disk, warn the user if their new MBR contains more than one OpenBSD partition.
ok deraadt
|
#
2c951917 |
| 11-Nov-2011 |
krw <krw@openbsd.org> |
A zero-length partition is a non-partition, so reject a partition length of 0. And anyway PRT_fix_CHS() writes garbage when length is zero.
Refresh the in-memory copy to reflect any data that was wr
A zero-length partition is a non-partition, so reject a partition length of 0. And anyway PRT_fix_CHS() writes garbage when length is zero.
Refresh the in-memory copy to reflect any data that was written out, so you can see that your changes have taken effect.
Surprise behaviours noted by matthew@ at c2k11.
show more ...
|
#
d0a9cc49 |
| 02-Jul-2010 |
halex <halex@openbsd.org> |
on error, getuint() will return UINT_MAX. Instead of actually using that value, print an error message and repost the question
ok krw@ deraadt@
|
#
855d4e83 |
| 24-Dec-2009 |
sobrado <sobrado@openbsd.org> |
spelling fixes, from Brad Tilley; we will not fix src/sbin/dump/dump.h as neither arrayified not arrayfied exist -- sanctioned dictionaries like Merriam-Webster ones suggest a few alternatives (e.g.,
spelling fixes, from Brad Tilley; we will not fix src/sbin/dump/dump.h as neither arrayified not arrayfied exist -- sanctioned dictionaries like Merriam-Webster ones suggest a few alternatives (e.g., arrayed), however these made up words are easy to understand and we are not certain that current ones are not ok.
ok jmc@
show more ...
|
#
2ab1ffe2 |
| 08-Feb-2009 |
krw <krw@openbsd.org> |
Eliminate excessive verbiage for 'fdisk -i' and 'fdisk -u'. Especially the multi-line banner announcing that the MBR is being changed. Also the listing of the partition table in 'fdisk -u'. Display a
Eliminate excessive verbiage for 'fdisk -i' and 'fdisk -u'. Especially the multi-line banner announcing that the MBR is being changed. Also the listing of the partition table in 'fdisk -u'. Display a consistant message when the MBR is written.
While here cleanup and shrink code without changing any semantics. Started with a diff posted on tech@ by Tobias Ulmer.
"I like it" marco@ ok jsing@
show more ...
|
#
87e5d945 |
| 27-Jul-2006 |
ray <ray@openbsd.org> |
Add checks to each write(2) attempt and try to keep fdisk in a consistent state upon write failure.
OK krw@ and deraadt@.
|
#
7c16d601 |
| 18-Jul-2006 |
mbalmer <mbalmer@openbsd.org> |
Fix a typo, paritition -> partition. From Alexey Dobriyan <adobriyan@gmail.com>, thanks.
|
#
e7936562 |
| 26-Apr-2006 |
deraadt <deraadt@openbsd.org> |
man page is gzip'd, should store as unsigned char array.
|
#
513623c8 |
| 29-Mar-2005 |
otto <otto@openbsd.org> |
Allow setting of partition flag with an optional explicit value. PR 4143. ok weingart@ deraadr@
|
#
98d2b0d2 |
| 19-Jan-2005 |
deraadt <deraadt@openbsd.org> |
add a swap primitive; ok various, will be polished after by tom
|
#
08f8e31f |
| 06-Nov-2004 |
otto <otto@openbsd.org> |
gzip embedded man pages, and pipe through gunzip when viewing. ok deraadt@
|
#
5675a19d |
| 18-Sep-2004 |
deraadt <deraadt@openbsd.org> |
some delinting; ok otto
|
#
d23ce092 |
| 13-Jul-2004 |
tom <tom@openbsd.org> |
Remove unused argument 'int pn' to PRT_fix_CHS(). The 'int pn' argument to PRT_parse() then becomes unused, so remove that too.
ok henning@, otto@
|
#
f16d9ce1 |
| 22-Jun-2004 |
tom <tom@openbsd.org> |
Make the interactive "update" command match the command-line "-u" option by updatng/setting the 0xAA55 signature at the end of the sector.
ok nick@ weingart@
|
#
8809fabb |
| 11-Jun-2003 |
deraadt <deraadt@openbsd.org> |
ansification
|
#
0c430764 |
| 03-Jun-2003 |
weingart <weingart@openbsd.org> |
Nuke terms 3 & 4.
|
#
7a8df52e |
| 24-Jan-2002 |
mickey <mickey@openbsd.org> |
allow reinitializing mbr in the ext parts; from Matt Watson <mwatson@apple.com>
|