[sheepdog] [PATCH v4 17/18] collie: implement "collie cluster snapshot" subcommand

Liu Yuan namei.unix at gmail.com
Fri May 17 11:05:22 CEST 2013


On 05/17/2013 02:27 PM, Kai Zhang wrote:
> +static void fill_obj_tree(uint32_t vid, const char *name, const char *tag,
> +			  uint32_t snapid, uint32_t flags,
> +			  const struct sd_inode *i, void *data)
> +{
> +	uint64_t vdi_oid = vid_to_vdi_oid(vid);
> +
> +	/* ignore active vdi */
> +	if (!i->snap_ctime)
> +		return;

use vdi_is_snapshot()

Thanks,
Yuan



More information about the sheepdog mailing list