1/*-
2 * Copyright (c) 1994
3 * The Regents of the University of California. All rights reserved.
4 *
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).
--- 22 unchanged lines hidden (view full) ---
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
36 * SUCH DAMAGE.
37 *
38 * @(#)cd9660_vnops.c 8.19 (Berkeley) 5/27/95
39 * $Id: cd9660_vnops.c,v 1.51 1997/12/27 02:56:20 bde Exp $
40 */
41
42#include <sys/param.h>
43#include <sys/systm.h>
44#include <sys/namei.h>
45#include <sys/kernel.h>
46#include <sys/stat.h>
47#include <sys/buf.h>
--- 674 unchanged lines hidden (view full) ---
722
723/*
724 * Calculate the logical to physical mapping if not done already,
725 * then call the device strategy routine.
726 */
727static int
728cd9660_strategy(ap)
729 struct vop_strategy_args /* {
730 struct buf *a_bp;
731 } */ *ap;
732{
733 register struct buf *bp = ap->a_bp;
734 register struct vnode *vp = bp->b_vp;
735 register struct iso_node *ip;
736 int error;
737
--- 12 unchanged lines hidden (view full) ---
750 clrbuf(bp);
751 }
752 if ((long)bp->b_blkno == -1) {
753 biodone(bp);
754 return (0);
755 }
756 vp = ip->i_devvp;
757 bp->b_dev = vp->v_rdev;
758 VOCALL (vp->v_op, VOFFSET(vop_strategy), ap);
759 return (0);
760}
761
762/*
763 * Print out the contents of an inode.
764 */
765static int
766cd9660_print(ap)
--- 148 unchanged lines hidden ---
2 * Copyright (c) 1994
3 * The Regents of the University of California. All rights reserved.
4 *
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).
--- 22 unchanged lines hidden (view full) ---
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
36 * SUCH DAMAGE.
37 *
38 * @(#)cd9660_vnops.c 8.19 (Berkeley) 5/27/95
39 * $Id: cd9660_vnops.c,v 1.51 1997/12/27 02:56:20 bde Exp $
40 */
41
42#include <sys/param.h>
43#include <sys/systm.h>
44#include <sys/namei.h>
45#include <sys/kernel.h>
46#include <sys/stat.h>
47#include <sys/buf.h>
--- 674 unchanged lines hidden (view full) ---
722
723/*
724 * Calculate the logical to physical mapping if not done already,
725 * then call the device strategy routine.
726 */
727static int
728cd9660_strategy(ap)
729 struct vop_strategy_args /* {
730 struct buf *a_bp;
731 } */ *ap;
732{
733 register struct buf *bp = ap->a_bp;
734 register struct vnode *vp = bp->b_vp;
735 register struct iso_node *ip;
736 int error;
737
--- 12 unchanged lines hidden (view full) ---
750 clrbuf(bp);
751 }
752 if ((long)bp->b_blkno == -1) {
753 biodone(bp);
754 return (0);
755 }
756 vp = ip->i_devvp;
757 bp->b_dev = vp->v_rdev;
758 VOCALL (vp->v_op, VOFFSET(vop_strategy), ap);
759 return (0);
760}
761
762/*
763 * Print out the contents of an inode.
764 */
765static int
766cd9660_print(ap)
--- 148 unchanged lines hidden ---