storage.rb: write get_dev_id and add get_dev_size
update thrift