Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: disklabel trouble



Patrick Welche <prlw1%cam.ac.uk@localhost> typed:
: On Sat, Jul 16, 2011 at 09:26:18PM +0100, Patrick Welche wrote:
:>         030   39 30 32 31 3a 5c 20 20  20 20 0a 3a 70 61 23 38 
9021:\.....:pa#8
:                                   ^^^^^^^^^^^^
: So, it seems that trailing spaces after the \ at the end of a disktab line
: completely confuse disklabel (or is it cgetnum()).
: This is illustrated by creating a "disktab" file containing
: test:\
::dt=ESDI:se#512:ns#63:nt#16:sc#1008:nc#969021:\
::pa#842022912:oa#107931648:ta=4.2BSD:ba#0:fa#0:\

The backwards slash is there to escape/suppress the following newline
character.  Each disktab entry is a single logical line.  If you put
spaces after it, you're causing the line to be considered complete
at the newline character.  This is not a bug.

Regards,
Geoff


Home | Main Index | Thread Index | Old Index