freebsd-nq/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
chunk.c
create_chunk.c
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
rules.c
tst01.c
write_amd64_disk.c
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
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
write_powerpc_disk.c
write_sparc64_disk.c