From: Jan Stancek <jstancek@redhat.com>
To: Wanlong Gao <gaowanlong@cn.fujitsu.com>
Cc: LTP <ltp-list@lists.sourceforge.net>
Subject: Re: [LTP] [PATCH] aio02: remove test for aio_fsync() and aio_fdsync()
Date: Thu, 27 Jun 2013 05:30:09 -0400 (EDT) [thread overview]
Message-ID: <713408139.533295.1372325409445.JavaMail.root@redhat.com> (raw)
In-Reply-To: <1372322290-21498-1-git-send-email-gaowanlong@cn.fujitsu.com>
----- Original Message -----
> From: "Wanlong Gao" <gaowanlong@cn.fujitsu.com>
> To: "LTP" <ltp-list@lists.sourceforge.net>
> Cc: "Cyril Hrubis" <chrubis@suse.cz>, "Caspar Zhang" <caspar@casparzhang.com>, "Garrett Cooper" <yanegomi@gmail.com>,
> "Mike Frysinger" <vapier@gentoo.org>, jstancek@redhat.com, "Wanlong Gao" <gaowanlong@cn.fujitsu.com>
> Sent: Thursday, 27 June, 2013 10:38:10 AM
> Subject: [PATCH] aio02: remove test for aio_fsync() and aio_fdsync()
>
> Linux filesystems doesn't support aio_fsync() and aio_fdsync()
> operations, so just remove test for these two.
>
> Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
Reviewed-by: Jan Stancek <jstancek@redhat.com>
Looks good to me.
Regards,
Jan
> ---
> testcases/kernel/io/aio/aio02/aio_tio.c | 34
> ---------------------------------
> 1 file changed, 34 deletions(-)
>
> diff --git a/testcases/kernel/io/aio/aio02/aio_tio.c
> b/testcases/kernel/io/aio/aio02/aio_tio.c
> index 9dda462..34fa9ed 100644
> --- a/testcases/kernel/io/aio/aio02/aio_tio.c
> +++ b/testcases/kernel/io/aio/aio02/aio_tio.c
> @@ -111,8 +111,6 @@ int io_tio(char *pathname, int flag, int n, int
> operation)
> for (i = 0; i < AIO_MAXIO; i++) {
>
> switch (operation) {
> - case IO_CMD_FSYNC:
> - case IO_CMD_FDSYNC:
> case IO_CMD_PWRITE:
> if (posix_memalign(&bufptr, alignment, AIO_BLKSIZE)) {
> perror(" posix_memalign failed ");
> @@ -179,22 +177,6 @@ int io_tio(char *pathname, int flag, int n, int
> operation)
> }
> }
> break;
> - case IO_CMD_FSYNC:
> - for (i = 0; i < AIO_MAXIO; i++) {
> - res = io_fsync(myctx, iocbps[i], work_done, fd);
> - if (res < 0) {
> - io_error("io_fsync write", res);
> - }
> - }
> - break;
> - case IO_CMD_FDSYNC:
> - for (i = 0; i < AIO_MAXIO; i++) {
> - res = io_fdsync(myctx, iocbps[i], work_done, fd);
> - if (res < 0) {
> - io_error("io_fsync write", res);
> - }
> - }
> - break;
> }
>
> close(fd);
> @@ -253,22 +235,6 @@ int test_main(void)
> return status;
> }
>
> - tst_resm(TINFO, "Running test 7 \n");
> - status = io_tio("file2",
> - O_TRUNC | O_DIRECT | O_WRONLY | O_CREAT | O_LARGEFILE,
> - AIO_MAXIO, IO_CMD_FSYNC);
> - if (status) {
> - return status;
> - }
> -
> - tst_resm(TINFO, "Running test 8 \n");
> - status = io_tio("file2",
> - O_TRUNC | O_DIRECT | O_WRONLY | O_CREAT | O_LARGEFILE,
> - AIO_MAXIO, IO_CMD_FDSYNC);
> - if (status) {
> - return status;
> - }
> -
> return status;
> }
>
> --
> 1.8.3.1.448.gfb7dfaa
>
>
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
next parent reply other threads:[~2013-06-27 9:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1372322290-21498-1-git-send-email-gaowanlong@cn.fujitsu.com>
2013-06-27 9:30 ` Jan Stancek [this message]
2013-06-27 12:43 ` [LTP] [PATCH] aio02: remove test for aio_fsync() and aio_fdsync() chrubis
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=713408139.533295.1372325409445.JavaMail.root@redhat.com \
--to=jstancek@redhat.com \
--cc=gaowanlong@cn.fujitsu.com \
--cc=ltp-list@lists.sourceforge.net \
/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 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.