aboutsummaryrefslogtreecommitdiff
path: root/sys/fs
diff options
context:
space:
mode:
authorRick Macklem <rmacklem@FreeBSD.org>2017-09-28 23:05:08 +0000
committerRick Macklem <rmacklem@FreeBSD.org>2017-09-28 23:05:08 +0000
commit8dd62f2eaa062aaccb73525dffba60280dd90fc4 (patch)
tree2696481a1657a12c2057bba2d87cb61e27e2a878 /sys/fs
parentbe3d32ad6ee804b92cc9cb68af33ee764cc57518 (diff)
downloadsrc-8dd62f2eaa062aaccb73525dffba60280dd90fc4.tar.gz
src-8dd62f2eaa062aaccb73525dffba60280dd90fc4.zip
Add the NFS client state flag that enables Flexible File Layout.
This patch adds a NFSSTA_FLEXFILE flag that will be used to enable Flexible File Layout for the NFSv4.1 pNFS client. It is not yet used, but will be after a future commit adds Flex File Layout support.
Notes
Notes: svn path=/head/; revision=324091
Diffstat (limited to 'sys/fs')
-rw-r--r--sys/fs/nfs/nfsport.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/fs/nfs/nfsport.h b/sys/fs/nfs/nfsport.h
index f537372cd48f..ff4390bf7d97 100644
--- a/sys/fs/nfs/nfsport.h
+++ b/sys/fs/nfs/nfsport.h
@@ -896,6 +896,7 @@ int newnfs_realign(struct mbuf **, int);
#define NFSSTA_HASWRITEVERF 0x00040000 /* Has write verifier */
#define NFSSTA_GOTFSINFO 0x00100000 /* Got the fsinfo */
#define NFSSTA_OPENMODE 0x00200000 /* Must use correct open mode */
+#define NFSSTA_FLEXFILE 0x00800000 /* Use Flex File Layout */
#define NFSSTA_NOLAYOUTCOMMIT 0x04000000 /* Don't do LayoutCommit */
#define NFSSTA_SESSPERSIST 0x08000000 /* Has a persistent session */
#define NFSSTA_TIMEO 0x10000000 /* Experiencing a timeout */
@@ -926,6 +927,7 @@ int newnfs_realign(struct mbuf **, int);
#define NFSHASNOLAYOUTCOMMIT(n) ((n)->nm_state & NFSSTA_NOLAYOUTCOMMIT)
#define NFSHASSESSPERSIST(n) ((n)->nm_state & NFSSTA_SESSPERSIST)
#define NFSHASPNFS(n) ((n)->nm_state & NFSSTA_PNFS)
+#define NFSHASFLEXFILE(n) ((n)->nm_state & NFSSTA_FLEXFILE)
#define NFSHASOPENMODE(n) ((n)->nm_state & NFSSTA_OPENMODE)
#define NFSHASONEOPENOWN(n) (((n)->nm_flag & NFSMNT_ONEOPENOWN) != 0 && \
(n)->nm_minorvers > 0)