Last active
June 4, 2024 13:35
-
-
Save lbdyck/ad70685267a42d3a21ac5b00515235aa to your computer and use it in GitHub Desktop.
Mount ZFS During TSO Logon
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ----------------------------------------------------- * | |
| 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