Last active
November 13, 2020 12:45
-
-
Save cinek810/8ca8489877cd073078ebf8212ca6863a to your computer and use it in GitHub Desktop.
[funinit.wordpress.com] How to use setStripe?
This file contains hidden or 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
from ctypes import CDLL | |
lustreFunc = CDLL("/etc/irods/setStripe.so") | |
[...] | |
def Pyrule_resource_mkdir_post(rule_args,callback,rei): | |
dataObj = splitKV(rule_args[0]) | |
physPath = str(dataObj['physical_path']) | |
rc = lustreFunc.setStripe(physPath, pool) | |
if rc: | |
callback.writeLine("serverLog","setting pool failed with:'"+str(rc)+"'"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment