All of lore.kernel.org
 help / color / mirror / Atom feed
* Unlink after each loop in job
@ 2016-08-03  6:21 Martin Dev
  2016-08-03 15:38 ` Jens Axboe
  0 siblings, 1 reply; 10+ messages in thread
From: Martin Dev @ 2016-08-03  6:21 UTC (permalink / raw)
  To: fio

I'm after the following data pattern from a job, which is 1 out of 4
jobs run at the same time:

Targeted at the filesystem level
Write Xgb of verifiable data to file
Verify file
Delete file
Loop

The idea is we want to test trim at the file system level, whilst also
having 3 other jobs that perform different workloads.

Unlink=1 will only trigger after all loops of a job are complete
exec_post_run will only trigger after all loops of a job are complete

I have implemented the functionality I'm after, by adding a
unlink_each_loop paremeter to options.c, and in backend.c under the
while(keep_running) I've added an unlink() to both the if block
checking verify is false (before the loop continue) and after the
verification, if the flag is set.

The problem is, I'm not a C programmer (in the slightest), and I don't
know FIO at all well. My code probably does not live up to the
standard, or understand the internals of FIO well enough to handle
errors in the correct way etc.

So I guess I have 2 questions,

1) Have I missed something which already does what I need (delete file
on each loop of a write job)
2) How can I get someone who actually knows what they're doing to
implement this feature :)

--Martin

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-08-08 15:47 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-03  6:21 Unlink after each loop in job Martin Dev
2016-08-03 15:38 ` Jens Axboe
     [not found]   ` <CAG6KGPSthqs28GTQYSnFGcs_XzQWdALQ8knUS7ook2-_wurcmw@mail.gmail.com>
     [not found]     ` <4ac1a598-480e-bfa6-3704-929c909be5da@kernel.dk>
     [not found]       ` <b67f4217-97f3-f9f9-46a1-92c9b43ba9b9@kernel.dk>
2016-08-05  7:31         ` Martin Dev
2016-08-05 13:50           ` Jens Axboe
2016-08-08  7:19             ` Erwan Velu
2016-08-08 13:50               ` Jens Axboe
2016-08-08 14:14                 ` Erwan Velu
2016-08-08 14:18                   ` Jens Axboe
2016-08-08 15:33                     ` Jens Axboe
2016-08-08 15:47                       ` Jens Axboe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.