From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ipmail03.adl2.internode.on.net ([150.101.137.141]:11407 "EHLO ipmail03.adl2.internode.on.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726681AbeHUDGW (ORCPT ); Mon, 20 Aug 2018 23:06:22 -0400 Date: Tue, 21 Aug 2018 09:47:29 +1000 From: Dave Chinner To: Andrei Vagin Cc: David Howells , linux-fsdevel@vger.kernel.org, Andrei Vagin Subject: Re: [PATCH dhowells/mount-api 2/2] selftests: implement a test for a new mount API Message-ID: <20180820234729.GH31495@dastard> References: <20180810220027.2735-1-avagin@openvz.org> <20180810220027.2735-2-avagin@openvz.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180810220027.2735-2-avagin@openvz.org> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Fri, Aug 10, 2018 at 03:00:27PM -0700, Andrei Vagin wrote: > From: Andrei Vagin > > Currently, a reconfigure call-back is implemented only for the proc file > system. This test creates a new mount and pid namespace and then we can > create a new proc mount instance and be sure that a host configuration > will not be affected. > > Signed-off-by: Andrei Vagin > --- > tools/testing/selftests/fsopen/Makefile | 5 + > tools/testing/selftests/fsopen/config | 2 + > tools/testing/selftests/fsopen/fsopen.c | 120 ++++++++++++++++++++++++ > 3 files changed, 127 insertions(+) > create mode 100644 tools/testing/selftests/fsopen/Makefile > create mode 100644 tools/testing/selftests/fsopen/config > create mode 100644 tools/testing/selftests/fsopen/fsopen.c can we get all this test stuff put into fstests? And then add a config option to the fstests mount commands so that they use the internal mount command to exercise the new API rather than use the existing mount binary? That way every filesystem developer /will/ exercise the new mount API in lots of interesting and unusual ways that are expected to work (or not work, as fstests exercises failure cases, too) in their day-to-day testing and development. This will flush out the bugs and problems much, much faster than a small selftest in the kernel tree that doesn't really interact with the bulk of the code that runs when filesystems are mounted/remounted. Cheers, Dave. -- Dave Chinner david@fromorbit.com