writefs:use 1 for error return number