From: deraadt Date: Thu, 5 Dec 1996 13:40:28 +0000 (+0000) Subject: pack cd9660 volume id into disklabel struct; very pretty result X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=a5cd0cef141a13cdcdcd74975d7b5d6b5b5e3182;p=openbsd pack cd9660 volume id into disklabel struct; very pretty result --- diff --git a/sys/isofs/cd9660/cd9660_vfsops.c b/sys/isofs/cd9660/cd9660_vfsops.c index 0a6d9902231..e8ed00b84e0 100644 --- a/sys/isofs/cd9660/cd9660_vfsops.c +++ b/sys/isofs/cd9660/cd9660_vfsops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cd9660_vfsops.c,v 1.3 1996/12/05 13:08:11 deraadt Exp $ */ +/* $OpenBSD: cd9660_vfsops.c,v 1.4 1996/12/05 13:40:28 deraadt Exp $ */ /* $NetBSD: cd9660_vfsops.c,v 1.20 1996/02/09 21:32:08 christos Exp $ */ /*- @@ -432,6 +432,8 @@ iso_disklabelspoof(dev, strat, lp) /* * build a disklabel for the CD */ + strncpy(lp->d_typename, pri->volume_id, 16); + strncpy(lp->d_packname, pri->volume_id+16, 16); lp->d_partitions[0].p_offset = 0; lp->d_partitions[0].p_size = lp->d_secperunit; lp->d_partitions[0].p_fstype = FS_ISO9660;