[PATCH 06/13] Allow changing the size of encrypted devices via DeviceFactory. (#913169)