freebsd-skq/lib/libdisk
Rink Springer 8a4974cb5a Improve error handling in libdisk while parsing the kern.geom.conftxt sysctl.
Previously, any parse error will result in the calling program exiting with an
unpleasant message. This change will cause libdisk to issue a warning and
ignore lines it cannot parse instead of bluntly terminating the unfortunate
enough program.

This change will allow you to use sysinstall if you have a NTFS parition with
a space in the name (such as 'Win Xp'). In such a case, a line like the
following will appear in the kern.geom.conftxt output:

2 LABEL ntfs/Win Xp 209818635264 512 i 0 o 0

As the fields are space-separated, libdisk would go beserk and exit the program.
This would happen if using FreeBSD 7.0 snapshot images (as GEOM_LABEL is in
the installation kernel as well), thus making it impossible to install FreeBSD
without renaming your NTFS paritions.

Reported by:	Dwight Berendse <dwight at berendse dot org>
Nod from:	phk
Reviewed by:	imp
Approved by:	re (bmah), imp (mentor)
MFC after:	1 month
2007-08-05 16:55:40 +00:00
..
blocks.c
change.c Add over 32GB disk support on pc98 (userland part). 2005-03-30 13:03:33 +00:00
chunk.c Don't barf when we encounter an UUID for GPT partitions. Instead, add 2004-10-31 01:28:59 +00:00
create_chunk.c Remove an unnecessary defination of New_Chunk, which has been 2005-01-05 14:07:31 +00:00
disk.c o Add IDs for Plan9, QNX4.X, Mac OS-X, Linux exteneded partitions. 2006-04-25 20:42:15 +00:00
libdisk.3 Instead of printing several pieces with .Sy just enclose the 'Note' block 2006-01-30 08:26:59 +00:00
libdisk.h Add a dummy arm Write_Disk() function, and compile libdisk on arm. 2006-01-25 11:24:37 +00:00
Makefile unbreak build for sparc64 etc. 2006-10-09 05:12:54 +00:00
open_disk.c Improve error handling in libdisk while parsing the kern.geom.conftxt sysctl. 2007-08-05 16:55:40 +00:00
open_ia64_disk.c Don't use type unknown for partitions that we don't care about because 2004-08-05 17:44:07 +00:00
rules.c Make libdisk WARNS=4 clean. 2004-03-30 01:39:00 +00:00
tst01.c
write_amd64_disk.c Handle read_block() failures by ignoring the disk rather than 2004-06-04 11:49:11 +00:00
write_arm_disk.c Add a dummy arm Write_Disk() function, and compile libdisk on arm. 2006-01-25 11:24:37 +00:00
write_disk.c
write_i386_disk.c Handle read_block() failures by ignoring the disk rather than 2004-06-04 11:49:11 +00:00
write_ia64_disk.c Fix a bug in the size of the PMBR partition. Since the partition starts 2006-08-09 20:19:15 +00:00
write_pc98_disk.c Handle read_block() failures by ignoring the disk rather than 2004-06-04 11:49:11 +00:00
write_powerpc_disk.c PowerPC support. 2004-04-21 23:21:13 +00:00
write_sparc64_disk.c