Skip to content

Instantly share code, notes, and snippets.

@cinek810
Last active November 13, 2020 12:45
Show Gist options
  • Save cinek810/8ca8489877cd073078ebf8212ca6863a to your computer and use it in GitHub Desktop.
Save cinek810/8ca8489877cd073078ebf8212ca6863a to your computer and use it in GitHub Desktop.
[funinit.wordpress.com] How to use setStripe?
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