• Scott Mayhew's avatar
    NFS: Convert mount option parsing to use functionality from fs_parser.h · e38bb238
    Scott Mayhew authored
    Split out from commit "NFS: Add fs_context support."
    
    Convert existing mount option definitions to fs_parameter_enum's and
    fs_parameter_spec's.  Parse mount options using fs_parse() and
    lookup_constant().
    
    Notes:
    
    1) Fixed a typo in the udp6 definition in nfs_xprt_protocol_tokens
    from the original commit.
    
    2) fs_parse() expects an fs_context as the first arg so that any
    errors can be logged to the fs_context.  We're passing NULL for the
    fs_context (this will change in commit "NFS: Add fs_context support.")
    which is okay as it will cause logfc() to do a printk() instead.
    
    3) fs_parse() expects an fs_paramter as the third arg.  We're
    building an fs_parameter manually in nfs_fs_context_parse_option(),
    which will go away in commit "NFS: Add fs_context support.".
    Signed-off-by: default avatarScott Mayhew <smayhew@redhat.com>
    Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
    e38bb238
fs_context.c 33 KB