Skip to contentSkip to conversation

Recent changes (master)

PATCH Jens Axboe 1 participant 1 message Apr 17, 2014

lore
Share & tools
lore

Jens Axboe

author
#0 lore raw

The following changes since commit 3a35845f7756a8a86b420650bff41267192dce22:

sg/binject: only restore file flags if they have been set (2014-04-15 09:07:44 -0600)

are available in the git repository at:

git://git.kernel.dk/fio.git master

for you to fetch changes up to d1faa06dc74fcdcae02e70260c90121502ef01cf:

Error out if the set blocksize is larger than the file size (2014-04-16 23:51:27 +0200)

----------------------------------------------------------------
Jens Axboe (1):
Error out if the set blocksize is larger than the file size

 filesetup.c |    5 +++++
 1 file changed, 5 insertions(+)

---

Diff of recent changes:

filesetup.c +5 -0
index 60e7947..79eea9f 100644
@@ -885,6 +885,11 @@ int setup_files(struct thread_data *td)
 	if (!o->size || o->size > total_size)
 		o->size = total_size;
 
+	if (o->size < td_min_bs(td)) {
+		log_err("fio: blocksize too large for data set\n");
+		goto err_out;
+	}
+
 	/*
 	 * See if we need to extend some files
 	 */