Age | Commit message (Collapse) | Author | |
---|---|---|---|
2007-06-18 | If disklabel(8) is run against unreadable media (e.g. a blank cd) | Kenneth R Westerback | |
don't say "can't read master boot record". Just display an empty disklabel. Really yucky code that needs a lot of tough love, but marginally less confusing until then. ok deraadt@ | |||
2007-06-18 | -r will die. Until then, make sure any labels it dredges up are | Kenneth R Westerback | |
converted to v1 format before being used. ok deraadt@ otto@ | |||
2007-06-18 | typo | Theo de Raadt | |
2007-06-17 | On Sun machines, disklabels coming from the kernel will now have a d_flags | Theo de Raadt | |
bit D_VENDOR if they face the Sun cylinder / start-at-zero semantics. Other disklabels found on these architectures do not have these issues, and do not need to be constrained. checked by otto | |||
2007-06-16 | OK, landisk needs NUMBOOT=1 | Theo de Raadt | |
2007-06-16 | i386/amd64/zaurus/landisk are not NUMBOOT=1 or NUMBOOT=2 architectures. | Theo de Raadt | |
the result was occasional disklabel trashing as a result of disklabel -r, and perhaps other requests to the command; ok krw | |||
2007-06-08 | Simplify rounding to cylinders. | Todd C. Miller | |
Also, on systems with sun labels, don't allow the user to create a partition with fewer than a cylinder's worth of sectors. OK otto@ | |||
2007-06-08 | second pass, some fields slipped through the first time around | Otto Moerbeek | |
2007-06-08 | Make disklabel(8) aware of the new fields, allowing for larger than | Otto Moerbeek | |
2T disks, partitions and offsets. ok deraadt@ | |||
2007-06-08 | Fix setting total # sectors in the 'e' command. | Todd C. Miller | |
2007-06-07 | Add missing parens, fixes a bug aded in rev 1.112 where maxval would | Todd C. Miller | |
be set to 0 most of the time. | |||
2007-06-07 | do not complain about c not being a multiple of lp->d_secpercyl; ok millert | Theo de Raadt | |
2007-06-06 | fix the cylinder rounding calculation for "totally using the space" type | Theo de Raadt | |
calculations; ok otto millert | |||
2007-06-04 | avoid rounding down to zero cylinders. ok marco@ | Otto Moerbeek | |
2007-06-02 | installboot not just for i386; ok krw | Jason McIntyre | |
2007-06-01 | add RAID to the list of partition types for which we do not prompt for a | Todd T. Fries | |
filesystem ok krw@ | |||
2007-05-31 | convert to new .Dd format; | Jason McIntyre | |
2007-05-29 | Updated disklabel format to support larger disks and partitions. We | Otto Moerbeek | |
free room in struct partition by packing fragment size and fragments/block more tighlty and use the resulting space to make offset and size 48 bits. For the disk part we use spare fields in struct disklabel. Kernel converts in-mem copy of the on-disk label if needed, disklabel(8) writes new version. We are careful to only change fields not used by bootloaders. Conception of basic scheme by deraadt. ok deraadt@ krw@ | |||
2007-05-24 | Make 'disklabel -w -d <disk>' work. i.e. write the default disklabel | Kenneth R Westerback | |
onto disk. More elegant than "dd if=/dev/zero of= ..." to clear out an old disklabel. Think of it as treating the spoofed disklabel created by readdisklabel() like an automatically generated disktab entry. Makes some install scripts (macppc to start) easier. | |||
2007-05-13 | Sync editit() with sendbug. | Ray Lai | |
OK krw@. | |||
2007-04-29 | fix rounding in the modify case; ok millert@ miod@ | Otto Moerbeek | |
2007-04-26 | includes that are not needed anymore | Theo de Raadt | |
2007-04-26 | Eliminate CPU_BIOS from userland and wd(4) by always using the BIOS | Kenneth R Westerback | |
geometry in the disklabel when there is a BIOS geometry to provide. This removes the option to set a disklabel to 'BIOS' geometry via the 'g b' command in the editor. Makes reported geometry more consistant and moves MD code to MD land where it should be. Doc help from jmc@, Feedback from millert@, marco@, weingart@, kettenis@. ok deraadt@ | |||
2007-04-26 | Copy sendbug's editit() to disklabel. | Ray Lai | |
OK krw@. | |||
2007-03-18 | Check for zero divisor _before_ dividing; do not use floating | Otto Moerbeek | |
point arithmetic to round to a cylinder boundary when a simple integer expression can do the job as well. ok millert@ miod@ | |||
2007-03-13 | Refactor & fix computation of offset for next partition. Now the | Otto Moerbeek | |
code is almost readable. Keep in mind that the starting offset is inclusive, but the ending offset is exclusive. I heard rumors that disklabel was misbehaving in some cases before, but espie@ was the only one to provide me with enough details to actually find the problem. ok millert@ tom@ | |||
2007-03-02 | If a default label has been created with the -d command line option or | Kenneth R Westerback | |
the 'D' editor command and has not been written to disk when the user issues the 'q' editor command, ask if the label should be written to disk before exiting. | |||
2007-02-24 | Correct comment calling FILE *f a file descriptor. | Ray Lai | |
OK krw@. | |||
2007-02-22 | Always write the disklabel to disk when asked, even if it appears to | Kenneth R Westerback | |
be unchanged. Fixes PR#5209. Proper behaviour of 'q'uit still under discussion. ok ray@ millert@ ckuethe@ nick@ | |||
2007-02-20 | Change hard coded numbers to sizeof(buf). Also change some | Ray Lai | |
sizeof(buf) - 1 to sizeof(buf), since fgets takes the whole buffer size. Based on diff from Charles Longeau <chl at tuxfamily dot org> long ago. OK millert@. | |||
2006-10-14 | Friends don't let friends look for disklabels in Free/NetBSD MBR | Kenneth R Westerback | |
partitions since the kernel doesn't put them or look for them there anymore. | |||
2006-10-14 | Friends don't let friends look for disklabels in Free/NetBSD MBR | Kenneth R Westerback | |
partitions since the kernel doesn't put them or look for them there anymore. | |||
2006-10-12 | Should be correct for landisk. | Dale Rahn | |
2006-09-27 | Oops. Missed a line. Fix so disklabel(8) compiles again. | Kenneth R Westerback | |
2006-09-26 | Zap D_REMOVABLE flag from disklabel. If you didn't already know that | Kenneth R Westerback | |
floppies and cd's were removable, displaying that fact in disklabel output was unlikely to help. And the display in disklabel was the only use of D_REMOVABLE in the tree. ok marco@ | |||
2006-09-24 | Eliminate D_CHAIN, D_ECC and D_RAMDISK flags from disklabel. They were | Kenneth R Westerback | |
not being used in the tree for anything obviously useful. Get it done early so we can find if there are non-obvious uses out there. ok deraadt@ beck@ | |||
2006-07-11 | Let armish and cats recognize MBR partitioning, to come up with proper | Miod Vallat | |
disklabel bounds in disklabel -E; while there, sort of sort the architectures. | |||
2006-07-01 | Eliminate redundant get_le() in favour of letoh32(). Add letoh32() | Kenneth R Westerback | |
calls in alpha, hppa, hppa64 and mips63 when accessing the two DOS MBR u_int32_t fields dp_size and dp_start. No functional change. | |||
2006-05-16 | change only use of slice to 'partition letter' to be consistent with | Kevin Steves | |
use of partition everywhere else; ok jmc@ | |||
2006-04-26 | man page is gzip'd, should store as unsigned char array. | Theo de Raadt | |
2006-04-14 | Remove duplicate code, okay ray@ | Pedro Martelletto | |
2005-12-05 | Avoid an out-of-bounds array access in editor_delete() for invalid partition | Miod Vallat | |
name; spotted by Laurent Coustet (ed, debian-fr net) ok deraadt@ otto@ | |||
2005-11-16 | Fix conversion of K units to handle case where sector size > 1024. e.g. | Kenneth R Westerback | |
Sony Hi-MD usb drive. ok millert@ | |||
2005-11-13 | missing fclose(); from dhill@mindcry.org | Theo de Raadt | |
2005-11-12 | use snprintf; ok cloder dhill@mindcry.org | Theo de Raadt | |
2005-08-30 | Get the start of the A6 partition from fdisk. Fixes wrong suggestion of | Uwe Stuehler | |
offset 0 for the start of slice a. ok deraadt@ | |||
2005-04-30 | Better header at the top: | Theo de Raadt | |
# Inside MBR partition 3: type A6 start 2570463 size 75569697 | |||
2005-04-01 | will do disklabels like hppa | Theo de Raadt | |
2005-03-07 | more macro simplification; | Jason McIntyre | |
2005-02-16 | Prevent gzip from storing mtime and filename in the header so we | Todd C. Miller | |
get identical binaries. |