Return-Path: Received: from sog-mx-4.v43.ch3.sourceforge.com ([172.29.43.194] helo=mx.sourceforge.net) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1YmjhM-0000Fl-Hi for ltp-list@lists.sourceforge.net; Mon, 27 Apr 2015 14:07:48 +0000 Date: Mon, 27 Apr 2015 16:07:19 +0200 From: Cyril Hrubis Message-ID: <20150427140718.GB10567@rei.suse.de> References: <1429621507-23503-1-git-send-email-alexey.kodanev@oracle.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1429621507-23503-1-git-send-email-alexey.kodanev@oracle.com> Subject: Re: [LTP] [PATCH v4] syscalls/fallocate04: add new fallocate() test 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: Alexey Kodanev Cc: vasily.isaenko@oracle.com, ltp-list@lists.sourceforge.net Hi! > diff --git a/testcases/kernel/syscalls/fallocate/fallocate04.c b/testcases/kernel/syscalls/fallocate/fallocate04.c > new file mode 100644 > index 0000000..f99492d > --- /dev/null > +++ b/testcases/kernel/syscalls/fallocate/fallocate04.c > @@ -0,0 +1,273 @@ > +/* > + * Copyright (c) 2015 Oracle and/or its affiliates. All Rights Reserved. > + * > + * This program is free software; you can redistribute it and/or > + * modify it under the terms of the GNU General Public License as > + * published by the Free Software Foundation; either version 2 of > + * the License, or (at your option) any later version. > + * > + * This program is distributed in the hope that it would be useful, > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > + * GNU General Public License for more details. > + * > + * You should have received a copy of the GNU General Public License > + * along with this program. If not, see . > + * > + * Author: Alexey Kodanev > + */ What about adding a short comment here, with high level description of the testcase? It's a bit easier to dive in the code if you know the big picture beforehand. > +#define _GNU_SOURCE > + > +#include > +#include > +#include > +#include > +#include > +#include The rest looks fine. I may be tempted not to use tst_brkm(TCONF, ...) in the test functions and do tst_resm(TCONF, ...); return; instead, but that is minor thing. -- Cyril Hrubis chrubis@suse.cz ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list