One more:
metadata/thin_manip.c:503: warning: declaration of "snapshot_count" shadows a global declaration
return "unknown";
}
-int lv_is_thin_origin(const struct logical_volume *lv, unsigned int *snapshot_count)
+int lv_is_thin_origin(const struct logical_volume *lv, unsigned int *snap_count)
{
struct seg_list *segl;
int r = 0;
- if (snapshot_count)
- *snapshot_count = 0;
+ if (snap_count)
+ *snap_count = 0;
if (!lv_is_thin_volume(lv) ||
dm_list_empty(&lv->segs_using_this_lv))
dm_list_iterate_items(segl, &lv->segs_using_this_lv) {
if (segl->seg->origin == lv) {
r = 1;
- if (snapshot_count)
- (*snapshot_count)++;
+ if (snap_count)
+ (*snap_count)++;
else
/* not interested in number of snapshots */
break;