From: Jan Stancek <jstancek@redhat.com>
To: ltp-list@lists.sourceforge.net
Cc: Jeffrey Burke <jburke@redhat.com>
Subject: [LTP] [PATCH v2] move_pages08: E2BIG was removed in 2.6.29
Date: Wed, 09 May 2012 13:51:53 +0200 [thread overview]
Message-ID: <4FAA5A59.8070707@redhat.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 527 bytes --]
Following commit reworked do_pages_move() to work by page-sized
chunks and also removed E2BIG:
commit 3140a2273009c01c27d316f35ab76a37e105fdd8
Author: Brice Goglin <Brice.Goglin@inria.fr>
Date: Tue Jan 6 14:38:57 2009 -0800
mm: rework do_pages_move() to work on page_sized chunks
So, move_pages08 makes sense only for kernels < 2.6.29.
Signed-off-by: Jan Stancek <jstancek@redhat.com>
---
.../kernel/syscalls/move_pages/move_pages08.c | 15 +++++++++++++--
1 files changed, 13 insertions(+), 2 deletions(-)
[-- Attachment #2: 0001-move_pages08-E2BIG-was-removed-in-2.6.29.patch --]
[-- Type: text/x-patch, Size: 1067 bytes --]
diff --git a/testcases/kernel/syscalls/move_pages/move_pages08.c b/testcases/kernel/syscalls/move_pages/move_pages08.c
index a7ce6e4..e6902f4 100644
--- a/testcases/kernel/syscalls/move_pages/move_pages08.c
+++ b/testcases/kernel/syscalls/move_pages/move_pages08.c
@@ -46,7 +46,7 @@
* Initial Version.
*
* Restrictions
- * None
+ * kernel < 2.6.29
*/
#include <sys/mman.h>
@@ -129,6 +129,17 @@ int main(int argc, char **argv)
*/
void setup(void)
{
+ /*
+ * commit 3140a2273009c01c27d316f35ab76a37e105fdd8
+ * Author: Brice Goglin <Brice.Goglin@inria.fr>
+ * Date: Tue Jan 6 14:38:57 2009 -0800
+ * mm: rework do_pages_move() to work on page_sized chunks
+ *
+ * reworked do_pages_move() to work by page-sized chunks and removed E2BIG
+ */
+ if ((tst_kvercmp(2, 6, 29)) >= 0)
+ tst_brkm(TCONF, NULL, "move_pages: E2BIG was removed in "
+ "commit 3140a2273009c01c27d316f35ab76a37e105fdd8");
tst_sig(FORK, DEF_HANDLER, cleanup);
@@ -151,4 +162,4 @@ void cleanup(void)
*/
TEST_CLEANUP;
- }
\ No newline at end of file
+ }
[-- Attachment #3: Type: text/plain, Size: 395 bytes --]
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
[-- Attachment #4: Type: text/plain, Size: 155 bytes --]
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
next reply other threads:[~2012-05-09 11:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-09 11:51 Jan Stancek [this message]
2012-05-09 12:18 ` [LTP] [PATCH v2] move_pages08: E2BIG was removed in 2.6.29 Caspar Zhang
2012-05-09 12:40 ` Wanlong Gao
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=4FAA5A59.8070707@redhat.com \
--to=jstancek@redhat.com \
--cc=jburke@redhat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox