summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Grow.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/Grow.c b/Grow.c
index 8e6e7f7..4423b78 100644
--- a/Grow.c
+++ b/Grow.c
@@ -871,6 +871,12 @@ int Grow_reshape(char *devname, int fd, int quiet, char *backup_file,
ndata--;
}
+ if (odata == ndata &&
+ get_linux_version() < 2006032) {
+ fprintf(stderr, Name ": in-place reshape is not safe before 2.6.32, sorry.\n");
+ break;
+ }
+
/* Check that we can hold all the data */
size = ndata * array.size;
get_dev_size(fd, NULL, &array_size);