The building is the granary, or the the Agadir, for the ksar.
All pictures are copyrighted by Kuriacose Joseph.