1/*
2 * modified for EXT2FS support in Lites 1.1
3 *
4 * Aug 1995, Godmar Back (gback@cs.utah.edu)
5 * University of Utah, Department of Computer Science
6 */
7/*
8 * Copyright (c) 1982, 1986, 1989, 1993
--- 29 unchanged lines hidden (view full) ---
38 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
39 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
40 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
41 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
42 * SUCH DAMAGE.
43 *
44 * @(#)ufs_vnops.c 8.7 (Berkeley) 2/3/94
45 * @(#)ufs_vnops.c 8.27 (Berkeley) 5/27/95
46 * $FreeBSD: head/sys/gnu/fs/ext2fs/ext2_vnops.c 96877 2002-05-18 19:12:38Z iedowse $
47 */
48
49#include "opt_suiddir.h"
50
51#include <sys/param.h>
52#include <sys/systm.h>
53#include <sys/resourcevar.h>
54#include <sys/kernel.h>
--- 1496 unchanged lines hidden (view full) ---
1551 struct vop_strategy_args /* {
1552 struct vnode *a_vp;
1553 struct buf *a_bp;
1554 } */ *ap;
1555{
1556 struct buf *bp = ap->a_bp;
1557 struct vnode *vp = ap->a_vp;
1558 struct inode *ip;
1559 int32_t blkno;
1560 int error;
1561
1562 ip = VTOI(vp);
1563 if (vp->v_type == VBLK || vp->v_type == VCHR)
1564 panic("ext2_strategy: spec");
1565 if (bp->b_blkno == bp->b_lblkno) {
1566 error = ext2_bmaparray(vp, bp->b_lblkno, &blkno, NULL, NULL);
1567 bp->b_blkno = blkno;
--- 495 unchanged lines hidden ---
2 * modified for EXT2FS support in Lites 1.1
3 *
4 * Aug 1995, Godmar Back (gback@cs.utah.edu)
5 * University of Utah, Department of Computer Science
6 */
7/*
8 * Copyright (c) 1982, 1986, 1989, 1993
--- 29 unchanged lines hidden (view full) ---
38 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
39 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
40 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
41 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
42 * SUCH DAMAGE.
43 *
44 * @(#)ufs_vnops.c 8.7 (Berkeley) 2/3/94
45 * @(#)ufs_vnops.c 8.27 (Berkeley) 5/27/95
46 * $FreeBSD: head/sys/gnu/fs/ext2fs/ext2_vnops.c 96877 2002-05-18 19:12:38Z iedowse $
47 */
48
49#include "opt_suiddir.h"
50
51#include <sys/param.h>
52#include <sys/systm.h>
53#include <sys/resourcevar.h>
54#include <sys/kernel.h>
--- 1496 unchanged lines hidden (view full) ---
1551 struct vop_strategy_args /* {
1552 struct vnode *a_vp;
1553 struct buf *a_bp;
1554 } */ *ap;
1555{
1556 struct buf *bp = ap->a_bp;
1557 struct vnode *vp = ap->a_vp;
1558 struct inode *ip;
1559 int32_t blkno;
1560 int error;
1561
1562 ip = VTOI(vp);
1563 if (vp->v_type == VBLK || vp->v_type == VCHR)
1564 panic("ext2_strategy: spec");
1565 if (bp->b_blkno == bp->b_lblkno) {
1566 error = ext2_bmaparray(vp, bp->b_lblkno, &blkno, NULL, NULL);
1567 bp->b_blkno = blkno;
--- 495 unchanged lines hidden ---