Date: Fri, 29 Jun 2007 17:00:10 +0100
    From: Calum Mackay <Calum.Mackay at sun.com>
    Subject: 2007/393 converting /etc/default/{nfs,autofs} to SMF properties

    ...
    The current NFS properties are:

    NFSD_MAX_CONNECTIONS=<int>, default unlimited
    NFSD_LISTEN_BACKLOG=<int>, default 32
    NFSD_PROTOCOL=<string>, default ALL, can't be set with NFSD_DEVICE
    NFSD_DEVICE=<string>, default not set, can't be set with NFSD_PROTOCOL
    NFSD_SERVERS=<int>, default 16
    LOCKD_LISTEN_BACKLOG=<int>, default 32
    LOCKD_SERVERS=<int>, default 20
    LOCKD_RETRANSMIT_TIMEOUT=<int>, default 5
    GRACE_PERIOD=<int>, default 90
    LOCKD_GRACE_PERIOD=<int>, default 90 (deprecated)
    NFS_SERVER_VERSMIN=<enum {2,3,4}>, default 2
    NFS_SERVER_VERSMAX=<enum {2,3,4}>, default 4
    NFS_CLIENT_VERSMIN=<enum {2,3,4}>, default 2
    NFS_CLIENT_VERSMAX=<enum {2,3,4}>, default 4
    NFS_SERVER_DELEGATION=<enum {on,off}>, default on
    NFSMAPID_DOMAIN=<string>, default none

    These should be split up and mapped as follows:

    svc:/network/nfs/server properties:

    Setting                     Property
    NFSD_MAX_CONNECTIONS        application/max_connections astring ""
    NFSD_LISTEN_BACKLOG         application/listen_backlog astring 32
    NFSD_PROTOCOL               application/listen_protocol astring ALL
    NFSD_DEVICE                 application/listen_device astring ""
    NFSD_SERVERS                application/num_servers astring 16
    NFS_SERVER_VERSMIN          application/min_version astring 2
    NFS_SERVER_VERSMAX          application/max_version astring 4
    NFS_SERVER_DELEGATION       application/delegation astring on

    svc:/network/nfs/nlockmgr properties:

    LOCKD_LISTEN_BACKLOG        application/listen_backlog astring 32
    LOCKD_SERVERS               application/num_servers astring 20
    LOCKD_RETRANSMIT_TIMEOUT    application/retransmit_timeout astring 5
    GRACE_PERIOD                application/grace_period astring 90

    Note: if a customer has set LOCKD_GRACE_PERIOD and not GRACE_PERIOD,
    application/grace_period will take its value; the intent is to fold
    these into one SMF setting to reduce confusion.

    svc:/network/nfs/client properties:

    NFS_CLIENT_VERSMIN          application/min_version astring 2
    NFS_CLIENT_VERSMAX          application/max_version astring 4

    svc:/network/nfs/mapid properties:

    NFSMAPID_DOMAIN                     application/domain astring ""

    ... and so on for the autofs properties.

Perhaps I missed something along the way about how SMF properties are
used in practice.  But why are the properties above all represented as
astrings when SMF supplies more precise types such as integers and
booleans that, presumably, are more appropriate for many of them?

                -- Glenn


Reply via email to