Project

General

Profile

Actions

Bug #6690

closed

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

Added by Yuri Pankov almost 6 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
nfs - NFS server and client
Start date:
2016-02-27
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

set_nfsv4_ephemeral_mount_to() tries to read AUTOMOUNT_TIMEOUT from defunct /etc/default/autofs, it shouldn't - autofs configuration properties are now stored in SMF.


Related issues

Related to illumos gate - Bug #9016: Default timeout for NFSv4 ephemeral mounts is wrongClosedMarcel Telka2018-02-02

Actions
Actions #1

Updated by Marcel Telka almost 4 years ago

  • Assignee set to Marcel Telka
  • Status changed from New to In Progress
Actions #2

Updated by Marcel Telka almost 4 years ago

  • Status changed from In Progress to Pending RTI
Actions #3

Updated by Marcel Telka almost 4 years ago

  • Related to Bug #9016: Default timeout for NFSv4 ephemeral mounts is wrong added
Actions #4

Updated by Electric Monk almost 4 years ago

  • Status changed from Pending RTI to Closed
  • % Done changed from 0 to 100

git commit b4509b050d50104aa22638bf66c219627cf301af

commit  b4509b050d50104aa22638bf66c219627cf301af
Author: Marcel Telka <marcel@telka.sk>
Date:   2018-02-02T19:34:12.000Z

    6690 set_nfsv4_ephemeral_mount_to() tries to read AUTOMOUNT_TIMEOUT from defunct /etc/default/autofs
    Reviewed by: Yuri Pankov <yuripv@gmx.com>
    Reviewed by: Toomas Soome <tsoome@me.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Actions #5

Updated by Marcel Telka almost 4 years ago

Testing

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
#
Actions

Also available in: Atom PDF