msdosfs_vfsops.c (55188) | msdosfs_vfsops.c (55756) |
---|---|
1/* $FreeBSD: head/sys/fs/msdosfs/msdosfs_vfsops.c 55188 1999-12-28 15:27:39Z bp $ */ | 1/* $FreeBSD: head/sys/fs/msdosfs/msdosfs_vfsops.c 55756 2000-01-10 12:04:27Z phk $ */ |
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 * --- 276 unchanged lines hidden (view full) --- 286 */ 287 NDINIT(ndp, LOOKUP, FOLLOW, UIO_USERSPACE, args.fspec, p); 288 error = namei(ndp); 289 if (error) 290 return (error); 291 devvp = ndp->ni_vp; 292 NDFREE(ndp, NDF_ONLY_PNBUF); 293 | 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 * --- 276 unchanged lines hidden (view full) --- 286 */ 287 NDINIT(ndp, LOOKUP, FOLLOW, UIO_USERSPACE, args.fspec, p); 288 error = namei(ndp); 289 if (error) 290 return (error); 291 devvp = ndp->ni_vp; 292 NDFREE(ndp, NDF_ONLY_PNBUF); 293 |
294 if (!vn_isdisk(devvp)) { | 294 if (!vn_isdisk(devvp, &error)) { |
295 vrele(devvp); | 295 vrele(devvp); |
296 return (ENOTBLK); | 296 return (error); |
297 } 298 /* 299 * If mount by non-root, then verify that user has necessary 300 * permissions on the device. 301 */ 302 if (p->p_ucred->cr_uid != 0) { 303 accessmode = VREAD; 304 if ((mp->mnt_flag & MNT_RDONLY) == 0) --- 699 unchanged lines hidden --- | 297 } 298 /* 299 * If mount by non-root, then verify that user has necessary 300 * permissions on the device. 301 */ 302 if (p->p_ucred->cr_uid != 0) { 303 accessmode = VREAD; 304 if ((mp->mnt_flag & MNT_RDONLY) == 0) --- 699 unchanged lines hidden --- |