summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordrochner <drochner@NetBSD.org>2012-10-19 17:09:06 +0000
committerdrochner <drochner@NetBSD.org>2012-10-19 17:09:06 +0000
commit8feb2e9e9cc5d2370fbfecead7298554ce2ac952 (patch)
treed6e4e4794437f8aea6e5790fb05fc34425ff0f16 /include
parent0b5f293a141d215016838bb5f18cc625fbdb80c5 (diff)
Implement experimental support to pass notifications that a file
was deleted from the filesystem to the disk driver, commonly known as "discard" or "trim". fs/driver support is in ffs and ata wd for now. This is what was posted here: http://mail-index.netbsd.org/tech-kern/2012/02/28/msg012813.html with minor cleanup, and the global switch replaced by a mount option.
Diffstat (limited to 'include')
-rw-r--r--include/mntopts.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/mntopts.h b/include/mntopts.h
index fd789833e16..707bb8c27ff 100644
--- a/include/mntopts.h
+++ b/include/mntopts.h
@@ -1,4 +1,4 @@
-/* $NetBSD: mntopts.h,v 1.14 2011/06/17 14:23:50 manu Exp $ */
+/* $NetBSD: mntopts.h,v 1.15 2012/10/19 17:09:06 drochner Exp $ */
/*-
* Copyright (c) 1994
@@ -58,6 +58,7 @@ struct mntopt {
#define MOPT_LOG { "log", 0, MNT_LOG, 0 }
#define MOPT_IGNORE { "hidden", 0, MNT_IGNORE, 0 }
#define MOPT_EXTATTR { "extattr", 0, MNT_EXTATTR, 0 }
+#define MOPT_DISCARD { "discard", 0, MNT_DISCARD, 0 }
/* Control flags. */
#define MOPT_FORCE { "force", 0, MNT_FORCE, 0 }