summaryrefslogtreecommitdiff
path: root/sys/isofs/cd9660
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-12-05 13:40:29 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-12-05 13:40:29 +0000
commit9c2235a1caa477c619747890582dc7a0c6baf309 (patch)
treecc2bacfe0f2c966a425588f9725658d929e8e6ae /sys/isofs/cd9660
parent5d0cc1d6dad7fa7de090af70c2d08138c7fb6c00 (diff)
pack cd9660 volume id into disklabel struct; very pretty result
Diffstat (limited to 'sys/isofs/cd9660')
-rw-r--r--sys/isofs/cd9660/cd9660_vfsops.c4
1 files changed, 3 insertions, 1 deletions
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;