Author: rmacklem
Date: Thu Sep 28 23:05:08 2017
New Revision: 324091
URL: https://svnweb.freebsd.org/changeset/base/324091

Log:
  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.

Modified:
  head/sys/fs/nfs/nfsport.h

Modified: head/sys/fs/nfs/nfsport.h
==============================================================================
--- head/sys/fs/nfs/nfsport.h   Thu Sep 28 22:33:01 2017        (r324090)
+++ head/sys/fs/nfs/nfsport.h   Thu Sep 28 23:05:08 2017        (r324091)
@@ -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)
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to