display / read the p_cdsession field in the FS_ISO9660 case
This commit is contained in:
parent
bb2b3afc9a
commit
ec943f317b
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: disklabel.c,v 1.104 2002/05/14 21:27:05 thorpej Exp $ */
|
||||
/* $NetBSD: disklabel.c,v 1.105 2002/05/27 17:33:08 drochner Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1987, 1993
|
||||
|
@ -47,7 +47,7 @@ __COPYRIGHT("@(#) Copyright (c) 1987, 1993\n\
|
|||
static char sccsid[] = "@(#)disklabel.c 8.4 (Berkeley) 5/4/95";
|
||||
/* from static char sccsid[] = "@(#)disklabel.c 1.2 (Symmetric) 11/28/85"; */
|
||||
#else
|
||||
__RCSID("$NetBSD: disklabel.c,v 1.104 2002/05/14 21:27:05 thorpej Exp $");
|
||||
__RCSID("$NetBSD: disklabel.c,v 1.105 2002/05/27 17:33:08 drochner Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -1625,6 +1625,9 @@ getasciilabel(FILE *f, struct disklabel *lp)
|
|||
NXTNUM(v);
|
||||
pp->p_frag = v / pp->p_fsize;
|
||||
break;
|
||||
case FS_ISO9660:
|
||||
NXTNUM(pp->p_cdsession);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: printlabel.c,v 1.3 2001/10/19 01:16:38 lukem Exp $ */
|
||||
/* $NetBSD: printlabel.c,v 1.4 2002/05/27 17:33:09 drochner Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1987, 1993
|
||||
|
@ -38,7 +38,7 @@
|
|||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
__RCSID("$NetBSD: printlabel.c,v 1.3 2001/10/19 01:16:38 lukem Exp $");
|
||||
__RCSID("$NetBSD: printlabel.c,v 1.4 2002/05/27 17:33:09 drochner Exp $");
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/param.h>
|
||||
|
@ -154,6 +154,10 @@ showpartition(FILE *f, struct disklabel *lp, int i, int ctsformat)
|
|||
pp->p_fsize, pp->p_fsize * pp->p_frag);
|
||||
break;
|
||||
|
||||
case FS_ISO9660:
|
||||
(void)fprintf(f, " %6d ", pp->p_cdsession);
|
||||
break;
|
||||
|
||||
default:
|
||||
(void)fprintf(f, "%20.20s", "");
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue