Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/uebayasi-xip]: src Remove the "xip" option from mount_ffs(8) for simplic...



details:   https://anonhg.NetBSD.org/src/rev/d4459029af59
branches:  uebayasi-xip
changeset: 751718:d4459029af59
user:      uebayasi <uebayasi%NetBSD.org@localhost>
date:      Fri May 28 09:14:55 2010 +0000

description:
Remove the "xip" option from mount_ffs(8) for simplicity.

diffstat:

 sbin/mount/mount.8         |   4 +---
 sbin/mount_ffs/mount_ffs.c |   5 ++---
 sys/sys/fstypes.h          |  12 +++++-------
 sys/ufs/ffs/ffs_vfsops.c   |  29 ++++++++++++++---------------
 4 files changed, 22 insertions(+), 28 deletions(-)

diffs (152 lines):

diff -r afa4d19f2cda -r d4459029af59 sbin/mount/mount.8
--- a/sbin/mount/mount.8        Fri May 28 09:13:37 2010 +0000
+++ b/sbin/mount/mount.8        Fri May 28 09:14:55 2010 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: mount.8,v 1.69.2.1 2010/02/11 05:36:16 uebayasi Exp $
+.\"    $NetBSD: mount.8,v 1.69.2.2 2010/05/28 09:14:55 uebayasi Exp $
 .\"
 .\" Copyright (c) 1980, 1989, 1991, 1993
 .\"    The Regents of the University of California.  All rights reserved.
@@ -299,8 +299,6 @@
 The same as
 .Fl u ;
 indicate that the status of an already mounted file system should be changed.
-.It Cm xip
-Enable eXecute-In-Place if the block device supports it.
 .El
 .Pp
 Any additional options specific to a given file system type (see the
diff -r afa4d19f2cda -r d4459029af59 sbin/mount_ffs/mount_ffs.c
--- a/sbin/mount_ffs/mount_ffs.c        Fri May 28 09:13:37 2010 +0000
+++ b/sbin/mount_ffs/mount_ffs.c        Fri May 28 09:14:55 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mount_ffs.c,v 1.25.10.1 2010/02/11 05:38:20 uebayasi Exp $     */
+/*     $NetBSD: mount_ffs.c,v 1.25.10.2 2010/05/28 09:14:55 uebayasi Exp $     */
 
 /*-
  * Copyright (c) 1993, 1994
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)mount_ufs.c        8.4 (Berkeley) 4/26/95";
 #else
-__RCSID("$NetBSD: mount_ffs.c,v 1.25.10.1 2010/02/11 05:38:20 uebayasi Exp $");
+__RCSID("$NetBSD: mount_ffs.c,v 1.25.10.2 2010/05/28 09:14:55 uebayasi Exp $");
 #endif
 #endif /* not lint */
 
@@ -74,7 +74,6 @@
        MOPT_SOFTDEP,
        MOPT_LOG,
        MOPT_GETARGS,
-       MOPT_XIP,
        MOPT_NULL,
 };
 
diff -r afa4d19f2cda -r d4459029af59 sys/sys/fstypes.h
--- a/sys/sys/fstypes.h Fri May 28 09:13:37 2010 +0000
+++ b/sys/sys/fstypes.h Fri May 28 09:14:55 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fstypes.h,v 1.26.14.2 2010/02/23 06:58:06 uebayasi Exp $       */
+/*     $NetBSD: fstypes.h,v 1.26.14.3 2010/05/28 09:14:55 uebayasi Exp $       */
 
 /*
  * Copyright (c) 1989, 1991, 1993
@@ -86,6 +86,7 @@
 #define        __MNT_UNUSED1   0x00020000
 #define        __MNT_UNUSED2   0x00200000
 #define        __MNT_UNUSED3   0x00800000
+#define        __MNT_UNUSED4   0x01000000
 
 #define        MNT_RDONLY      0x00000001      /* read only filesystem */
 #define        MNT_SYNCHRONOUS 0x00000002      /* file system written synchronously */
@@ -96,7 +97,6 @@
 #define        MNT_ASYNC       0x00000040      /* file system written asynchronously */
 #define        MNT_NOCOREDUMP  0x00008000      /* don't write core dumps to this FS */
 #define        MNT_IGNORE      0x00100000      /* don't show entry in df */
-#define        MNT_XIP         0x01000000      /* eXecute-In-Place */
 #define        MNT_LOG         0x02000000      /* Use logging */
 #define        MNT_NOATIME     0x04000000      /* Never update access times in fs */
 #define        MNT_SYMPERM     0x20000000      /* recognize symlink permission */
@@ -113,12 +113,11 @@
        { MNT_ASYNC,            0,      "asynchronous" }, \
        { MNT_NOCOREDUMP,       0,      "nocoredump" }, \
        { MNT_IGNORE,           0,      "hidden" }, \
-       { MNT_XIP,              0,      "xip" }, \
-       { MNT_LOG,              0,      "log" }, \
        { MNT_NOATIME,          0,      "noatime" }, \
        { MNT_SYMPERM,          0,      "symperm" }, \
        { MNT_NODEVMTIME,       0,      "nodevmtime" }, \
        { MNT_SOFTDEP,          0,      "soft dependencies" }, \
+       { MNT_LOG,              0,      "log" },
 
 /*
  * exported mount flags.
@@ -179,8 +178,7 @@
      MNT_LOCAL | \
      MNT_QUOTA | \
      MNT_ROOTFS | \
-     MNT_LOG | \
-     MNT_XIP)
+     MNT_LOG)
 
 /*
  * External filesystem control flags.
@@ -229,7 +227,7 @@
        "\34MNT_EXNORESPORT" \
        "\33MNT_NOATIME" \
        "\32MNT_LOG" \
-       "\31MNT_XIP" \
+       "\31MNT_UNUSED" \
        "\30MNT_UNUSED" \
        "\27MNT_GETARGS" \
        "\26MNT_UNUSED" \
diff -r afa4d19f2cda -r d4459029af59 sys/ufs/ffs/ffs_vfsops.c
--- a/sys/ufs/ffs/ffs_vfsops.c  Fri May 28 09:13:37 2010 +0000
+++ b/sys/ufs/ffs/ffs_vfsops.c  Fri May 28 09:14:55 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ffs_vfsops.c,v 1.257.2.5 2010/04/30 14:44:34 uebayasi Exp $    */
+/*     $NetBSD: ffs_vfsops.c,v 1.257.2.6 2010/05/28 09:14:55 uebayasi Exp $    */
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -61,7 +61,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ffs_vfsops.c,v 1.257.2.5 2010/04/30 14:44:34 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ffs_vfsops.c,v 1.257.2.6 2010/05/28 09:14:55 uebayasi Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_ffs.h"
@@ -1170,19 +1170,18 @@
        mp->mnt_flag |= MNT_LOCAL;
        mp->mnt_iflag |= IMNT_MPSAFE;
 #ifdef XIP
-       void *physseg = 0;
-       if (mp->mnt_flag & MNT_XIP) {
-               if ((mp->mnt_flag & MNT_RDONLY) == 0)
-                       printf("XIP needs read-only mount\n");
-               else {
-                       if ((VOP_IOCTL(devvp, DIOCGPHYSADDR, &physseg, FREAD,
-                           cred) == 0) &&
-                           physseg != NULL) {
-                               mp->mnt_iflag |= IMNT_XIP;
-                               devvp->v_physseg = physseg;
-                       } else
-                               printf("device doesn't support DIOCGPHYSADDR\n");
-               }
+       if ((mp->mnt_flag & MNT_RDONLY) == 0)
+               printf("XIP needs read-only mount\n");
+       else {
+               void *physseg = NULL;
+
+               if ((VOP_IOCTL(devvp, DIOCGPHYSADDR, &physseg, FREAD,
+                   cred) == 0) &&
+                   physseg != NULL) {
+                       mp->mnt_iflag |= IMNT_XIP;
+                       devvp->v_physseg = physseg;
+               } else
+                       printf("device doesn't support DIOCGPHYSADDR\n");
        }
 #endif
 #ifdef FFS_EI



Home | Main Index | Thread Index | Old Index