display / read the p_cdsession field in the FS_ISO9660 case

This commit is contained in:
drochner 2002-05-27 17:33:08 +00:00
parent bb2b3afc9a
commit ec943f317b
2 changed files with 11 additions and 4 deletions

View File

@ -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 * 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"; static char sccsid[] = "@(#)disklabel.c 8.4 (Berkeley) 5/4/95";
/* from static char sccsid[] = "@(#)disklabel.c 1.2 (Symmetric) 11/28/85"; */ /* from static char sccsid[] = "@(#)disklabel.c 1.2 (Symmetric) 11/28/85"; */
#else #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
#endif /* not lint */ #endif /* not lint */
@ -1625,6 +1625,9 @@ getasciilabel(FILE *f, struct disklabel *lp)
NXTNUM(v); NXTNUM(v);
pp->p_frag = v / pp->p_fsize; pp->p_frag = v / pp->p_fsize;
break; break;
case FS_ISO9660:
NXTNUM(pp->p_cdsession);
break;
default: default:
break; break;
} }

View File

@ -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 * Copyright (c) 1987, 1993
@ -38,7 +38,7 @@
#include <sys/cdefs.h> #include <sys/cdefs.h>
#ifndef lint #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 */ #endif /* not lint */
#include <sys/param.h> #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); pp->p_fsize, pp->p_fsize * pp->p_frag);
break; break;
case FS_ISO9660:
(void)fprintf(f, " %6d ", pp->p_cdsession);
break;
default: default:
(void)fprintf(f, "%20.20s", ""); (void)fprintf(f, "%20.20s", "");
break; break;