[LTP] [PATCH v3 1/2] umount2/umount2_02.c: add MNT_EXPIRE flag test

2015-08-06 Thread Guangwen Feng
Add new testcase to verify the flag MNT_EXPIRE of umount2(2). Signed-off-by: Guangwen Feng fenggw-f...@cn.fujitsu.com --- runtest/ltplite| 1 + runtest/syscalls | 1 + testcases/kernel/syscalls/.gitignore | 1 +

Re: [LTP] [PATCH v3 1/2] umount2/umount2_02.c: add MNT_EXPIRE flag test

2015-08-06 Thread Guangwen Feng
I'm sorry! I sent the wrong version. Please ignore this one, and I will resend the patch. Best Regards, Guangwen Feng On 2015/08/06 15:04, Guangwen Feng wrote: Add new testcase to verify the flag MNT_EXPIRE of umount2(2). Signed-off-by: Guangwen Feng fenggw-f...@cn.fujitsu.com ---

Re: [LTP] [PATCH v5 02/11] lib6/runcc.c: Cleanup

2015-08-06 Thread Alexey Kodanev
Hi, On 08/05/2015 08:29 PM, Cyril Hrubis wrote: To be clear. I'm for dropping the ugly runcc.* interface and the testcases that use it. That would be asapi_01.c, asapi_02.c, asapi_03,c, half of asapi_05.c and asapi_07.c and fixing the rest of the testcases. Agree. Best regards, Alexey

Re: [LTP] [PATCH v5 01/11] SAFE_MACROS: Add socket(), bind(), listen(), connect() and getsockname()

2015-08-06 Thread Zeng Linggang
Hi! On Wed, 2015-08-05 at 16:00 +0200, Cyril Hrubis wrote: Hi! +int safe_bind(const char *file, const int lineno, void (cleanup_fn)(void), + int socket, const struct sockaddr *address, + socklen_t address_len) +{ + int err, ret, i; + + for (i = 0; i 30; i++) {

Re: [LTP] [PATCH v5 01/11] SAFE_MACROS: Add socket(), bind(), listen(), connect() and getsockname()

2015-08-06 Thread Zeng Linggang
Hi, On Wed, 2015-08-05 at 19:16 +0300, Alexey Kodanev wrote: Hi, On 08/05/2015 05:00 PM, Cyril Hrubis wrote: Hi! +int safe_bind(const char *file, const int lineno, void (cleanup_fn)(void), +int socket, const struct sockaddr *address, +socklen_t address_len) +{ + int

[LTP] [PATCH v3 2/2] umount2/umount2_03.c: add UMOUNT_NOFOLLOW flag test

2015-08-06 Thread Guangwen Feng
Add new testcase to verify the flag UMOUNT_NOFOLLOW of umount2(2). Signed-off-by: Guangwen Feng fenggw-f...@cn.fujitsu.com --- runtest/ltplite| 1 + runtest/syscalls | 1 + testcases/kernel/syscalls/.gitignore | 1 +

Re: [LTP] [PATCH v5 01/11] SAFE_MACROS: Add socket(), bind(), listen(), connect() and getsockname()

2015-08-06 Thread Cyril Hrubis
Hi! +int safe_bind(const char *file, const int lineno, void (cleanup_fn)(void), + int socket, const struct sockaddr *address, + socklen_t address_len) +{ +int err, ret, i; + +for (i = 0; i 30; i++) { 30 sec still may not be

Re: [LTP] [PATCH v2] ipc/msgrcv: add new testcase msgrcv08

2015-08-06 Thread Cyril Hrubis
Hi! + if ((size_t)sret != sizeof(msbs.mtext)) + tst_brkm(TBROK, NULL, received %zi, expected %zu\n, + (ssize_t)sret, (size_t)sizeof(msbs.mtext)); I've removed these cast completly (since sret is ssize_t allready and the same for the sizeof()). Fixed the

Re: [LTP] [PATCH v2] fcntl/fcntl32.c: add new test

2015-08-06 Thread Cyril Hrubis
Hi! Add new testcase to verify that a write lease may be placed on a file only if there are no other open file descriptors for the file. Signed-off-by: Guangwen Feng fenggw-f...@cn.fujitsu.com --- runtest/ltplite | 1 + runtest/syscalls

Re: [LTP] [PATCH] container: new testcase pidns32

2015-08-06 Thread Yuan Sun
Hi Jan, The limitation is added by the following patch. In some old kernel versions, no limitation is applied. I suggest that tst_kvercmp should be used in this case. commit f2302505775fd13ba93f034206f1e2a587017929 Author: Andrew Vagin ava...@openvz.org Date: Thu Oct 25 13:38:07 2012 -0700

Re: [LTP] [PATCH V2] containers: new testcase userns06

2015-08-06 Thread Yuan Sun
Many thanks, Jan. On 2015/8/5 21:21, Jan Stancek wrote: - Original Message - From: Yuan Sun sunyu...@huawei.com To: jstan...@redhat.com Cc: ltp-list@lists.sourceforge.net Sent: Friday, 31 July, 2015 11:15:46 AM Subject: [PATCH V2] containers: new testcase userns06 When a

[LTP] [PATCH v3 1/2] umount2/umount2_02.c: add MNT_EXPIRE flag test

2015-08-06 Thread Guangwen Feng
Add new testcase to verify the flag MNT_EXPIRE of umount2(2). Signed-off-by: Guangwen Feng fenggw-f...@cn.fujitsu.com --- runtest/ltplite| 1 + runtest/syscalls | 1 + testcases/kernel/syscalls/.gitignore | 1 +

Re: [LTP] [PATCH] memcg_functinon: testcase_30 function

2015-08-06 Thread songxium...@inspur.com
OK, got it. Xiumiao Song From: Cyril Hrubis Date: 2015-08-05 20:16 To: Xiumiao Song CC: ltp-list@lists.sourceforge.net; wu...@inspur.com; Michal Hocko Subject: Re: [LTP] [PATCH] memcg_functinon: testcase_30 function Hi! Testcase_30 function testing mem_cgroup_force_empty_write function

Re: [LTP] [PATCH 2/2] fcntl/fcntl33.c: add new test

2015-08-06 Thread Cyril Hrubis
Hi! +/* + * MIN_TIME_LIMIT is defined to 5 senconds as a minimal acceptable + * amount of time for the lease breaker waitting for unblock, if the + * lease breaker is unblocked within MIN_TIME_LIMIT we may consider + * that the feature of the lease mechanism works well. + */ +#define