From: Cyril Hrubis <chrubis@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH v2] Add test for misaligned fallocate()
Date: Tue, 21 Jan 2020 16:49:42 +0100 [thread overview]
Message-ID: <20200121154941.GC12370@rei> (raw)
In-Reply-To: <20200116123100.13345-1-mdoucha@suse.cz>
Hi!
> + SAFE_CLOSE(fd);
> + tst_system("rm -r " MNTPOINT "/*");
Just FYI, we already have something like this implemented but not
exported outside of the test library. We basically need a public
wrapper around the rmobj() function from the tst_tmpdir.c
> +}
> +
> +static void cleanup(void)
> +{
> + free(wbuf);
> + free(rbuf);
> +}
> +
> +static struct tst_test test = {
> + .test = run,
> + .tcnt = ARRAY_SIZE(testcase_list),
> + .needs_root = 1,
> + .mount_device = 1,
> + .dev_min_size = 512,
> + .mntpoint = MNTPOINT,
> + .all_filesystems = 1,
> + .setup = setup,
> + .cleanup = cleanup,
> +};
> --
> 2.24.1
>
>
> --
> Mailing list info: https://lists.linux.it/listinfo/ltp
--
Cyril Hrubis
chrubis@suse.cz
prev parent reply other threads:[~2020-01-21 15:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-16 12:31 [LTP] [PATCH v2] Add test for misaligned fallocate() Martin Doucha
2020-01-21 15:49 ` Cyril Hrubis [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200121154941.GC12370@rei \
--to=chrubis@suse.cz \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox