Exemplo n.º 1
0
static int check_stale_objects(uint64_t oid, void *arg)
{
	if (oid_stale(oid))
		return move_object_to_stale_dir(oid, arg);

	return SD_RES_SUCCESS;
}
Exemplo n.º 2
0
static int check_stale_objects(uint64_t oid, char *wd, uint32_t epoch,
			       void *arg)
{
	if (oid_stale(oid))
		return move_object_to_stale_dir(oid, wd, 0, arg);

	return SD_RES_SUCCESS;
}
Exemplo n.º 3
0
static int check_stale_objects(uint64_t oid, void *arg)
{
	if (oid_stale(oid)) {
		objlist_cache_remove_from_wd(oid);
		return move_object_to_stale_dir(oid, arg);
	}

	return SD_RES_SUCCESS;
}
Exemplo n.º 4
0
static int check_stale_objects(uint64_t oid, const char *wd, uint32_t epoch,
			       uint8_t ec_index, struct vnode_info *vinfo,
			       void *arg)
{
	if (oid_stale(oid, ec_index, vinfo))
		return move_object_to_stale_dir(oid, wd, 0, ec_index,
						NULL, arg);

	return SD_RES_SUCCESS;
}