vfs_extattr.c (c9ae46b1adcc5be5294f70064f00a016cfbbc355) vfs_extattr.c (1469eec81e4a8c70124118a552ab06620332a6bd)
1/*
2 * Copyright (c) 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

--- 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 * @(#)vfs_syscalls.c 8.13 (Berkeley) 4/15/94
1/*
2 * Copyright (c) 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

--- 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 * @(#)vfs_syscalls.c 8.13 (Berkeley) 4/15/94
39 * $Id: vfs_syscalls.c,v 1.22 1995/05/02 08:44:31 davidg Exp $
39 * $Id: vfs_syscalls.c,v 1.23 1995/05/02 09:06:04 davidg Exp $
40 */
41
42#include <sys/param.h>
43#include <sys/systm.h>
44#include <sys/namei.h>
45#include <sys/filedesc.h>
46#include <sys/kernel.h>
47#include <sys/file.h>

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

165 */
166 if (uap->flags & MNT_RDONLY)
167 mp->mnt_flag |= MNT_RDONLY;
168 else if (mp->mnt_flag & MNT_RDONLY)
169 mp->mnt_flag |= MNT_WANTRDWR;
170 mp->mnt_flag &=~ (MNT_NOSUID | MNT_NOEXEC | MNT_NODEV |
171 MNT_SYNCHRONOUS | MNT_UNION | MNT_ASYNC);
172 mp->mnt_flag |= uap->flags & (MNT_NOSUID | MNT_NOEXEC | MNT_NODEV |
40 */
41
42#include <sys/param.h>
43#include <sys/systm.h>
44#include <sys/namei.h>
45#include <sys/filedesc.h>
46#include <sys/kernel.h>
47#include <sys/file.h>

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

165 */
166 if (uap->flags & MNT_RDONLY)
167 mp->mnt_flag |= MNT_RDONLY;
168 else if (mp->mnt_flag & MNT_RDONLY)
169 mp->mnt_flag |= MNT_WANTRDWR;
170 mp->mnt_flag &=~ (MNT_NOSUID | MNT_NOEXEC | MNT_NODEV |
171 MNT_SYNCHRONOUS | MNT_UNION | MNT_ASYNC);
172 mp->mnt_flag |= uap->flags & (MNT_NOSUID | MNT_NOEXEC | MNT_NODEV |
173 MNT_SYNCHRONOUS | MNT_UNION | MNT_ASYNC);
173 MNT_SYNCHRONOUS | MNT_UNION | MNT_ASYNC | MNT_FORCE);
174 /*
175 * Mount the filesystem.
176 */
177 error = VFS_MOUNT(mp, uap->path, uap->data, &nd, p);
178 if (mp->mnt_flag & MNT_UPDATE) {
179 vrele(vp);
180 if (mp->mnt_flag & MNT_WANTRDWR)
181 mp->mnt_flag &= ~MNT_RDONLY;

--- 2069 unchanged lines hidden ---
174 /*
175 * Mount the filesystem.
176 */
177 error = VFS_MOUNT(mp, uap->path, uap->data, &nd, p);
178 if (mp->mnt_flag & MNT_UPDATE) {
179 vrele(vp);
180 if (mp->mnt_flag & MNT_WANTRDWR)
181 mp->mnt_flag &= ~MNT_RDONLY;

--- 2069 unchanged lines hidden ---