On 05/17/2013 02:27 PM, Kai Zhang wrote: > + if (cluster_format(0, NULL) != SD_RES_SUCCESS) > + goto out; > + > + if (farm_load_snapshot(idx, tag) != SD_RES_SUCCESS) > + goto out; Maybe its better check tag or idx validity before format_cluster? Thanks, Yuan