What kind of unit is a qafiz?

Kitab al-Buyu: Grain Sales, Bulk Heaps, Qafiz and Unit Prices