12303 nfs/nfs4_drc.h: No such file or directory

Review Request #2516 — Created Feb. 12, 2020 and submitted

citrus
illumos-gate
master
12303
ba24e62...
general

12303 nfs/nfs4_drc.h: No such file or directory



vgusev
  1. Ship It!
  2. 
      
marcel
  1. Did you tried simply remove the nfs4_drc.h include from nfs4.h instead of shipping nfs4_drc.h? Maybe you'll need to add something like typedef struct rfs4_drc rfs4_drc_t; to nfs4.h to make everything compilable again, but other that that it should work. I do not think there is something valuable in nfs4_drc.h that justifies its shipment.

    1. If this works w/o breaking lsof, do this instead.

    2. NOTE: Testing for this would involve before/after disassemblies on the nfssrv module.

    3. Simple wsdiff build should be enough...

    4. Andy, Couldy you try this change ?

      diff --git a/usr/src/uts/common/nfs/nfs4.h b/usr/src/uts/common/nfs/nfs4.h
      index ce09473f95..0454f44dab 100644
      --- a/usr/src/uts/common/nfs/nfs4.h
      +++ b/usr/src/uts/common/nfs/nfs4.h
      @@ -40,7 +40,6 @@

      #ifdef _KERNEL
      #include <nfs/nfs4_kprot.h>
      -#include <nfs/nfs4_drc.h>
      #include <sys/nvpair.h>
      #else
      #include <rpcsvc/nfs4_prot.h>
      @@ -807,7 +806,7 @@ typedef struct nfs4_srv {
      /
      rfs4_dss_path_t
      dss_pathlist;
      / Duplicate request cache /
      - rfs4_drc_t nfs4_drc;
      + struct rfs4_drc
      nfs4_drc;
      / nfsv4 server start time /
      time_t rfs4_start_time;
      / Used to serialize lookups of clientids /

    5. Sorry, this one:

      diff --git a/usr/src/uts/common/nfs/nfs4.h b/usr/src/uts/common/nfs/nfs4.h
      index ce09473f95..0454f44dab 100644
      --- a/usr/src/uts/common/nfs/nfs4.h
      +++ b/usr/src/uts/common/nfs/nfs4.h
      @@ -40,7 +40,6 @@
      
       #ifdef _KERNEL
       #include <nfs/nfs4_kprot.h>
      -#include <nfs/nfs4_drc.h>
       #include <sys/nvpair.h>
       #else
       #include <rpcsvc/nfs4_prot.h>
      @@ -807,7 +806,7 @@ typedef struct nfs4_srv {
               */
              rfs4_dss_path_t *dss_pathlist;
              /* Duplicate request cache */
      -       rfs4_drc_t      *nfs4_drc;
      +       struct rfs4_drc *nfs4_drc;
              /* nfsv4 server start time */
              time_t rfs4_start_time;
              /* Used to serialize lookups of clientids */
      
    6. It should fix compilation problem.

  2. 
      
citrus
citrus
marcel
  1. Ship It!
  2. 
      
vgusev
  1. Ship It!
  2. 
      
citrus
Review request changed

Status: Closed (submitted)

Loading...