summaryrefslogtreecommitdiff
path: root/sys/geom/label/g_label_disk_ident.c
Commit message (Collapse)AuthorAgeFilesLines
* geom: clean up empty lines in .c and .h filesMateusz Guzik2020-09-011-1/+0
| | | | Notes: svn path=/head/; revision=365226
* geom_label: Make glabel labels more trivial by separating the tastingXin LI2020-07-261-3/+1
| | | | | | | | | | | | | | | | routines out. While there, also simplify the creation of label paths a little bit by requiring the / suffix for label directory prefixes (ld_dir renamed to ld_dirprefix to indicate the change) and stop defining macros for these when they are only used once. Reviewed by: cem MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D25597 Notes: svn path=/head/; revision=363537
* Squash error from geom by sizing ident strings to DISK_IDENT_SIZE.Sean Bruno2018-04-051-1/+1
| | | | | | | | | | | | | | | Display attribute in future error strings and differentiate g_handleattr() error messages for ease of debugging in the future. "g_handleattr: md1 bio_length 24 strlen 31 -> EFAULT" Reported by: swills Reviewed by: imp cem avg Sponsored by: Limelight Networks Differential Revision: https://reviews.freebsd.org/D14962 Notes: svn path=/head/; revision=332070
* sys/geom: 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. Notes: svn path=/head/; revision=326270
* Comment typo fix.Ivan Voras2013-04-161-2/+2
| | | | | | | Is aware of the importance of comments: dim Notes: svn path=/head/; revision=249571
* Fix the buffer-overflow-fixing fixes.Ivan Voras2013-04-161-15/+19
| | | | | | | | | Pointy-hat to: me, for not realizing snprintf() is available in kernel. Thanks to: jh, for bringing me the good news of snprintf(), Pawel Worach, for noting that the panic can be provoked in i386 and not in amd64 Notes: svn path=/head/; revision=249564
* Introduce glabel labels based on GEOM ident attributes. In this initialIvan Voras2013-04-151-0/+84
implementation, error on the side of conservatism and only create labels for GEOMs of classes DISK and MULTIPATH. Discussed with: trasz Approved by: silence from freebsd-geom@ Notes: svn path=/head/; revision=249508