Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 301396 | Differences between
and this patch

Collapse All | Expand All

(-)mdadm-3.1.1.orig/Grow.c (-1 / +1 lines)
Lines 891-897 Link Here
891
		}
891
		}
892
892
893
		/* Check that we can hold all the data */
893
		/* Check that we can hold all the data */
894
		size = ndata * array.size;
894
		size = ndata * (long long)array.size;
895
		get_dev_size(fd, NULL, &array_size);
895
		get_dev_size(fd, NULL, &array_size);
896
		if (size < (array_size/1024)) {
896
		if (size < (array_size/1024)) {
897
			fprintf(stderr, Name ": this change will reduce the size of the array.\n"
897
			fprintf(stderr, Name ": this change will reduce the size of the array.\n"

Return to bug 301396