aboutsummaryrefslogtreecommitdiff
path: root/sbin/sunlabel
Commit message (Collapse)AuthorAgeFilesLines
* General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-201-1/+3
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 3-Clause license. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Notes: svn path=/head/; revision=326025
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* sbin: normalize paths using SRCTOP-relative paths or :H when possibleEnji Cooper2017-03-041-1/+1
| | | | | | | | | | This simplifies make logic/output MFC after: 1 month Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=314656
* Re-ident lines.Marcelo Araujo2016-04-201-12/+4
| | | | | | | | Requested by: pfg MFC after: 2 weeks. Notes: svn path=/head/; revision=298326
* Use nitems() from sys/param.h.Marcelo Araujo2016-04-201-4/+4
| | | | | | | MFC after: 2 weeks. Notes: svn path=/head/; revision=298320
* META_MODE: Remove DEP_MACHINE from Makefile.depend files.Bryan Drewery2015-09-251-2/+0
| | | | | | | | | This has not been needed since r246865 in projects/bmake. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=288228
* META_MODE: Remove DEP_RELDIR from Makefile.depend files.Bryan Drewery2015-09-251-2/+0
| | | | | | | | | This has not been needed since r284171 in projects/bmake. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=288226
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+21
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * Merge sync of headSimon J. Gerraty2015-05-271-2/+1
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=283595
| * Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+20
| | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | Convert sbin/ to LIBADDBaptiste Daroussin2014-11-251-2/+1
|/ | | | | | | Reduce overlinking Notes: svn path=/head/; revision=275030
* mdoc: fix column names, indentation, column separation within each row, andJoel Dahl2012-04-071-8/+8
| | | | | | | | | | quotation. Also make sure we have the same amount of columns in each row as the number of columns we specify in the head arguments. Reviewed by: brueffer Notes: svn path=/head/; revision=233992
* mdoc: drop even more redundant .Pp callsUlrich Spörlein2010-10-191-1/+0
| | | | | | | | | No change in rendered output, less mandoc lint warnings. Tool provided by: Nobuyuki Koganemaru n-kogane at syd.odn.ne.jp Notes: svn path=/head/; revision=214054
* MFtbemd:Warner Losh2010-08-231-1/+1
| | | | | | | | Prefer MACHNE_CPUARCH to MACHINE_ARCH in most contexts where you want to test of all the CPUs of a given family conform. Notes: svn path=/head/; revision=211725
* Fix typos and spelling mistakes.Joel Dahl2010-08-061-1/+1
| | | | Notes: svn path=/head/; revision=210933
* Spelling fixes.Joel Dahl2010-07-311-1/+1
| | | | Notes: svn path=/head/; revision=210702
* Bump WARNS where possible.Ulrich Spörlein2010-02-151-2/+0
| | | | | | | | Checked by: make universe Approved by: ed (co-mentor) Notes: svn path=/head/; revision=203916
* Fix grammar error caused by my previous edit.Joerg Wunsch2005-03-301-2/+2
| | | | | | | | | While being here, also update the copyright year. Submitted by: ru Notes: svn path=/head/; revision=144344
* Support VTOC volume names. This can be useful to distinguish multipleJoerg Wunsch2005-03-302-6/+59
| | | | | | | | | | disks in a system. Solaris' format(1m) displays the volume names in the disk overview. MFC after: 1 month Notes: svn path=/head/; revision=144328
* Fix grammar error.David E. O'Brien2005-02-151-1/+1
| | | | Notes: svn path=/head/; revision=141956
* Fix indentation of continuation lines to (hopefully) comply withJoerg Wunsch2004-06-181-28/+30
| | | | | | | | | style(9). Reminded by: bde Notes: svn path=/head/; revision=130692
* Cast the arguments to make_h_number() to uintmax_t before multiplyingJoerg Wunsch2004-06-111-2/+2
| | | | | | | them... Otherwise the result will be truncated anyway. Notes: svn path=/head/; revision=130345
* ru's mdoc(7) style police was here.Joerg Wunsch2004-06-021-23/+23
| | | | | | | Submitted by: ru Notes: svn path=/head/; revision=130010
* Major overhaul of sunlabel(8).Joerg Wunsch2004-06-012-72/+757
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | . Implement option -c, all partition sizes will be calculated in cylinders as opposed to sectors. Since the Sun label is inherently cylinder-based, this makes the job a little easier. . Implement option -h, print the label in `human readable' size/offset format. . Implement SVR4-compatible VTOC-style elements. They are fully optional, defaulting to the current behaviour where no VTOC-style table will be written to disk. However, if desired, the full functionality of the partitioning menu of Solaris' format(1m) is now offered (and even more). . When editing the label, do not loop around edit_label() where a new template file is generated for each turn, this used to be annoying in that any possible syntax error caused a complaint, but then the template was created anew, so the user had to perform all their editing again. Rather loop inside edit_label(), similar to bsdlabel(8), so in case of errors, the user will be presented their previous template file again. . If VTOC-style elements are present, the overlap checks are made less stringent. Overlaps will still be warned about, but overlaps of `unmountable' partitions against other ones are no longer fatal. That way, e. g. VxVM encapsulated disk labels can be fully edited in FreeBSD (but not in Solaris ;-). . In print_label(), generate the editing hints only if the -e flag is in effect. Additionally, print a hint about the total number of sectors in the (hardware) medium. . When editing a label, allow for changing the geometry emulation (and textual name) by modifying the "text:" line on top. That way, a more effective emulation can be chosen. . When editing/reading a label, additionally allow for the suffixes `s' (512-byte sectors), and `c' (cylinders) in the partition size field. . Finally, turn the stub man page into something that really explains the entire thing. Notes: svn path=/head/; revision=129965
* Correct existing usage lines, add two more.Ruslan Ermilov2004-05-171-3/+11
| | | | Notes: svn path=/head/; revision=129360
* When editing a Sun label, make the search for a valid partition lineJoerg Wunsch2004-05-041-4/+21
| | | | | | | | | | violate POLA a little less by not requiring exactly two spaces in front of the entry (and silently discarding any non-matching entry). We now recognize anything starting with a letter followed by a colon as the first non-space chars as a partition entry. Notes: svn path=/head/; revision=128916
* Spell "disklabel" correctly.Ceri Davies2004-02-011-1/+1
| | | | | | | Approved by: ru Notes: svn path=/head/; revision=125304
* Install a 'disklable' alias.David E. O'Brien2004-01-311-0/+5
| | | | | | | Technical Reviewed by: ru Notes: svn path=/head/; revision=125260
* Sync with bsdlabel/Makefile.David E. O'Brien2004-01-291-5/+9
| | | | Notes: svn path=/head/; revision=125211
* Add a very basic manpage.David E. O'Brien2004-01-292-1/+71
| | | | Notes: svn path=/head/; revision=125210
* Use (char *)NULL to terminate the argument list for execlp().Hartmut Brandt2003-10-301-1/+1
| | | | | | | | Without this cast the compiler cannot know that it has to convert the null pointer constant NULL to a null pointer. Notes: svn path=/head/; revision=121739
* Simplify the GEOM OAM api: Drop the request type, and let everythingPoul-Henning Kamp2003-06-011-4/+4
| | | | | | | | | | | hinge on the "verb" parameter which the class gets to interpret as it sees fit. Move the entire request into the kernel and move changed parameters back when done. Notes: svn path=/head/; revision=115624
* Moved libgeom.so dependencies to where they belong.Ruslan Ermilov2003-05-171-2/+2
| | | | | | | | Reviewed by: phk Approved by: re (scottl) Notes: svn path=/head/; revision=115104
* Fix the misspelling of DPADD, then fix "make checkdpadd".Ruslan Ermilov2003-05-031-1/+1
| | | | Notes: svn path=/head/; revision=114595
* Fix for dynamic linking.Jake Burkholder2003-04-271-1/+1
| | | | | | | Submitted by: Alex Deiter <tiamat@komi.mts.ru> Notes: svn path=/head/; revision=114133
* Add testcases to ensure that overwriting bootcode does not trash label.Poul-Henning Kamp2003-04-231-0/+26
| | | | Notes: svn path=/head/; revision=113897
* If we cannot open the parent device for writing, use GEOM::CONFIG_GEOMPoul-Henning Kamp2003-04-232-24/+61
| | | | | | | | | | | requests to write label and bootcode. The -r argument is ignored (with a warning). With a lot of help from: jake Notes: svn path=/head/; revision=113896
* Do not link sunlabel to disklabel.Poul-Henning Kamp2003-04-231-1/+0
| | | | Notes: svn path=/head/; revision=113888
* Add "-r" when we initialize the label first time.Poul-Henning Kamp2003-04-221-1/+18
| | | | | | | Add two more tests. Notes: svn path=/head/; revision=113877
* Use explicit encoding/decoding funtions for sunlabel data structures.Poul-Henning Kamp2003-04-212-34/+29
| | | | | | | | | | | Use #defines for various magic numbers. Attach test-case to makefile. Reviewed by: jake Notes: svn path=/head/; revision=113824
* Add minimal regression test for hotspot handling of the sunlabel.Poul-Henning Kamp2003-04-211-0/+114
| | | | Notes: svn path=/head/; revision=113822
* Solve printf/cast issues to make this compile in i386 as well.Poul-Henning Kamp2003-04-181-5/+5
| | | | Notes: svn path=/head/; revision=113688
* Hardlink sunlabel to disklabel so make release is happy. (This only affectsJake Burkholder2003-04-151-0/+1
| | | | | | | sparc64, where bsd^H^H^Hdisklabel isn't built.) Notes: svn path=/head/; revision=113539
* - Use read(2) to get the existing sunlabel on a disk, instead of parsingJake Burkholder2003-04-151-77/+81
| | | | | | | | | | | | | | | | | kern.geom.conftxt, which md disks don't show up in. If the magic and the checksum are right assume its a valid sunlabel, otherwise use the DIOC ioctls to get the disk parameters and whip up a label out of thin air. - Don't just silently create or correct invalid c partitions, warn about invalid ones in label proto files. - Split checksumming into a function since we do it a couple times. Also don't include the sl_cksum field in the checksum, which avoids needing to clear it first. This is makes sunlabel a suitable replacement for disklabel in make release. Notes: svn path=/head/; revision=113538
* Add sunlabel, a more or less drop in replacement for bsd^H^H^Hdisklabel(8)Jake Burkholder2003-01-312-0/+585
which works on sun labels. Due to the lack of an interface other than write(2) to update labels, it cannot modify an open partition. Notes: svn path=/head/; revision=110130