Source-Changes-HG archive

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

[src/trunk]: src/sbin/swapctl Support 'dp' as mount option for 'sw' fstype, s...



details:   https://anonhg.NetBSD.org/src/rev/a4aa09b242ce
branches:  trunk
changeset: 533103:a4aa09b242ce
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Fri Jun 21 09:04:16 2002 +0000

description:
Support 'dp' as mount option for 'sw' fstype, so it DTRT for entries like:
        /dev/wd0b none swap sw,dp 0 0

diffstat:

 sbin/swapctl/swapctl.c |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 1cbdfc27acc0 -r a4aa09b242ce sbin/swapctl/swapctl.c
--- a/sbin/swapctl/swapctl.c    Fri Jun 21 08:20:09 2002 +0000
+++ b/sbin/swapctl/swapctl.c    Fri Jun 21 09:04:16 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: swapctl.c,v 1.19 2001/11/26 15:23:38 pooka Exp $       */
+/*     $NetBSD: swapctl.c,v 1.20 2002/06/21 09:04:16 jdolecek Exp $    */
 
 /*
  * Copyright (c) 1996, 1997, 1999 Matthew R. Green
@@ -448,6 +448,11 @@
 
                if (strcmp(fp->fs_type, "sw") != 0)
                        continue;
+
+               /* handle dp as mnt option */
+               if (strstr(fp->fs_mntops, "dp") && add)
+                       set_dumpdev(spec);
+
                isblk = 0;
 
                if ((s = strstr(fp->fs_mntops, PRIORITYEQ)) != NULL) {



Home | Main Index | Thread Index | Old Index