3 * The Regents of the University of California. All rights reserved.
5 * This code is derived from software contributed to Berkeley
6 * by Pace Willisson (pace@blitz.com). The Rock Ridge Extension
7 * Support code is derived from software contributed to Berkeley
8 * by Atsushi Murai (amurai@spec.co.jp).
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer.
15 * 2. Redistributions in binary form must reproduce the above copyright
16 * notice, this list of conditions and the following disclaimer in the
17 * documentation and/or other materials provided with the distribution.
18 * 3. All advertising materials mentioning features or use of this software
19 * must display the following acknowledgement:
20 * This product includes software developed by the University of
21 * California, Berkeley and its contributors.
22 * 4. Neither the name of the University nor the names of its contributors
23 * may be used to endorse or promote products derived from this software
24 * without specific prior written permission.
26 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
27 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
30 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
38 * @(#)cd9660_vfsops.c 8.18 (Berkeley) 5/22/95
39 * $FreeBSD: src/sys/isofs/cd9660/cd9660_vfsops.c,v 1.74.2.7 2002/04/08 09:39:29 bde Exp $
42 #include <sys/param.h>
43 #include <sys/systm.h>
46 #include <sys/nlookup.h>
47 #include <sys/kernel.h>
48 #include <sys/vnode.h>
49 #include <sys/mount.h>
53 #include <sys/fcntl.h>
54 #include <sys/malloc.h>
56 #include <sys/syslog.h>
57 #include <sys/iconv.h>
59 #include <vm/vm_zone.h>
65 #include "cd9660_node.h"
66 #include "cd9660_mount.h"
68 extern struct vop_ops cd9660_vnode_vops;
69 extern struct vop_ops cd9660_spec_vops;
70 extern struct vop_ops cd9660_fifo_vops;
72 MALLOC_DEFINE(M_ISOFSMNT, "ISOFS mount", "ISOFS mount structure");
73 MALLOC_DEFINE(M_ISOFSNODE, "ISOFS node", "ISOFS vnode private part");
75 struct iconv_functions *cd9660_iconv = NULL;
77 static int cd9660_mount (struct mount *, char *, caddr_t, struct ucred *);
78 static int cd9660_unmount (struct mount *, int);
79 static int cd9660_root (struct mount *, struct vnode **);
80 static int cd9660_statfs (struct mount *, struct statfs *, struct ucred *);
81 static int cd9660_vget (struct mount *, struct vnode *, ino_t, struct vnode **);
82 static int cd9660_fhtovp (struct mount *, struct vnode *rootvp,
83 struct fid *, struct vnode **);
84 static int cd9660_checkexp (struct mount *, struct sockaddr *,
85 int *, struct ucred **);
86 static int cd9660_vptofh (struct vnode *, struct fid *);
88 static struct vfsops cd9660_vfsops = {
89 .vfs_mount = cd9660_mount,
90 .vfs_unmount = cd9660_unmount,
91 .vfs_root = cd9660_root,
92 .vfs_statfs = cd9660_statfs,
93 .vfs_sync = vfs_stdsync,
94 .vfs_vget = cd9660_vget,
95 .vfs_fhtovp = cd9660_fhtovp,
96 .vfs_checkexp = cd9660_checkexp,
97 .vfs_vptofh = cd9660_vptofh,
98 .vfs_init = cd9660_init,
99 .vfs_uninit = cd9660_uninit,
101 VFS_SET(cd9660_vfsops, cd9660, VFCF_READONLY);
102 MODULE_VERSION(cd9660, 1);
106 * Called by vfs_mountroot when iso is going to be mounted as root.
109 static int iso_get_ssector (cdev_t dev);
110 static int iso_mountfs (struct vnode *devvp, struct mount *mp,
111 struct iso_args *argp);
114 * Try to find the start of the last data track on this CD-ROM. This
115 * is used to mount the last session of a multi-session CD. Bail out
116 * and return 0 if we fail, this is always a safe bet.
119 iso_get_ssector(cdev_t dev)
121 struct ioc_toc_header h;
122 struct ioc_read_toc_single_entry t;
125 if (dev_dioctl(dev, CDIOREADTOCHEADER, (caddr_t)&h, FREAD,
126 proc0.p_ucred, NULL) != 0)
129 for (i = h.ending_track; i >= 0; i--) {
130 t.address_format = CD_LBA_FORMAT;
132 if (dev_dioctl(dev, CDIOREADTOCENTRY, (caddr_t)&t, FREAD,
133 proc0.p_ucred, NULL) != 0) {
136 if ((t.entry.control & 4) != 0)
137 /* found a data track */
144 return ntohl(t.entry.addr.lba);
148 iso_mountroot(struct mount *mp)
150 struct iso_args args;
151 struct vnode *rootvp;
154 if ((error = bdevvp(rootdev, &rootvp))) {
155 kprintf("iso_mountroot: can't find rootvp\n");
158 args.flags = ISOFSMNT_ROOT;
160 vn_lock(rootvp, LK_EXCLUSIVE | LK_RETRY);
161 error = VOP_OPEN(rootvp, FREAD, FSCRED, NULL);
166 args.ssector = iso_get_ssector(rootdev);
168 VOP_CLOSE(rootvp, FREAD);
171 kprintf("iso_mountroot(): using session at block %d\n",
173 if ((error = iso_mountfs(rootvp, mp, &args)) != 0)
176 cd9660_statfs(mp, &mp->mnt_stat, proc0.p_ucred);
186 cd9660_mount(struct mount *mp, char *path, caddr_t data, struct ucred *cred)
189 struct iso_args args;
193 struct iso_mnt *imp = 0;
194 struct nlookupdata nd;
196 if ((mp->mnt_flag & (MNT_ROOTFS|MNT_UPDATE)) == MNT_ROOTFS) {
197 return (iso_mountroot(mp));
199 if ((error = copyin(data, (caddr_t)&args, sizeof (struct iso_args))))
202 if ((mp->mnt_flag & MNT_RDONLY) == 0)
206 * If updating, check whether changing from read-only to
207 * read/write; if there is no device name, that's all we do.
209 if (mp->mnt_flag & MNT_UPDATE) {
210 imp = VFSTOISOFS(mp);
212 return (vfs_export(mp, &imp->im_export, &args.export));
215 * Not an update, or updating the name: look up the name
216 * and verify that it refers to a sensible block device.
219 error = nlookup_init(&nd, args.fspec, UIO_USERSPACE, NLC_FOLLOW);
221 error = nlookup(&nd);
223 error = cache_vref(&nd.nl_nch, nd.nl_cred, &devvp);
228 if (!vn_isdisk(devvp, &error)) {
234 * Verify that user has necessary permissions on the device,
235 * or has superuser abilities
238 vn_lock(devvp, LK_EXCLUSIVE | LK_RETRY);
239 error = VOP_EACCESS(devvp, accessmode, cred);
241 error = priv_check_cred(cred, PRIV_ROOT, 0);
248 if ((mp->mnt_flag & MNT_UPDATE) == 0) {
249 error = iso_mountfs(devvp, mp, &args);
251 if (devvp != imp->im_devvp)
252 error = EINVAL; /* needs translation */
260 imp = VFSTOISOFS(mp);
261 copyinstr(args.fspec, mp->mnt_stat.f_mntfromname, MNAMELEN - 1,
263 bzero(mp->mnt_stat.f_mntfromname + size, MNAMELEN - size);
264 cd9660_statfs(mp, &mp->mnt_stat, cred);
269 * Common code for mount and mountroot
272 iso_mountfs(struct vnode *devvp, struct mount *mp, struct iso_args *argp)
274 struct iso_mnt *isomp = NULL;
275 struct buf *bp = NULL;
276 struct buf *pribp = NULL, *supbp = NULL;
284 struct iso_volume_descriptor *vdp = 0;
285 struct iso_primary_descriptor *pri = NULL;
286 struct iso_sierra_primary_descriptor *pri_sierra = NULL;
287 struct iso_supplementary_descriptor *sup = NULL;
288 struct iso_directory_record *rootp;
289 int logical_block_size;
290 char cs_local[ICONV_CSNMAXLEN];
291 char cs_disk[ICONV_CSNMAXLEN];
293 if (!(mp->mnt_flag & MNT_RDONLY))
297 * Disallow multiple mounts of the same device.
298 * Disallow mounting of a device that is currently in use
299 * Flush out any old buffers remaining from a previous use.
301 if ((error = vfs_mountedon(devvp)))
303 if (vcount(devvp) > 0)
305 if ((error = vinvalbuf(devvp, V_SAVE, 0, 0)))
308 vn_lock(devvp, LK_EXCLUSIVE | LK_RETRY);
309 error = VOP_OPEN(devvp, FREAD, FSCRED, NULL);
314 if (dev->si_iosize_max != 0)
315 mp->mnt_iosize_max = dev->si_iosize_max;
316 if (mp->mnt_iosize_max > MAXPHYS)
317 mp->mnt_iosize_max = MAXPHYS;
321 /* This is the "logical sector size". The standard says this
322 * should be 2048 or the physical sector size on the device,
323 * whichever is greater. For now, we'll just use a constant.
325 iso_bsize = ISO_DEFAULT_BLOCK_SIZE;
328 for (iso_blknum = 16 + argp->ssector;
329 iso_blknum < 100 + argp->ssector;
331 if ((error = bread(devvp, (off_t)iso_blknum * iso_bsize,
332 iso_bsize, &bp)) != 0)
335 vdp = (struct iso_volume_descriptor *)bp->b_data;
336 if (bcmp (vdp->id, ISO_STANDARD_ID, sizeof vdp->id) != 0) {
337 if (bcmp (vdp->id_sierra, ISO_SIERRA_ID,
338 sizeof vdp->id) != 0) {
344 switch (isonum_711 (high_sierra? vdp->type_sierra: vdp->type)){
349 pri = (struct iso_primary_descriptor *)vdp;
351 (struct iso_sierra_primary_descriptor *)vdp;
355 case ISO_VD_SUPPLEMENTARY:
359 sup = (struct iso_supplementary_descriptor *)vdp;
361 if (!(argp->flags & ISOFSMNT_NOJOLIET)) {
362 if (bcmp(sup->escape, "%/@", 3) == 0)
364 if (bcmp(sup->escape, "%/C", 3) == 0)
366 if (bcmp(sup->escape, "%/E", 3) == 0)
369 if ((isonum_711 (sup->flags) & 1) &&
370 (argp->flags & ISOFSMNT_BROKENJOLIET) == 0)
399 isonum_723 (high_sierra?
400 pri_sierra->logical_block_size:
401 pri->logical_block_size);
403 if (logical_block_size < DEV_BSIZE || logical_block_size > MAXBSIZE
404 || (logical_block_size & (logical_block_size - 1)) != 0) {
409 rootp = (struct iso_directory_record *)
411 pri_sierra->root_directory_record:
412 pri->root_directory_record);
414 isomp = kmalloc(sizeof *isomp, M_ISOFSMNT, M_WAITOK | M_ZERO);
415 isomp->logical_block_size = logical_block_size;
416 isomp->volume_space_size =
417 isonum_733 (high_sierra?
418 pri_sierra->volume_space_size:
419 pri->volume_space_size);
420 isomp->joliet_level = 0;
422 * Since an ISO9660 multi-session CD can also access previous
423 * sessions, we have to include them into the space consider-
424 * ations. This doesn't yield a very accurate number since
425 * parts of the old sessions might be inaccessible now, but we
426 * can't do much better. This is also important for the NFS
427 * filehandle validation.
429 isomp->volume_space_size += argp->ssector;
430 bcopy (rootp, isomp->root, sizeof isomp->root);
431 isomp->root_extent = isonum_733 (rootp->extent);
432 isomp->root_size = isonum_733 (rootp->size);
434 isomp->im_bmask = logical_block_size - 1;
435 isomp->im_bshift = ffs(logical_block_size) - 1;
437 pribp->b_flags |= B_AGE;
441 mp->mnt_data = (qaddr_t)isomp;
442 mp->mnt_stat.f_fsid.val[0] = dev2udev(dev);
443 mp->mnt_stat.f_fsid.val[1] = mp->mnt_vfc->vfc_typenum;
444 mp->mnt_maxsymlinklen = 0;
445 mp->mnt_flag |= MNT_LOCAL;
446 isomp->im_mountp = mp;
448 isomp->im_devvp = devvp;
450 dev->si_mountpoint = mp;
452 /* Check the Rock Ridge Extention support */
453 if (!(argp->flags & ISOFSMNT_NORRIP)) {
454 if ((error = bread(isomp->im_devvp,
455 lblktooff(isomp, isomp->root_extent + isonum_711(rootp->ext_attr_length)),
456 isomp->logical_block_size, &bp)) != 0)
459 rootp = (struct iso_directory_record *)bp->b_data;
461 if ((isomp->rr_skip = cd9660_rrip_offset(rootp,isomp)) < 0) {
462 argp->flags |= ISOFSMNT_NORRIP;
464 argp->flags &= ~ISOFSMNT_GENS;
468 * The contents are valid,
469 * but they will get reread as part of another vnode, so...
471 bp->b_flags |= B_AGE;
475 isomp->im_flags = argp->flags & (ISOFSMNT_NORRIP | ISOFSMNT_GENS |
476 ISOFSMNT_EXTATT | ISOFSMNT_NOJOLIET |
478 if (isomp->im_flags & ISOFSMNT_KICONV && cd9660_iconv) {
479 bcopy(argp->cs_local, cs_local, sizeof(cs_local));
480 bcopy(argp->cs_disk, cs_disk, sizeof(cs_disk));
481 cd9660_iconv->open(cs_local, cs_disk, &isomp->im_d2l);
482 cd9660_iconv->open(cs_disk, cs_local, &isomp->im_l2d);
484 isomp->im_d2l = NULL;
485 isomp->im_l2d = NULL;
489 /* this effectively ignores all the mount flags */
490 log(LOG_INFO, "cd9660: High Sierra Format\n");
491 isomp->iso_ftype = ISO_FTYPE_HIGH_SIERRA;
493 switch (isomp->im_flags&(ISOFSMNT_NORRIP|ISOFSMNT_GENS)) {
495 isomp->iso_ftype = ISO_FTYPE_DEFAULT;
497 case ISOFSMNT_GENS|ISOFSMNT_NORRIP:
498 isomp->iso_ftype = ISO_FTYPE_9660;
501 log(LOG_INFO, "cd9660: RockRidge Extension\n");
502 isomp->iso_ftype = ISO_FTYPE_RRIP;
507 /* Decide whether to use the Joliet descriptor */
509 if (isomp->iso_ftype != ISO_FTYPE_RRIP && joliet_level) {
510 log(LOG_INFO, "cd9660: Joliet Extension (Level %d)\n", joliet_level);
511 rootp = (struct iso_directory_record *)
512 sup->root_directory_record;
513 bcopy (rootp, isomp->root, sizeof isomp->root);
514 isomp->root_extent = isonum_733 (rootp->extent);
515 isomp->root_size = isonum_733 (rootp->size);
516 isomp->joliet_level = joliet_level;
517 supbp->b_flags |= B_AGE;
525 vfs_add_vnodeops(mp, &cd9660_vnode_vops, &mp->mnt_vn_norm_ops);
526 vfs_add_vnodeops(mp, &cd9660_spec_vops, &mp->mnt_vn_spec_ops);
527 vfs_add_vnodeops(mp, &cd9660_fifo_vops, &mp->mnt_vn_fifo_ops);
531 dev->si_mountpoint = NULL;
539 VOP_CLOSE(devvp, FREAD);
541 kfree((caddr_t)isomp, M_ISOFSMNT);
542 mp->mnt_data = (qaddr_t)0;
548 * unmount system call
551 cd9660_unmount(struct mount *mp, int mntflags)
553 struct iso_mnt *isomp;
554 int error, flags = 0;
556 if (mntflags & MNT_FORCE)
563 if ((error = vflush(mp, 0, flags)))
566 isomp = VFSTOISOFS(mp);
568 if (isomp->im_flags & ISOFSMNT_KICONV && cd9660_iconv) {
570 cd9660_iconv->close(isomp->im_d2l);
572 cd9660_iconv->close(isomp->im_l2d);
575 isomp->im_devvp->v_rdev->si_mountpoint = NULL;
576 error = VOP_CLOSE(isomp->im_devvp, FREAD);
577 vrele(isomp->im_devvp);
578 kfree((caddr_t)isomp, M_ISOFSMNT);
579 mp->mnt_data = (qaddr_t)0;
580 mp->mnt_flag &= ~MNT_LOCAL;
585 * Return root of a filesystem
588 cd9660_root(struct mount *mp, struct vnode **vpp)
590 struct iso_mnt *imp = VFSTOISOFS(mp);
591 struct iso_directory_record *dp =
592 (struct iso_directory_record *)imp->root;
593 ino_t ino = isodirino(dp, imp);
596 * With RRIP we must use the `.' entry of the root directory.
597 * Simply tell vget, that it's a relocated directory.
599 return (cd9660_vget_internal(mp, ino, vpp,
600 imp->iso_ftype == ISO_FTYPE_RRIP, dp));
604 * Get file system statistics.
607 cd9660_statfs(struct mount *mp, struct statfs *sbp, struct ucred *cred)
609 struct iso_mnt *isomp;
611 isomp = VFSTOISOFS(mp);
613 sbp->f_bsize = isomp->logical_block_size;
614 sbp->f_iosize = sbp->f_bsize; /* XXX */
615 sbp->f_blocks = isomp->volume_space_size;
616 sbp->f_bfree = 0; /* total free blocks */
617 sbp->f_bavail = 0; /* blocks free for non superuser */
618 sbp->f_files = 0; /* total files */
619 sbp->f_ffree = 0; /* free file nodes */
620 if (sbp != &mp->mnt_stat) {
621 sbp->f_type = mp->mnt_vfc->vfc_typenum;
622 bcopy(mp->mnt_stat.f_mntfromname, sbp->f_mntfromname, MNAMELEN);
628 * File handle to vnode
630 * Have to be really careful about stale file handles:
631 * - check that the inode number is in range
632 * - call iget() to get the locked inode
633 * - check for an unallocated inode (i_mode == 0)
634 * - check that the generation number matches
646 cd9660_fhtovp(struct mount *mp, struct vnode *rootvp,
647 struct fid *fhp, struct vnode **vpp)
649 struct ifid *ifhp = (struct ifid *)fhp;
655 kprintf("fhtovp: ino %d, start %ld\n",
656 ifhp->ifid_ino, ifhp->ifid_start);
659 if ((error = VFS_VGET(mp, NULL, ifhp->ifid_ino, &nvp)) != 0) {
664 if (ip->inode.iso_mode == 0) {
674 cd9660_checkexp(struct mount *mp, struct sockaddr *nam, int *exflagsp,
675 struct ucred **credanonp)
680 imp = VFSTOISOFS(mp);
683 * Get the export permission structure for this <mp, client> tuple.
685 np = vfs_export_lookup(mp, &imp->im_export, nam);
689 *exflagsp = np->netc_exflags;
690 *credanonp = &np->netc_anon;
695 cd9660_vget(struct mount *mp, struct vnode *dvp, ino_t ino, struct vnode **vpp)
700 * It would be nice if we didn't always set the `relocated' flag
701 * and force the extra read, but I don't want to think about fixing
704 return (cd9660_vget_internal(mp, ino, vpp,
706 VFSTOISOFS(mp)->iso_ftype == ISO_FTYPE_RRIP,
714 cd9660_vget_internal(struct mount *mp, ino_t ino, struct vnode **vpp,
715 int relocated, struct iso_directory_record *isodir)
724 imp = VFSTOISOFS(mp);
727 if ((*vpp = cd9660_ihashget(dev, ino)) != NULLVP)
730 /* Allocate a new vnode/iso_node. */
731 error = getnewvnode(VT_ISOFS, mp, &vp, 0, 0);
736 ip = kmalloc(sizeof(struct iso_node), M_ISOFSNODE, M_WAITOK | M_ZERO);
742 * Insert it into the inode hash table and check for a collision.
743 * If a collision occurs, throw away the vnode and try again.
745 if (cd9660_ihashins(ip) != 0) {
746 kprintf("debug: cd9660 ihashins collision, retrying\n");
748 kfree(ip, M_ISOFSNODE);
753 if (isodir == NULL) {
756 lbn = lblkno(imp, ino);
757 if (lbn >= imp->volume_space_size) {
759 kprintf("fhtovp: lbn exceed volume space %d\n", lbn);
763 off = blkoff(imp, ino);
764 if (off + ISO_DIRECTORY_RECORD_SIZE > imp->logical_block_size) {
766 kprintf("fhtovp: crosses block boundary %d\n",
767 off + ISO_DIRECTORY_RECORD_SIZE);
771 error = bread(imp->im_devvp,
773 imp->logical_block_size, &bp);
777 kprintf("fhtovp: bread error %d\n",error);
780 isodir = (struct iso_directory_record *)(bp->b_data + off);
782 if (off + isonum_711(isodir->length) >
783 imp->logical_block_size) {
787 kprintf("fhtovp: directory crosses block boundary %d[off=%d/len=%d]\n",
788 off +isonum_711(isodir->length), off,
789 isonum_711(isodir->length));
794 if (isonum_733(isodir->extent) +
795 isonum_711(isodir->ext_attr_length) != ifhp->ifid_start) {
798 kprintf("fhtovp: file start miss %d vs %d\n",
799 isonum_733(isodir->extent) + isonum_711(isodir->ext_attr_length),
808 ip->i_devvp = imp->im_devvp;
813 * On relocated directories we must
814 * read the `.' entry out of a dir.
816 ip->iso_start = ino >> imp->im_bshift;
819 if ((error = cd9660_devblkatoff(vp, (off_t)0, NULL, &bp)) != 0) {
823 isodir = (struct iso_directory_record *)bp->b_data;
826 ip->iso_extent = isonum_733(isodir->extent);
827 ip->i_size = isonum_733(isodir->size);
828 ip->iso_start = isonum_711(isodir->ext_attr_length) + ip->iso_extent;
831 * Setup time stamp, attribute
834 switch (imp->iso_ftype) {
835 default: /* ISO_FTYPE_9660 */
839 if ((imp->im_flags & ISOFSMNT_EXTATT)
840 && (off = isonum_711(isodir->ext_attr_length)))
841 cd9660_devblkatoff(vp, (off_t)-(off << imp->im_bshift), NULL,
845 cd9660_defattr(isodir, ip, bp2, ISO_FTYPE_9660);
846 cd9660_deftstamp(isodir, ip, bp2, ISO_FTYPE_9660);
852 cd9660_rrip_analyze(isodir, ip, imp);
860 * Initialize the associated vnode
862 vp->v_type = IFTOVT(ip->inode.iso_mode);
864 switch (vp->v_type) {
866 vp->v_ops = &mp->mnt_vn_fifo_ops;
870 vp->v_ops = &mp->mnt_vn_spec_ops;
871 addaliasu(vp, umajor(ip->inode.iso_rdev),
872 uminor(ip->inode.iso_rdev));
876 vinitvmio(vp, ip->i_size, PAGE_SIZE, -1);
882 if (ip->iso_extent == imp->root_extent)
883 vsetflags(vp, VROOT);
886 * Return the locked and refd vp
893 * Vnode pointer to File handle
897 cd9660_vptofh(struct vnode *vp, struct fid *fhp)
899 struct iso_node *ip = VTOI(vp);
902 ifhp = (struct ifid *)fhp;
903 ifhp->ifid_len = sizeof(struct ifid);
905 ifhp->ifid_ino = ip->i_number;
906 ifhp->ifid_start = ip->iso_start;
909 kprintf("vptofh: ino %d, start %ld\n",
910 ifhp->ifid_ino,ifhp->ifid_start);