summaryrefslogtreecommitdiff
path: root/sbin/geom/class/label
Commit message (Collapse)AuthorAgeFilesLines
* Normalize the g(eom,cache,part,...) build.Brooks Davis2018-06-254-567/+0
| | | | | | | | | | | | | | | | | | | | | | | Rather then combining hardlink creation for the geom(8) binary with shared library build, move libraries to src/lib/geom so they are built and installed normally. Create a common Makefile.classes which is included by both lib/geom/Makefile and sbin/geom/Makefile so the symlink and libraries stay in sync. The relocation of libraries allows libraries to be build for 32-bit compat. This also reduces the number of non-standard builds in the system. This commit is not sufficent to run a 32-bit /sbin/geom on a 64-bit system out of the box as it will look in the wrong place for libraries unless GEOM_LIBRARY_PATH is set appropriatly in the environment. Reviewed by: bdrewery Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D15360 Notes: svn path=/head/; revision=335645
* geom: don't write stack garbage in disk labelsAlan Somers2018-02-041-0/+2
| | | | | | | | | | | | | | | | | | | | | | Most consumers of g_metadata_store were passing in partially unallocated memory, resulting in stack garbage being written to disk labels. Fix them by zeroing the memory first. gvirstor repeated the same mistake, but in the kernel. Also, glabel's label contained a fixed-size string that wasn't initialized to zero. PR: 222077 Reported by: Maxim Khitrov <max@mxcrypt.com> Reviewed by: cem MFC after: 3 weeks X-MFC-With: 323314 X-MFC-With: 323338 Differential Revision: https://reviews.freebsd.org/D14164 Notes: svn path=/head/; revision=328849
* various: general adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-271-0/+2
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. 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. No functional change intended. Notes: svn path=/head/; revision=326276
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* Add the capability to refresh the gpart(8) label without need a reboot.Marcelo Araujo2017-03-122-1/+37
| | | | | | | | | | | | | | | | gpart(8) has functionality to change the label of an GPT partition. This functionality works like it should, however, after a label change the /dev/gpt/ entries remain unchanged. glabel(8) status output remains unchanged. The change only takes effect after a reboot. PR: 162690 Submitted by: sub.mesa@gmail, Ben RUBSON <ben.rubson@gmail.com>, ae Reviewed by: allanjude, bapt, bcr MFC after: 6 weeks. Differential Revision: https://reviews.freebsd.org/D9935 Notes: svn path=/head/; revision=315112
* 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
* Explicitly add more files to the 'runtime' package.Glen Barber2016-02-091-0/+1
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295450
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+20
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge sync of headSimon J. Gerraty2015-05-271-2/+2
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=283595
| * Merge head from 7/28Simon J. Gerraty2014-08-191-3/+34
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=270164
| * | Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * | Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * | Merge from headSimon J. Gerraty2013-09-051-2/+2
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=255263
| * | | Updated dependenciesSimon J. Gerraty2013-03-111-0/+2
| | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * | | Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * | | Updated/new Makefile.dependSimon J. Gerraty2012-11-081-0/+3
| | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=242788
| * | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | | mdoc: remove EOL whitespace.Joel Dahl2014-12-291-2/+2
| |_|/ |/| | | | | | | | Notes: svn path=/head/; revision=276360
* | | use .Mt to mark up email addresses consistently (part1)Baptiste Daroussin2014-06-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | PR: 191174 Submitted by: Franco Fichtner <franco@lastsummer.de> Notes: svn path=/head/; revision=267667
* | | Minor mdoc improvements.Joel Dahl2014-06-061-1/+1
| | | | | | | | | | | | Notes: svn path=/head/; revision=267182
* | | Bulk document the kern.geom.label.*.enable sysctls and tunables.Ivan Voras2014-06-041-0/+13
| | | | | | | | | | | | Notes: svn path=/head/; revision=267063
* | | Document the diskid automatic label class.Ivan Voras2014-06-021-2/+20
| |/ |/| | | | | | | | | | | | | | | | | While there, also document the glabel "native" labels and explain why there are additional nodes created for nested GEOM classes. Reminded by: jmg Notes: svn path=/head/; revision=266972
* | Minor clarificiation.Joel Dahl2013-04-221-2/+2
|/ | | | | | | PR: 177455 Notes: svn path=/head/; revision=249768
* Rename the generic "CLASS" to the more specific "GEOM_CLASS".David E. O'Brien2010-12-151-1/+1
| | | | | | | | | While I'm here remove redundancy and inconsistencies. Obtained from: Juniper Networks Notes: svn path=/head/; revision=216468
* - Remove gc_argname field. It was introduced for gpart(8), but if IPawel Jakub Dawidek2010-09-131-6/+6
| | | | | | | | | | understand everything correctly, we don't really need it. - Provide default numeric value as strings. This allows to simplify a lot of code. - Bump version number. Notes: svn path=/head/; revision=212554
* Remove (c) line.Ivan Voras2009-08-231-1/+0
| | | | | | | | | Requested by: pjd Approved by: gnn (mentor) MFC after: 1 month Notes: svn path=/head/; revision=196476
* Add support for labels derived from GPT metadata.Ivan Voras2009-06-131-2/+14
| | | | | | | | | | Approved by: gnn (mentor) Reviewed by: pjd PR: 128398 Submitted by: Marius Nuennerich < marius at nuenneri.ch > Notes: svn path=/head/; revision=194092
* Man page accompanying r190423 - introduce UFS ID labels.Ivan Voras2009-03-251-2/+8
| | | | | | | | Actually-by: pjd Approved by: gnn (mentor) Notes: svn path=/head/; revision=190424
* Replace checks for RESCUE in sources with checks for STATIC_GEOM_CLASSESMarcel Moolenaar2008-06-041-1/+1
| | | | | | | | | and define STATIC_GEOM_CLASSES when building the rescue binary. This way geom can more easily be part of other crunched binaries, as it requires only a Makefile change. Notes: svn path=/head/; revision=179550
* Make it possible to build glabel into rescue geom(8) utility.Xin LI2008-03-051-3/+8
| | | | | | | | Ok'ed by: marcel No objection: -current@ Notes: svn path=/head/; revision=176852
* Add gpart(8).Marcel Moolenaar2007-05-151-6/+6
| | | | | | | | | | In order to support gpart(8), geom(8) needs to support a named argument. Also, optional string parameters are a requirement. Both have been added to the infrastructure. The former required all existing classes to be adjusted. Notes: svn path=/head/; revision=169586
* MFp4: G_TYPE_BOOL sounds much better than G_TYPE_NONE.Pawel Jakub Dawidek2006-09-301-2/+2
| | | | | | | Changes: 98722 Notes: svn path=/head/; revision=162868
* Remove trailing spaces.Pawel Jakub Dawidek2006-02-011-4/+4
| | | | Notes: svn path=/head/; revision=155175
* - The geom(8) utility only uses three types of arguments: string (char *),Pawel Jakub Dawidek2005-12-071-43/+16
| | | | | | | | | | | | | | | | | | | | value (intmax_t) and boolean (int). Based on that provide three functions: - gctl_get_ascii() - gctl_get_int() - gctl_get_intmax() - Hide gctl_get_param() function, as it is only used internally in subr.c. - Allow to provide argument name as (fmt, ...). - Assert geom(8) bugs (missing argument is a geom(8) bug). - Clean-up and simplify the code by using new functions and assumtions (no more checking for missing argument). Tested by: regression tests Notes: svn path=/head/; revision=153190
* Update Document.Takanori Watanabe2005-08-261-0/+3
| | | | Notes: svn path=/head/; revision=149493
* Add code for Ext2FS and ReiserFS labels recognition.Pawel Jakub Dawidek2005-08-121-0/+6
| | | | | | | | | Submitted by: Stanislav Sedov <stas@310.ru> PR: kern/84638 MFC after: 1 week Notes: svn path=/head/; revision=148978
* Define subcommands' usage inside g_command structure.Pawel Jakub Dawidek2005-03-141-20/+16
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=143586
* Instead of documenting every standard subcommand's argument everywhere,Pawel Jakub Dawidek2005-03-141-14/+8
| | | | | | | | | just leave reference to geom(8). MFC after: 1 week Notes: svn path=/head/; revision=143576
* - Document 'status' subcommand.Pawel Jakub Dawidek2005-03-131-2/+9
| | | | | | | | | - Update copyrights. MFC after: 1 week Notes: svn path=/head/; revision=143535
* - Add md_provsize field to metadata, which will help withPawel Jakub Dawidek2005-02-271-1/+7
| | | | | | | | | | | | | | | | | | | | shared-last-sector problem. After this change, even if there is more than one provider with the same last sector, the proper one will be chosen based on its size. It still doesn't fix the 'c' partition problem (when da0s1 can be confused with da0s1c) and situation when 'a' partition starts at offset 0 (then da0s1a can be confused with da0s1 and da0s1c). One can use '-h' option there, when creating device or avoid sharing last sector. Actually, when providers share the same last sector and their size is equal, they provide exactly the same data, so the name (da0s1, da0s1a, da0s1c) isn't important at all. - Provide backward compatibility. - Update copyright's year. MFC after: 1 week Notes: svn path=/head/; revision=142727
* Sort sections.Ruslan Ermilov2005-01-181-2/+2
| | | | Notes: svn path=/head/; revision=140415
* Added the EXIT STATUS section where appropriate.Ruslan Ermilov2005-01-171-1/+1
| | | | Notes: svn path=/head/; revision=140368
* Fix arguments syntax.Pawel Jakub Dawidek2005-01-152-15/+11
| | | | | | | | Manual pages fixes by: ru MFC after: 3 days Notes: svn path=/head/; revision=140298
* Grammatical and spelling improvements.Ceri Davies2004-11-041-4/+4
| | | | | | | Reviewed by: pjd Notes: svn path=/head/; revision=137221
* MFp4: Add 'dump' command to gconcat(8), glabel(8) and gstripe(8) which allowPawel Jakub Dawidek2004-07-182-1/+58
| | | | | | | to dump metadata from given components. Notes: svn path=/head/; revision=132344
* Document sysctl variables.Pawel Jakub Dawidek2004-07-131-0/+18
| | | | | | | Based on: simon's patch Notes: svn path=/head/; revision=132100
* Slight markup and grammar fixes.Ruslan Ermilov2004-07-071-7/+8
| | | | Notes: svn path=/head/; revision=131763
* - Add 'stop' command, which works just like 'destroy' command, but soundsPawel Jakub Dawidek2004-07-052-5/+26
| | | | | | | | | less dangerous. - Update manual pages and extend examples. - Bump versions. Notes: svn path=/head/; revision=131649
* Grammar nits.Pawel Jakub Dawidek2004-07-031-4/+4
| | | | | | | Submitted by: David Magda <dmagda@ee.ryerson.ca> Notes: svn path=/head/; revision=131520