From: Petr Vorel <pvorel@suse.cz>
To: ltp@lists.linux.it
Cc: NeilBrown <neilb@suse.de>
Subject: Re: [LTP] [PATCH 1/3] lapi/fcntl.h: Fix O_DIRECT definition for various archs
Date: Wed, 28 Jun 2023 10:29:50 +0200 [thread overview]
Message-ID: <20230628082950.GB115947@pevik> (raw)
In-Reply-To: <20230628081831.123189-2-pvorel@suse.cz>
Hi all,
> #ifndef LAPI_FCNTL_H__
> @@ -11,7 +12,15 @@
> #include <sys/socket.h>
Maybe we should put note here:
/* Consider #define _GNU_SOURCE if you need O_DIRECT in tests */
> #ifndef O_DIRECT
> -# define O_DIRECT 040000
> +# if defined(__mips__)
> +# define O_DIRECT 0100000
> +# elif defined(__arm__) || defined(__aarch64__) || defined(__m68k__)
> +# define O_DIRECT 0200000
> +# elif defined(__powerpc__) || defined(__powerpc64__)
> +# define O_DIRECT 0400000
> +# else
> +# define O_DIRECT 040000
> +# endif
> #endif
Kind regards,
Petr
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2023-06-28 8:30 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-28 8:18 [LTP] [PATCH 0/3] Fix O_DIRECT definition for various archs Petr Vorel
2023-06-28 8:18 ` [LTP] [PATCH 1/3] lapi/fcntl.h: " Petr Vorel
2023-06-28 8:29 ` Petr Vorel [this message]
2023-06-28 11:39 ` Cyril Hrubis
2023-06-28 12:51 ` Petr Vorel
2023-06-28 13:36 ` Cyril Hrubis
2023-06-28 14:57 ` Petr Vorel
2023-06-28 8:18 ` [LTP] [PATCH 2/3] fsstress/global.h: Include lapi/fcntl.h Petr Vorel
2023-06-28 8:28 ` Petr Vorel
2023-06-28 8:18 ` [LTP] [PATCH 3/3] ltpscsi/scsimain.c: Remove O_DIRECT fallback definition Petr Vorel
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=20230628082950.GB115947@pevik \
--to=pvorel@suse.cz \
--cc=ltp@lists.linux.it \
--cc=neilb@suse.de \
/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