]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
The current /etc/dumpdates file restricts device names to 32 characters.
authorKirk McKusick <mckusick@FreeBSD.org>
Tue, 18 Oct 2011 18:42:26 +0000 (18:42 +0000)
committerKirk McKusick <mckusick@FreeBSD.org>
Tue, 18 Oct 2011 18:42:26 +0000 (18:42 +0000)
commit23ad9069cbe6c94f331410c4638f5d6194b05676
tree07bb98aae180c3f4abf32873834f1e96c3e30b6d
parent162c8b19e379fcafa76c84fbb8efa0a50f304b5e
The current /etc/dumpdates file restricts device names to 32 characters.
With the addition of various GEOM layers some device names now exceed
this length, for example /dev/mirror/encrypted.elig.journal. This
change expands the field to 53 bytes which brings the /etc/dumpdates
lines to 80 characters. Exceeding 80 characters makes the /etc/dumpdates
file much less human readable. A test is added to dump so that it
verifies that the device name will fit in the 53 character field
failing the dump if it is too long.

This change has been checked to verify that its /etc/dumpdates file
is compatible with older versions of dump.

Reported by: Martin Sugioarto <martin@sugioarto.com>
PR:          kern/160678
MFC after:   3 weeks
sbin/dump/dump.h
sbin/dump/itime.c