All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tarun Sahu <tsahu@linux.ibm.com>
To: Cyril Hrubis <chrubis@suse.cz>
Cc: sbhat@linux.ibm.com, aneesh.kumar@linux.ibm.com,
	geetika@linux.ibm.com, vaibhav@linux.ibm.com,
	rpalethorpe@suse.com, ltp@lists.linux.it
Subject: Re: [LTP] [PATCH v5 1/4] Hugetlb: Add new tst_test options for hugeltb test support
Date: Thu, 3 Nov 2022 09:41:57 +0530	[thread overview]
Message-ID: <20221103041157.uevchef5gpawqqa6@tarunpc> (raw)
In-Reply-To: <Y2JyzD7vBxPSyeX4@yuki>

Hi, 
Thanks for reviewing the patch.

On Nov 02 2022, Cyril Hrubis wrote:
> Hi!
--skip
> > +	 * If set, the test function will create a hugetlbfs mount point
> > +	 * at /tmp/xxxxxx, where xxxxxx is a random string.
> 
> This is no longer up-to-date I guess that this should be:
> 
> "If set hugetlbfs will be moutned at .mntpoint"
Yes, missed it. Will update it.
> 
> > +	 */
> > +	int needs_hugetlbfs:1;
> >  
> > +
--skip
> > +int tst_creat_unlinked(const char *path)
> > +{
> > +	char template[PATH_MAX];
> > +	int fd;
> > +
> > +	snprintf(template, PATH_MAX, "%s/ltp_%.3sXXXXXX",
> > +			path, TCID);
>                                  ^
> 				 Should be tid in new library code.
> 
Ok, I will update it to tid.

> > +	fd = mkstemp(template);
> > +	if (fd < 0)
> > +		tst_brk(TBROK | TERRNO,
> > +			 "%s: mkstemp(%s) failed", __func__, template);
>                                                       ^
> 						      This is not
> 						      necessary
> 
> The tst_brk() prints filename and line number already, there is no need
> to print the function name as well.
> 
Ok.

--skip
> > @@ -1299,8 +1326,12 @@ static void do_cleanup(void)
> >  	if (ovl_mounted)
> >  		SAFE_UMOUNT(OVL_MNT);
> >  
> > -	if (mntpoint_mounted)
> > -		tst_umount(tst_test->mntpoint);
> > +	if (mntpoint_mounted) {
> > +		if (tst_test->needs_hugetlbfs)
> > +			SAFE_UMOUNT(tst_test->mntpoint);
> > +		else
> > +			tst_umount(tst_test->mntpoint);
> > +	}
> 
> And I would just keep this umount part as it was.
> 
Ok, will update it, Anyway, it will throw warning on unsuccessful umount.
> -- 
> Cyril Hrubis
> chrubis@suse.cz
> 
> -- 
> Mailing list info: https://lists.linux.it/listinfo/ltp

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

  reply	other threads:[~2022-11-03  4:12 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-02 11:49 [LTP] [PATCH v5 0/4] Hugetlb:Migrating the libhugetlbfs tests Tarun Sahu
2022-11-02 11:49 ` [LTP] [PATCH v5 1/4] Hugetlb: Add new tst_test options for hugeltb test support Tarun Sahu
2022-11-02 13:38   ` Cyril Hrubis
2022-11-03  4:11     ` Tarun Sahu [this message]
2022-11-02 11:49 ` [LTP] [PATCH v5 2/4] Hugetlb: Migrating libhugetlbfs brk_near_huge Tarun Sahu
2022-11-02 15:46   ` Cyril Hrubis
2022-11-03  3:18     ` Tarun Sahu
2022-11-02 11:49 ` [LTP] [PATCH v5 3/4] Hugetlb: Migrating libhugetlbfs chunk-overcommit Tarun Sahu
2022-11-02 11:49 ` [LTP] [PATCH v5 4/4] Hugetlb: Migrating libhugetlbfs corrupt-by-cow-opt Tarun Sahu

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=20221103041157.uevchef5gpawqqa6@tarunpc \
    --to=tsahu@linux.ibm.com \
    --cc=aneesh.kumar@linux.ibm.com \
    --cc=chrubis@suse.cz \
    --cc=geetika@linux.ibm.com \
    --cc=ltp@lists.linux.it \
    --cc=rpalethorpe@suse.com \
    --cc=sbhat@linux.ibm.com \
    --cc=vaibhav@linux.ibm.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.