summaryrefslogtreecommitdiff
path: root/sbin
AgeCommit message (Collapse)Author
2014-03-04Make pointer NULL check non-fatal for a bogus condition.joerg
2014-03-03Correct usage of clri.blymn
2014-02-24Rename NetBSD/hp700 to NetBSD/hppa.skrll
Unfortunately our VCS isn't very helpful here.
2014-02-09Fix error message; argv[1] could be NULLmaxv
2014-01-19Rename link to link_pkw to avoid shadowing the link syscall.matt
2014-01-15Overwrite the seed file from the beginning, using pwrite(2).apb
2014-01-15Fix arguments for write.joerg
2014-01-10use __func__, EXIT_{SUCCESS,FAILURE}christos
2014-01-10give err() some reason to avoid:pooka
sysctl.c:2713:5: error: zero-length gnu_printf format string [-Werror=format-zero-length]
2014-01-08perror is obsolete, use warn and add missing paren.christos
2014-01-07Before scanning, check if the card is up. If it is not the case, exitdegroote
with some useful error message. Add some note about this fact in the man page too.
2014-01-05PR bin/46743: mark the "next free cluster" value in the file systemmartin
info block as unitialized.
2014-01-04New sentence, new line. Remove trailing whitespace.wiz
2013-12-30Add crossreference to fd(4) as noted a while back in PR 45694. Bump date.dholland
2013-12-25moved to externalchristos
2013-12-19Bump date for previous.wiz
2013-12-19Add the backup subcommand. It dumps the contents of the partitionjnemeth
tables as a plist, which is readable by the restore subcommand. XXX restore subcommand forthcoming
2013-12-18If we want to GUIDs to display with correct endian, it helps to decode it first.jnemeth
2013-12-17In all man pages that say:apb
The -H, -L and -P options are ignored unless the -R option is specified. In addition, these options override each other and the command's actions are determined by the last one specified. Add: The default is as if the -P option had been specified.
2013-12-10Explicitly state which partition was added/modified.jnemeth
2013-12-09Fix typo ("then" instead of "than")wiz
2013-12-09Fix typo.wiz
2013-12-09Add two new subcommands, "set" and "unset". These were inspired byjnemeth
FreeBSD's gpart(8), but the code is all mine. The purpose of these is to set and unset partition attributes.
2013-12-09For the "show -i <entry>" subcommand, print Start and Size both injnemeth
terms of number of sectors and bytes.
2013-12-08For the add and resize subcommands, change the -s option. If there isjnemeth
no suffix, or the suffix is 's' or 'S', size is in sectors (as before) otherwise size is in bytes.
2013-12-08fix off-by-one errorjnemeth
2013-12-06Don't attempt to create/resize an unaligned partition if the attemptjnemeth
to create/resize an aligned one failed. This simplifies the code and prevents surprises. If the user wants an unaligned partition in the case where an aligned one fails, they can simply retry the command without the "-a" option. This change was requested by wiz@, and after some thought I agree with it.
2013-12-04Use MBR_PTYPE_ defines from <sys/bootblock.h>.jakllsch
2013-12-04Mirror my changes of src/sbin/gpt/create.c 1.4 in migrate.c;jakllsch
Use less bogus CHS addresses in PMBR. With the ending head set at 0xff one machine I have will never leave the initial startup screen if such a disk is present. Additionally, Wikipedia suggests without citiation that 254 is the maximium allowable value for the head, and this seems to be the case.
2013-12-04Bump date for previous.wiz
2013-12-04Fix err/errx confusion, pointed out by rmind.martin
2013-12-04Provide variants of the -s option to allow limiting the tmpfs dynamicallymartin
at mount time to 1/Nth or to N percent of the available ram.
2013-12-02Fix pasto in the !ufs2 case (use dp->dp1 and not of dp->dp2).bouyer
This would be a problem only when allocating a new data block and the indir block is already allocated, which explains why automated tests didn't find it. Problem reported on tech-kern@ and fix tested by manu@.
2013-11-30Add two new options:jnemeth
-g which shows the GUID for a partition -i which shows all the gory details for a particular option XXX the output format of -i is subject to change
2013-11-28when calling dehumanize_number() make sure the resulting number is >= 1jnemeth
2013-11-27CID 1132762: Add error check for negative, to make zero-divide in modulechristos
impossible.
2013-11-27CID 1132764: Bogus testchristos
2013-11-27Remove FreeBSD specific code as per message to tech-userlevel.jnemeth
2013-11-23Only skip past _PATH_DEV if it is actually present.jnemeth
2013-11-22change the "-b blocknr" parameter to accept a "human number"jnemeth
2013-11-22bump datejnemeth
2013-11-22In the manpage:jnemeth
- s/-b number/-b blocknr/ - s/-s count/-s sectors/ - s/-p count/-p partitions/ In the program: - s/-b lba/-b blocknr/ - s/-s lba/-s sectors/ This makes the documentation in the manpage and the program consistent and makes it more clear what the parameters are. Also, "-s lba" was just plain wrong since LBA stands for Logical Block Address[ing], and the -s option didn't represent any kind of address, but rather a size.
2013-11-20shrunk.wiz
2013-11-20Add a resize command. This command was inspired by FreeBSD's gpart(8),jnemeth
but the code was written by myself.
2013-11-19delete an errant where it is obvious what the code is doingjnemeth
2013-11-19When setting a label on the new partition, be sure to set the labeljnemeth
in the secondary partition table as well.
2013-11-19update synopsis for add subcommandjnemeth
2013-11-19 Add two new options to the "add" subcommand:jnemeth
-a alignment -- attempt to align the start and size of the partition -l label -- supply a label for the partition These options were inspired by FreeBSD's gpart(8) command, but the code was written by me.
2013-11-13CID 1125874: Fix memory leakchristos
2013-11-09vax specific gcc 4.8.1 hackschristos