msdosfs_vfsops.c (ae620d4480a0559ab2135510e153a77ae5568c71) | msdosfs_vfsops.c (a8d43c90af5122ecff75b55fbaf6d5806674411b) |
---|---|
1/* $FreeBSD$ */ 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). --- 310 unchanged lines hidden (view full) --- 319 ronly = (mp->mnt_flag & MNT_RDONLY) != 0; 320 vn_lock(devvp, LK_EXCLUSIVE | LK_RETRY, td); 321 /* 322 * XXX Open the device with write access even if the filesystem 323 * is read-only: someone may remount it read-write later, and 324 * we don't VOP_OPEN the device again in that case. 325 */ 326#ifdef notyet | 1/* $FreeBSD$ */ 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). --- 310 unchanged lines hidden (view full) --- 319 ronly = (mp->mnt_flag & MNT_RDONLY) != 0; 320 vn_lock(devvp, LK_EXCLUSIVE | LK_RETRY, td); 321 /* 322 * XXX Open the device with write access even if the filesystem 323 * is read-only: someone may remount it read-write later, and 324 * we don't VOP_OPEN the device again in that case. 325 */ 326#ifdef notyet |
327 error = VOP_OPEN(devvp, ronly ? FREAD : FREAD|FWRITE, FSCRED, td); | 327 error = VOP_OPEN(devvp, ronly ? FREAD : FREAD|FWRITE, FSCRED, td, -1); |
328#else | 328#else |
329 error = VOP_OPEN(devvp, FREAD|FWRITE, FSCRED, td); | 329 error = VOP_OPEN(devvp, FREAD|FWRITE, FSCRED, td, -1); |
330#endif 331 VOP_UNLOCK(devvp, 0, td); 332 if (error) 333 return (error); 334 335 bp = NULL; /* both used in error_exit */ 336 pmp = NULL; 337 --- 528 unchanged lines hidden --- | 330#endif 331 VOP_UNLOCK(devvp, 0, td); 332 if (error) 333 return (error); 334 335 bp = NULL; /* both used in error_exit */ 336 pmp = NULL; 337 --- 528 unchanged lines hidden --- |