6690 set_nfsv4_ephemeral_mount_to() tries to read AUTOMOUNT_TIMEOUT from defunct /etc/default/autofs

Review Request #828 — Created Feb. 1, 2018 and submitted — Latest diff uploaded

marcel
illumos-gate
master
6690
4c7e99a...
general
This fixes the set_nfsv4_ephemeral_mount_to() function so it reads the
configuration option from smf instead of the obsolete /etc/default/autofs file.
Without the fix:

# sharectl set -p timeout=100 autofs
# sharectl get -p timeout autofs
timeout=100
# mount -o vers=4 t1:/rpool/TEST /mnt
# KEY=$(mdb -ke 'nfs4_ephemeral_key::print')
# PTR=$(mdb -ke "::zsd $KEY" | tail -n1 | awk '{print $3}')
# mdb -ke "$PTR::print nfs4_trigger_globals_t ntg_mount_to"
ntg_mount_to = 0x258
#

With the fix:

# sharectl set -p timeout=100 autofs
# sharectl get -p timeout autofs
timeout=100
# mount -o vers=4 t1:/rpool/TEST /mnt
# KEY=$(mdb -ke 'nfs4_ephemeral_key::print')
# PTR=$(mdb -ke "::zsd $KEY" | tail -n1 | awk '{print $3}')
# mdb -ke "$PTR::print nfs4_trigger_globals_t ntg_mount_to"
ntg_mount_to = 0x64
#
Loading...