API for data & logs writing with disk free space control