Skip to content

Add mount option parsing facility to text-based mount.nfs

Chuck Lever linux-nfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7text-based mount.nfs: parse option strings into listsutils/mount/Makefile.am utils/mount/parse_opt.c utils/mount/parse_opt.h+478 -20 replies
2/7text-based mount.nfs: Use new parser to handle 'addr=' and 'clientaddr='utils/mount/stropts.c+55 -00 replies
3/7text-based mount.nfs: prepare for more complex error exit handlingutils/mount/stropts.c+21 -150 replies
4/7text-based mount.nfs: add parser init and destroy callsutils/mount/stropts.c+26 -00 replies
5/7text-based mount.nfs: start using new mount option parsing facilityutils/mount/stropts.c+3 -170 replies
6/7text-based mount.nfs: Clean up helper functions that are no longer usedutils/mount/stropts.c+0 -990 replies
7/7text-based mount.nfs: Fix mounthost= processingutils/mount/stropts.c+27 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/7] Add mount option parsing facility to text-based mount.nfs

Hi Neil-

Seven more patches for text-based mount.nfs.

I found that it is necessary to do some rather advanced lexical parsing of the mount option string in order to handle version/protocol fallback. So I've implemented a data structure that can handle the parsing requirements, and some wrapper logic to convert the mount option string to the new data structure and then convert it back to a string before calling mount(2).

This series introduces the new facility and makes use of it for existing text- based mount option processing (like adding "addr=" and so on). In subsequent patches I will make more use of the new facility.

Signature · 9 lines
corporate:    <chuck dot lever at oracle dot com>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
NFS maillist  -  [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs