Deleted Added
full compact
msdosfs_vfsops.c (46676) msdosfs_vfsops.c (47640)
1/* $Id: msdosfs_vfsops.c,v 1.43 1999/05/07 10:11:10 phk Exp $ */
1/* $Id: msdosfs_vfsops.c,v 1.44 1999/05/08 06:40:00 phk Exp $ */
2/* $NetBSD: msdosfs_vfsops.c,v 1.51 1997/11/17 15:36:58 ws Exp $ */
3
4/*-
5 * Copyright (C) 1994, 1995, 1997 Wolfgang Solfrank.
6 * Copyright (C) 1994, 1995, 1997 TooLs GmbH.
7 * All rights reserved.
8 * Original code by Paul Popelka (paulp@uts.amdahl.com) (see below).
9 *

--- 283 unchanged lines hidden (view full) ---

293 if (error)
294 return (error);
295 devvp = ndp->ni_vp;
296
297 if (devvp->v_type != VBLK) {
298 vrele(devvp);
299 return (ENOTBLK);
300 }
2/* $NetBSD: msdosfs_vfsops.c,v 1.51 1997/11/17 15:36:58 ws Exp $ */
3
4/*-
5 * Copyright (C) 1994, 1995, 1997 Wolfgang Solfrank.
6 * Copyright (C) 1994, 1995, 1997 TooLs GmbH.
7 * All rights reserved.
8 * Original code by Paul Popelka (paulp@uts.amdahl.com) (see below).
9 *

--- 283 unchanged lines hidden (view full) ---

293 if (error)
294 return (error);
295 devvp = ndp->ni_vp;
296
297 if (devvp->v_type != VBLK) {
298 vrele(devvp);
299 return (ENOTBLK);
300 }
301 if (major(devvp->v_rdev) >= nblkdev ||
302 bdevsw(devvp->v_rdev) == NULL) {
301 if (bdevsw(devvp->v_rdev) == NULL) {
303 vrele(devvp);
304 return (ENXIO);
305 }
306 /*
307 * If mount by non-root, then verify that user has necessary
308 * permissions on the device.
309 */
310 if (p->p_ucred->cr_uid != 0) {

--- 708 unchanged lines hidden ---
302 vrele(devvp);
303 return (ENXIO);
304 }
305 /*
306 * If mount by non-root, then verify that user has necessary
307 * permissions on the device.
308 */
309 if (p->p_ucred->cr_uid != 0) {

--- 708 unchanged lines hidden ---