Skip to content

Instantly share code, notes, and snippets.

@jamiejackson
Last active March 22, 2017 16:07
Show Gist options
  • Save jamiejackson/8b31aeef0d3f7d07b73c9d9e26aa3a76 to your computer and use it in GitHub Desktop.
Save jamiejackson/8b31aeef0d3f7d07b73c9d9e26aa3a76 to your computer and use it in GitHub Desktop.
autofs with SIGINTed first access
[MYDOM\ME@MYHOST ~]$ date; sudo automount -f -v
Wed Mar 22 10:36:47 CDT 2017
Starting automounter version 5.0.5-123.el6_8, master map auto.master
using kernel protocol version 5.02
lookup_read_master: lookup(nisplus): couldn't locate nis+ table auto.master
lookup(file): failed to read included master map auto.master
mounted indirect on /misc with timeout 300, freq 75 seconds
mounted indirect on /net with timeout 300, freq 75 seconds
master_do_mount: mounting /mnt/non-co/client_a
automount_path_to_fifo: fifo name /var/run/autofs.fifo-mnt-non-c-client_a
lookup_nss_read_map: reading map file /etc/auto.client_a_sshfs
mounted indirect on /mnt/non-co/client_a with timeout 30, freq 8 seconds
st_ready: st_ready(): state = 0 path /mnt/non-co/client_a
ghosting enabled
handle_packet: type = 3
handle_packet_missing_indirect: token 112, name testsftp, request pid 18505
attempting to mount entry /mnt/non-co/client_a/testsftp
lookup_mount: lookup(file): looking up testsftp
lookup_mount: lookup(file): testsftp -> -fstype=fuse,rw,nodev,noatime,allow_other,debug,IdentityFile=/root/.ssh/client_a_sftp_key :sshfs\#redacteduser@redactedhost\:/export/home/files
parse_mount: parse(sun): expanded entry: -fstype=fuse,rw,nodev,noatime,allow_other,debug,IdentityFile=/root/.ssh/client_a_sftp_key :sshfs\#redacteduser@redactedhost\:/export/home/files
parse_mount: parse(sun): gathered options: uid=492,gid=488,fstype=fuse,rw,nodev,noatime,allow_other,debug,IdentityFile=/root/.ssh/client_a_sftp_key
parse_mount: parse(sun): dequote(":sshfs\#redacteduser@redactedhost\:/export/home/files") -> :sshfs#redacteduser@redactedhost:/export/home/files
parse_mount: parse(sun): core of entry: options=uid=492,gid=488,fstype=fuse,rw,nodev,noatime,allow_other,debug,IdentityFile=/root/.ssh/client_a_sftp_key, loc=:sshfs#redacteduser@redactedhost:/export/home/files
sun_mount: parse(sun): mounting root /mnt/non-co/client_a, mountpoint testsftp, what sshfs#redacteduser@redactedhost:/export/home/files, fstype fuse, options uid=492,gid=488,rw,nodev,noatime,allow_other,debug,IdentityFile=/root/.ssh/client_a_sftp_key
do_mount: sshfs#redacteduser@redactedhost:/export/home/files /mnt/non-co/client_a/testsftp type fuse options uid=492,gid=488,rw,nodev,noatime,allow_other,debug,IdentityFile=/root/.ssh/client_a_sftp_key using module generic
mount_mount: mount(generic): calling mkdir_path /mnt/non-co/client_a/testsftp
mount_mount: mount(generic): calling mount -t fuse -s -o uid=492,gid=488,rw,nodev,noatime,allow_other,debug,IdentityFile=/root/.ssh/client_a_sftp_key sshfs#redacteduser@redactedhost:/export/home/files /mnt/non-co/client_a/testsftp
>> FUSE library version: 2.8.3
>> nullpath_ok: 0
>> This system is for the use of authorized users only
>> Individuals using this computer system without authority,
>> or in excess of their authority, are subject to having all
>> of their activities on this system monitored and recorded
>> by system personnel.
>> In the course of monitoring individuals improperly using
>> this system, or in the course of system maintenance, the
>> activities of authorized users may also be monitored.
>> Anyone using this system expressly consents to such
>> monitoring and is advised that if such monitoring reveals
>> possible evidence of criminal activity, system personnel
>> may provide the evidence of such monitoring to law
>> enforcement officials.
>> 32016
>> unique: 1, opcode: INIT (26), nodeid: 0, insize: 56
>> INIT: 7.14
>> flags=0x0000f07b
>> max_readahead=0x00020000
>> INIT: 7.12
>> flags=0x00000011
>> max_readahead=0x00020000
>> max_write=0x00020000
>> unique: 1, success, outsize: 40
>> unique: 2, opcode: OPENDIR (27), nodeid: 1, insize: 48
>> unique: 2, success, outsize: 32
>> unique: 3, opcode: READDIR (28), nodeid: 1, insize: 80
>> getdir[0]
st_expire: state 1 path /mnt/non-co/client_a
expire_proc: exp_proc = 140503214614272 path /mnt/non-co/client_a
expire_proc_indirect: expire /mnt/non-co/client_a/testsftp
1 remaining in /mnt/non-co/client_a
expire_cleanup: got thid 140503214614272 path /mnt/non-co/client_a stat 3
expire_cleanup: sigchld: exp 140503214614272 finished, switching from 2 to 1
st_ready: st_ready(): state = 2 path /mnt/non-co/client_a
st_expire: state 1 path /mnt/non-co/client_a
expire_proc: exp_proc = 140503214614272 path /mnt/non-co/client_a
expire_proc_indirect: expire /mnt/non-co/client_a/testsftp
1 remaining in /mnt/non-co/client_a
expire_cleanup: got thid 140503214614272 path /mnt/non-co/client_a stat 3
expire_cleanup: sigchld: exp 140503214614272 finished, switching from 2 to 1
st_ready: st_ready(): state = 2 path /mnt/non-co/client_a
st_expire: state 1 path /mnt/non-co/client_a
expire_proc: exp_proc = 140503214614272 path /mnt/non-co/client_a
expire_proc_indirect: expire /mnt/non-co/client_a/testsftp
1 remaining in /mnt/non-co/client_a
expire_cleanup: got thid 140503214614272 path /mnt/non-co/client_a stat 3
expire_cleanup: sigchld: exp 140503214614272 finished, switching from 2 to 1
st_ready: st_ready(): state = 2 path /mnt/non-co/client_a
st_expire: state 1 path /mnt/non-co/client_a
expire_proc: exp_proc = 140503214614272 path /mnt/non-co/client_a
expire_proc_indirect: expire /mnt/non-co/client_a/testsftp
1 remaining in /mnt/non-co/client_a
expire_cleanup: got thid 140503214614272 path /mnt/non-co/client_a stat 3
expire_cleanup: sigchld: exp 140503214614272 finished, switching from 2 to 1
st_ready: st_ready(): state = 2 path /mnt/non-co/client_a
st_expire: state 1 path /mnt/non-co/client_a
expire_proc: exp_proc = 140503214614272 path /mnt/non-co/client_a
expire_proc_indirect: expire /mnt/non-co/client_a/testsftp
1 remaining in /mnt/non-co/client_a
expire_cleanup: got thid 140503214614272 path /mnt/non-co/client_a stat 3
expire_cleanup: sigchld: exp 140503214614272 finished, switching from 2 to 1
st_ready: st_ready(): state = 2 path /mnt/non-co/client_a
>> unique: 3, success, outsize: 4112
>> unique: 4, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 4, success, outsize: 4112
>> unique: 5, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 5, success, outsize: 4112
>> unique: 6, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 6, success, outsize: 4112
>> unique: 7, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 7, success, outsize: 4112
>> unique: 8, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 8, success, outsize: 4112
>> unique: 9, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 9, success, outsize: 4112
>> unique: 10, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 10, success, outsize: 4112
>> unique: 11, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 11, success, outsize: 4112
>> unique: 12, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 12, success, outsize: 4112
>> unique: 13, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 13, success, outsize: 4112
>> unique: 14, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 14, success, outsize: 4112
>> unique: 15, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 15, success, outsize: 4112
>> unique: 16, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 16, success, outsize: 4112
>> unique: 17, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 17, success, outsize: 4112
>> unique: 18, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 18, success, outsize: 4112
>> unique: 19, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 19, success, outsize: 4112
>> unique: 20, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 20, success, outsize: 4112
>> unique: 21, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 21, success, outsize: 4112
>> unique: 22, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 22, success, outsize: 4112
>> unique: 23, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 23, success, outsize: 4112
>> unique: 24, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 24, success, outsize: 4112
>> unique: 25, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 25, success, outsize: 4112
>> unique: 26, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 26, success, outsize: 4112
>> unique: 27, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 27, success, outsize: 4112
>> unique: 28, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 28, success, outsize: 4112
>> unique: 29, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 29, success, outsize: 4112
>> unique: 30, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 30, success, outsize: 4112
>> unique: 31, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 31, success, outsize: 4112
>> unique: 32, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 32, success, outsize: 4112
>> unique: 33, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 33, success, outsize: 4112
>> unique: 34, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 34, success, outsize: 4112
>> unique: 35, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 35, success, outsize: 4112
>> unique: 36, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 36, success, outsize: 4112
>> unique: 37, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 37, success, outsize: 4112
>> unique: 38, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 38, success, outsize: 4112
>> unique: 39, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 39, success, outsize: 4112
>> unique: 40, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 40, success, outsize: 4112
>> unique: 41, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 41, success, outsize: 4112
>> unique: 42, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 42, success, outsize: 4112
>> unique: 43, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 43, success, outsize: 4112
>> unique: 44, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 44, success, outsize: 4112
>> unique: 45, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 45, success, outsize: 4112
>> unique: 46, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 46, success, outsize: 4112
>> unique: 47, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 47, success, outsize: 4112
>> unique: 48, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 48, success, outsize: 4112
>> unique: 49, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 49, success, outsize: 4112
>> unique: 50, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 50, success, outsize: 4112
>> unique: 51, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 51, success, outsize: 4112
>> unique: 52, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 52, success, outsize: 4112
>> unique: 53, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 53, success, outsize: 4112
>> unique: 54, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 54, success, outsize: 4112
>> unique: 55, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 55, success, outsize: 4112
>> unique: 56, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 56, success, outsize: 4112
>> unique: 57, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 57, success, outsize: 4112
>> unique: 58, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 58, success, outsize: 4112
>> unique: 59, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 59, success, outsize: 4112
>> unique: 60, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 60, success, outsize: 4112
>> unique: 61, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 61, success, outsize: 4112
>> unique: 62, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 62, success, outsize: 4112
>> unique: 63, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 63, success, outsize: 4112
>> unique: 64, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 64, success, outsize: 4112
>> unique: 65, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 65, success, outsize: 4112
>> unique: 66, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 66, success, outsize: 4112
>> unique: 67, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 67, success, outsize: 4112
>> unique: 68, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 68, success, outsize: 4112
>> unique: 69, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 69, success, outsize: 4112
>> unique: 70, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 70, success, outsize: 4112
>> unique: 71, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 71, success, outsize: 4112
>> unique: 72, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 72, success, outsize: 4112
>> unique: 73, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 73, success, outsize: 4112
>> unique: 74, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 74, success, outsize: 4112
>> unique: 75, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 75, success, outsize: 4112
>> unique: 76, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 76, success, outsize: 4112
>> unique: 77, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 77, success, outsize: 4112
>> unique: 78, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 78, success, outsize: 4112
>> unique: 79, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 79, success, outsize: 4112
>> unique: 80, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 80, success, outsize: 4112
>> unique: 81, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 81, success, outsize: 4112
>> unique: 82, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 82, success, outsize: 4112
>> unique: 83, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 83, success, outsize: 4112
>> unique: 84, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 84, success, outsize: 4112
>> unique: 85, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 85, success, outsize: 4112
>> unique: 86, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 86, success, outsize: 4112
>> unique: 87, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 87, success, outsize: 4112
>> unique: 88, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 88, success, outsize: 4112
>> unique: 89, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 89, success, outsize: 4112
>> unique: 90, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 90, success, outsize: 4112
>> unique: 91, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 91, success, outsize: 4112
>> unique: 92, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 92, success, outsize: 4112
>> unique: 93, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 93, success, outsize: 4112
>> unique: 94, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 94, success, outsize: 4112
>> unique: 95, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 95, success, outsize: 3824
>> unique: 96, opcode: READDIR (28), nodeid: 1, insize: 80
>> unique: 96, success, outsize: 16
>> unique: 97, opcode: RELEASEDIR (29), nodeid: 1, insize: 64
>> unique: 97, success, outsize: 16
>> unique: 98, opcode: LOOKUP (1), nodeid: 1, insize: 89
>> LOOKUP /CPD_Funding_Grantee_Dash_YUMA-AZ_AZ_20170213.pdf
>> getattr /CPD_Funding_Grantee_Dash_YUMA-AZ_AZ_20170213.pdf
>> NODEID: 2
>> unique: 98, success, outsize: 144
>> unique: 99, opcode: GETXATTR (22), nodeid: 2, insize: 72
>> unique: 99, error: -38 (Function not implemented), outsize: 16
>> unique: 100, opcode: LOOKUP (1), nodeid: 1, insize: 89
>> LOOKUP /CPD_Funding_Grantee_Dash_YUMA-AZ_AZ_20170301.pdf
>> getattr /CPD_Funding_Grantee_Dash_YUMA-AZ_AZ_20170301.pdf
>> NODEID: 3
>> unique: 100, success, outsize: 144
>> unique: 101, opcode: LOOKUP (1), nodeid: 1, insize: 91
>> LOOKUP /CPD_Funding_Grantee_Matrix_YUMA-AZ_AZ_20170301.pdf
>> getattr /CPD_Funding_Grantee_Matrix_YUMA-AZ_AZ_20170301.pdf
>> NODEID: 4
>> unique: 101, success, outsize: 144
st_expire: state 1 path /mnt/non-co/client_a
expire_proc: exp_proc = 140503214614272 path /mnt/non-co/client_a
expire_proc_indirect: expire /mnt/non-co/client_a/testsftp
1 remaining in /mnt/non-co/client_a
expire_cleanup: got thid 140503214614272 path /mnt/non-co/client_a stat 3
expire_cleanup: sigchld: exp 140503214614272 finished, switching from 2 to 1
st_ready: st_ready(): state = 2 path /mnt/non-co/client_a
^C>> Killed by signal 2.
master_notify_state_change: sig 2 switching /mnt/non-co/client_a from 1 to 5
st_prepare_shutdown: state 1 path /mnt/non-co/client_a
expire_proc: exp_proc = 140503214614272 path /mnt/non-co/client_a
>> remote host has disconnected
expire_proc_indirect: expire /mnt/non-co/client_a/testsftp
mount(generic): failed to mount sshfs#redacteduser@redactedhost:/export/home/files (type fuse) on /mnt/non-co/client_a/testsftp
dev_ioctl_send_fail: token = 112
failed to mount /mnt/non-co/client_a/testsftp
expire_cleanup: got thid 140503214614272 path /mnt/non-co/client_a stat 0
expire_cleanup: sigchld: exp 140503214614272 finished, switching from 5 to 7
st_shutdown: state 5 path /mnt/non-co/client_a
umounted indirect mount /net
shut down path /net
umounted indirect mount /misc
shut down path /misc
umount_multi: path /mnt/non-co/client_a incl 0
rm_unwanted_fn: removing directory /mnt/non-co/client_a/testsftp
umounted indirect mount /mnt/non-co/client_a
automount_path_to_fifo: fifo name /var/run/autofs.fifo-mnt-non-c-client_a
shut down path /mnt/non-co/client_a
autofs stopped
[MYDOM\ME@MYHOST ~]$ ^
[MYDOM\ME@MYHOST ~]$ date; time sudo ls -ald /mnt/non-co/client_a/testsftp/*YUMA*;
Wed Mar 22 10:36:49 CDT 2017
^C
[MYDOM\ME@MYHOST ~]$ date; time sudo ls -ald /mnt/non-co/client_a/testsftp/*YUMA*;
Wed Mar 22 10:36:58 CDT 2017
-rw-rw-r--. 1 railo railo 371989 Feb 13 11:00 /mnt/non-co/client_a/testsftp/CPD_Funding_Grantee_Dash_YUMA-AZ_AZ_20170213.pdf
-rw-r-----. 1 railo railo 371989 Mar 1 08:20 /mnt/non-co/client_a/testsftp/CPD_Funding_Grantee_Dash_YUMA-AZ_AZ_20170301.pdf
-rw-r-----. 1 railo railo 67881 Feb 28 23:12 /mnt/non-co/client_a/testsftp/CPD_Funding_Grantee_Matrix_YUMA-AZ_AZ_20170301.pdf
real 0m41.127s
user 0m0.030s
sys 0m0.047s
[MYDOM\ME@MYHOST ~]$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment