Skip to content

Instantly share code, notes, and snippets.

@lbdyck
Last active June 4, 2024 13:35
Show Gist options
  • Save lbdyck/ad70685267a42d3a21ac5b00515235aa to your computer and use it in GitHub Desktop.
Save lbdyck/ad70685267a42d3a21ac5b00515235aa to your computer and use it in GitHub Desktop.
Mount ZFS During TSO Logon
/* ----------------------------------------------------- *
| Small routine to put into a rexx exec invoked during |
| TSO Logon, or manually after, to test for a zfs being |
| mounted and if not then to mount it. |
* ----------------------------------------------------- */
if listdsi("'userid.zopen.zfs'") = 4 then do
x = syscalls('ON')
path = '/u/userid/zopen/etc/'
address syscall ,
'lstat (path) st.'
if st.0 = 0 then do
"mount filesystem('userid.zopen.zfs') mountpoint('/u/userid/zopen/')"
"type(zfs) mode(rdwr)"
say 'Mounting zopen zfs....'
end
x = syscalls('OFF')
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment