This example extends the retention period for the wind.jpg object by one year. If this object is still open due to lazy close, changing the retention setting closes it. For information on lazy close, see NFS lazy close.
Unix command
echo +1y > /metadatamount/images/wind.jpg/retention.txt
Python code
retention_value = "+1y"
retention_fh = file("/datamount/images/wind.jpg/retention.txt")
try:
retention_fh.write(retention_value)
finally:
retention_fh.close()
© 2016 Hitachi Data Systems Corporation. All rights reserved.