# File lib/openshift-origin-node/model/node.rb, line 123 def self.set_quota(uuid, blocksmax, inodemax) cur_quota = get_quota(uuid) inodemax = cur_quota[6] if inodemax.to_s.empty? mountpoint = %x[quota -w #{uuid} | awk '/^.*\\/dev/ {print $1}'] cmd = "setquota -u #{uuid} 0 #{blocksmax} 0 #{inodemax} -a #{mountpoint}" st, out, errout = systemu cmd raise NodeCommandException.new "Error: #{errout} executing command #{cmd}" unless st.exitstatus == 0 end