From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sog-mx-4.v43.ch3.sourceforge.com ([172.29.43.194] helo=mx.sourceforge.net) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1Z0TOG-0004o4-IM for ltp-list@lists.sourceforge.net; Thu, 04 Jun 2015 11:32:52 +0000 Received: from aserp1040.oracle.com ([141.146.126.69]) by sog-mx-4.v43.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) id 1Z0TOE-0003WK-PY for ltp-list@lists.sourceforge.net; Thu, 04 Jun 2015 11:32:52 +0000 Message-ID: <55703816.1040109@oracle.com> Date: Thu, 04 Jun 2015 14:35:50 +0300 From: Alexey Kodanev MIME-Version: 1.0 References: <1429621507-23503-1-git-send-email-alexey.kodanev@oracle.com> <1432186777.16347.56.camel@G08FNSTD140232> <1176648532.3847089.1432304474796.JavaMail.zimbra@redhat.com> In-Reply-To: <1176648532.3847089.1432304474796.JavaMail.zimbra@redhat.com> Subject: Re: [LTP] [PATCH] fallocate04: Use tst_kvercmp after lseek(SEEK_HOLE) return EINVAL List-Id: Linux Test Project General Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-list-bounces@lists.sourceforge.net To: Jan Stancek , Zeng Linggang Cc: vasily isaenko , ltp-list@lists.sourceforge.net Hi, On 05/22/2015 05:21 PM, Jan Stancek wrote: > ----- Original Message ----- >> From: "Zeng Linggang" >> To: "Alexey Kodanev" >> Cc: ltp-list@lists.sourceforge.net, "vasily isaenko" >> Sent: Thursday, 21 May, 2015 7:39:37 AM >> Subject: [LTP] [PATCH] fallocate04: Use tst_kvercmp after lseek(SEEK_HOLE) return EINVAL >> >> SEEK_HOLE is only supported since version 3.1. Just print some >> information to remind users if kernel is before 3.1, if not print >> 'TBROK' and quit, instead of 'TWARN'. > Looks OK to me. Alexey, any objections from your side? Sorry for the delay, looks good to me. There is stylistic comment below, but it is minor: >> - tst_resm(TWARN | TERRNO, "lseek() doesn't support SEEK_HOLE"); >> + if (tst_kvercmp(3, 1, 0) < 0) >> + tst_resm(TINFO, "lseek() doesn't support SEEK_HOLE, " >> + "this is expected for < 3.1 kernels"); >> + else >> + tst_brkm(TBROK | TERRNO, cleanup, >> + It would be better to add curly braces around multiline 'if else' block. Thanks, Alexey ------------------------------------------------------------------------------ _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list