Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1801576ybn; Thu, 26 Sep 2019 02:24:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqzBkIo1ue2pBSPnQxncgVrBwCHX1XB0GJ7mkqNL5qVFmPR/CEEdI1x6/HyfGT00YVc+B3PD X-Received: by 2002:a17:906:1357:: with SMTP id x23mr2196601ejb.66.1569489862184; Thu, 26 Sep 2019 02:24:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569489862; cv=none; d=google.com; s=arc-20160816; b=HnnuQPbq1E4DnnWPnizOANSJcW56aYkb5X0KYt7ObvhJcfgPymIFjauJa2I5Lnm7og YRRv8ZihmuSPUJuMQUvI9OO0IjwgttJI/B2WJJKbb3Wvnotodk4hJDQyvh47/2Nc0jFH lTg+FtctFwv6LrWu11pBlA7jYEJkDjFD3FbZmTgt3zOpkLeFFr/2p05lYEoc8Wktn6xX iaN/ilXG2f8/6CD8xazvG1oW6G6accT6guNu5oU8jSMbvWK/IACkwyn2S45wPpy8TLfE 0/Ns2xCKhwtZeend7tgDVinEYyz2bzeunUedbPvqDuBvcMpztR0L6+X3k28c2koWvITT bn9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=s5WL1PikIGDCDiVlnVAjHbpWFfMH8+XVfK0RmImiiVc=; b=UmsvwYXpDW1lJau+BFZ/FvI+HcTiFESx+H3z8bQxp7FSreSEebAs+d5VmrDwV1nP8g KI8Tymb/Bk6qsvOB3kaKrmfJO40tPfNVbCmgtlXhVnL2JAJHa7h8HfJdDxRFQIpNuB5B 32jFTnU7yxxv4lwIt5kuHtvLuI6Eq++HqS16Q7KVUaXMezq6E5IOC5MvzSiijBdCFJfr +7jG4lqgI61ILUqwCWcwQJheQYFA77EMC5AnsUEAjgJ3LaEQVUA3zwmLvqeEaY1ubSY8 xTV/SQFn1SSMOcZgk2Q1nkVJ5a15+gVpUl5uHsQhtRCwaZ8VGobfWtEyRZVg8MIfRPqO C5Dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=e930KWxS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v2si968015edm.80.2019.09.26.02.23.59; Thu, 26 Sep 2019 02:24:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=e930KWxS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731456AbfIYJ3V (ORCPT + 99 others); Wed, 25 Sep 2019 05:29:21 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:42022 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727635AbfIYJ3U (ORCPT ); Wed, 25 Sep 2019 05:29:20 -0400 Received: by mail-pg1-f196.google.com with SMTP id z12so2866181pgp.9; Wed, 25 Sep 2019 02:29:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=s5WL1PikIGDCDiVlnVAjHbpWFfMH8+XVfK0RmImiiVc=; b=e930KWxSGHghdJBKCpMUuMtQhEDrg/+rnZA72/dAq8pEs1fOOe3aA7chmi5B5PUSy1 oz8rLr1IsMyr8O00LKc5r/kXgdu533e1PzE80TUeIPAvYQsM9/2Fj5551V+rqqF/tvGQ ApkTltDXrTGJlAjxLAOt/FbTjbC8+iuthPbr3nr4zVginpLJbBagS5WXmLOFUvwxyVy1 9PndxKRt1MsURb/w+g1TtrUuYZTz2e+tixplVKtRjThTARIcFYgxsLoXHVKp4zMDFW2n rnGOoZTC3XfX1Et4rjBtZnt+GFALmjjP2KJLY/hJOOETQllOexvHspTPB7W5qjd0ZGR5 qZRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=s5WL1PikIGDCDiVlnVAjHbpWFfMH8+XVfK0RmImiiVc=; b=Hw039itljGSJg8snqVufGPE70xiGZgDLAHNEd0UANjOOoSIg99/VSBmkv2LsIz2VvR F98Hs4/tpOPCabrwbYHOEmxJHo/J7uKPTevj/C+9nVD5TQOGd0PAjZra01Eq23kBZJMP tF+nFKP5eXhXuz9wTPyo7B7w2pHssinutejtzvxB+h//WyULXPa+m8IN4phfscwQ10KM 1I9arCrSCM+L56Oo4ILm9fqgDUvxOo7Au0t91PnH1p87zfHQslyu0z9B4hLEdsevswBM 7a/k5Se23JLHvBA1JrfH1FsCWmebk5msbURKUIuijg7Xw9+98TLbjfAHBm3u8mgMH4zW WhDw== X-Gm-Message-State: APjAAAX4aW/Ifbi6Fkqm1AvDh70PMH+CkpjPL2tje1NzTaH4yw9EnRbL 9Bph/n0CQVQj8vWjw04BMP0= X-Received: by 2002:a17:90a:e50b:: with SMTP id t11mr5348045pjy.50.1569403759948; Wed, 25 Sep 2019 02:29:19 -0700 (PDT) Received: from localhost ([178.128.102.47]) by smtp.gmail.com with ESMTPSA id b20sm8493571pff.158.2019.09.25.02.29.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2019 02:29:19 -0700 (PDT) Date: Wed, 25 Sep 2019 17:29:13 +0800 From: Eryu Guan To: Amir Goldstein Cc: Zhihao Cheng , David Oberhollenzer , Eric Biggers , "zhangyi (F)" , fstests , linux-kernel Subject: Re: [PATCH xfstests v3] overlay: Enable character device to be the base fs partition Message-ID: <20190925092913.GR2622@desktop> References: <1569393333-128141-1-git-send-email-chengzhihao1@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 25, 2019 at 10:18:39AM +0300, Amir Goldstein wrote: > On Wed, Sep 25, 2019 at 9:29 AM Zhihao Cheng wrote: > > > > When running overlay tests using character devices as base fs partitions, > > all overlay usecase results become 'notrun'. Function > > '_overay_config_override' (common/config) detects that the current base > > fs partition is not a block device and will set FSTYP to base fs. The > > overlay usecase will check the current FSTYP, and if it is not 'overlay' > > or 'generic', it will skip the execution. > > > > For example, using UBIFS as base fs skips all overlay usecases: > > > > FSTYP -- ubifs # FSTYP should be overridden as 'overlay' > > MKFS_OPTIONS -- /dev/ubi0_1 # Character device > > MOUNT_OPTIONS -- -t ubifs /dev/ubi0_1 /tmp/scratch > > > > overlay/001 [not run] not suitable for this filesystem type: ubifs > > overlay/002 [not run] not suitable for this filesystem type: ubifs > > overlay/003 [not run] not suitable for this filesystem type: ubifs > > > > When checking that the base fs partition is a block/character device, > > FSTYP is overwritten as 'overlay'. This patch allows the base fs > > partition to be a character device that can also execute overlay > > usecases (such as ubifs). > > > > Signed-off-by: Zhihao Cheng > > Signed-off-by: Amir Goldstein > > Looks fine. > Eryu, you may change this to Reviewed-by Sure, thanks for the review! Eryu