[fedfs-utils] [PATCH 0/8] path_array support for fedfs-utils 0.8

Chuck Lever chuck.lever at oracle.com
Wed Dec 21 14:51:15 PST 2011


This series introduces an API change to libnsdb / libpath functions.

We want to allow more flexibility in how pathnames are spelled (for
example, not requiring that the component separate character always
be "/").  So, I'm switching the internal interfaces to use an array
of components rather than a flat C string when specifying pathnames
that can appear in GETATTR(fs_locations4) replies or in FSLs.

Review period ends EOB Wednesday, December 28, 2011.  I'll be out of
the office next week, so these may be committed after the New Year.

At the moment there are just two more series to commit before we
have a feature-complete 0.8 release candidate.

---

Chuck Lever (8):
      fedfsd: Use static functions in svc.c
      fedfsd: FedFsPathName components are not NUL-terminated
      libnsdb: Remove unused FedFsPathName helper utilities
      Use arrays to represent pathnames in struct fedfs_fsl
      libnsdb: Use path array for fedfsNfsPath attribute in nsdb_update_fsl_s()
      fedfsc: Use new path_array APIs in the FedFS ADMIN clients
      libnsdb: Introduce new path_array utility functions
      libpath: Merge libpath.a into libnsdb.a


 configure.ac                          |    1 
 src/Makefile.am                       |    2 
 src/fedfsc/Makefile.am                |    1 
 src/fedfsc/fedfs-create-junction.c    |   12 -
 src/fedfsc/fedfs-create-replication.c |   12 -
 src/fedfsc/fedfs-delete-junction.c    |   12 -
 src/fedfsc/fedfs-delete-replication.c |   12 -
 src/fedfsc/fedfs-lookup-junction.c    |   31 +
 src/fedfsc/fedfs-lookup-replication.c |   31 +
 src/fedfsd/Makefile.am                |    1 
 src/fedfsd/svc.c                      |   36 +-
 src/include/Makefile.am               |    2 
 src/include/nsdb.h                    |   25 +
 src/include/path.h                    |   48 --
 src/libnsdb/Makefile.am               |    2 
 src/libnsdb/administrator.c           |   13 -
 src/libnsdb/fileserver.c              |    4 
 src/libnsdb/ldap.c                    |   25 +
 src/libnsdb/nsdb-internal.h           |    2 
 src/libnsdb/path.c                    |  725 +++++++++++++++++++++++++++++++++
 src/libpath/Makefile.am               |   35 --
 src/libpath/path.c                    |  534 ------------------------
 src/nsdbc/Makefile.am                 |    3 
 src/nsdbc/nsdb-create-fsl.c           |    7 
 src/nsdbc/nsdb-resolve-fsn.c          |    9 
 src/nsdbc/nsdb-update-fsl.c           |   13 +
 src/nsdbparams/Makefile.am            |    1 
 src/resolve-junction/Makefile.am      |    1 
 src/resolve-junction/main.c           |   10 
 29 files changed, 927 insertions(+), 683 deletions(-)
 delete mode 100644 src/include/path.h
 create mode 100644 src/libnsdb/path.c
 delete mode 100644 src/libpath/Makefile.am
 delete mode 100644 src/libpath/path.c

-- 
Signature



More information about the fedfs-utils-devel mailing list