Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5476201pxj; Wed, 26 May 2021 11:22:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxUBPs6RS4qyOrSVeRlGHhxu2V5Ygx1pYxiA2rT/DiprHJGV+qKm1T0myd4zMGNb5hYD1BR X-Received: by 2002:a17:907:1b11:: with SMTP id mp17mr35412848ejc.1.1622053355816; Wed, 26 May 2021 11:22:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622053355; cv=none; d=google.com; s=arc-20160816; b=VaOyto7QQyNuPktNZ04/94VgTyYd2zPdL8CddWS7f+jMB1gi/IHSWd7/WOGJCjLKGL TkvDNCwWywofGriwUZ+7p5IfuNcMI1JLd/MwlSSoZfaeGFv1CMQi8UGt9RgpHcfjWjZM 1BVGU0q8wgMQg4fjL7aQkIWKaYjQVHMFsxqU4lWOTotD5/N7YW+bRNow4txhMnxKV+IP i4ajOrHRJCLJ4iY2X7QdANI3XtiS/sTYyW9KH/I4rRoU+Sxig/rkIGtBTrMewfaDsZEP /5+QfBtKtMwd9goP0CEc+2L8dZwi3rUFzQJemjFtnFCAtSUt/GQUpyjwZaf0Iz4sWcrj Kyaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:user-agent:date:message-id:subject:from:cc:to :dkim-signature; bh=N0nAAZvYifPXjcEpypDLmLSwHUyzW9xmmEwwT5BEUw0=; b=ARLgNYwyPA0wknsOUlQMq5FQcn9bf6A1+x+MPcS7/4zYYca1DOZO/fIF/1nWuMIsb2 O+U5GGLBG9glqQntlEIHs9NQNboBJjArP+/9a3rfS9ZEOoOzRx0NqmBGV1mcp49vkj4l +fAOUdn7HDJN6OBGdzL47tU7+2/NLa8/khgNQ2caEldRXa0jjEZMXssD8h8S2AzdDQpV KLDiSvzmdNTiDuN5C05Znm6/n8/dJACJMLzHQuNmdAitKHu5gQZGb8APkqTHOuk7RqRM nxs30CDHq5OV6MmlkKqErdzBAotUgaxIbIUHsqn+7DpSXtbcMX/KWCZDc7BtrmIvr2cg OC/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@geanix.com header.s=first header.b=I6h3yiLm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=geanix.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z25si81645edq.31.2021.05.26.11.22.11; Wed, 26 May 2021 11:22:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@geanix.com header.s=first header.b=I6h3yiLm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=geanix.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233316AbhEZNXH (ORCPT + 99 others); Wed, 26 May 2021 09:23:07 -0400 Received: from first.geanix.com ([116.203.34.67]:57262 "EHLO first.geanix.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233424AbhEZNWi (ORCPT ); Wed, 26 May 2021 09:22:38 -0400 Received: from [192.168.64.199] (unknown [185.17.218.86]) by first.geanix.com (Postfix) with ESMTPSA id 565E446662F; Wed, 26 May 2021 13:21:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=geanix.com; s=first; t=1622035261; bh=TJey1MvuTbWiLP/QBgHq+uFXk5+SBvtpN6iiXWFTXl0=; h=To:Cc:From:Subject:Date; b=I6h3yiLm9bTpBvSUaim/DL1WWOexZCYhO+BYzdlZcoynjS4hSeEVR2rPnx2BIw5Ed DqOdM2q4eYvE/UQrQkyJ5XGgLuJF5nQiF+s5faQmbPDFZcLlZU8IWFnyletSuf1lJ+ 3cLIpVerspUGujuVuXcKFWwdkeKYi9bN9Fwd0Hp4r2qwuSkUVcKe5LfdWjJuTvRNxm OQPsVezZy5G5FT5sbO6DxoYDzZqDFKy/a/ay6w6CM38FZ+cmcPb6AyNEtYpv6PIhTC doPUI/9/gcfZaRgZ/1MMp1Ok6BqBOjV6pUrG0/WzWmP3LZcn2RioX2TtyXMk9Od54Y Ab4+mRCOanzDA== To: dhowells@redhat.com, viro@zeniv.linux.org.uk Cc: phillip@squashfs.org.uk, squashfs-devel@lists.sourceforge.net, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org From: Sean Nyekjaer Subject: Squashfs on ubi blockdev Message-ID: <2d27c68c-4ac8-c0ae-3f95-9b6234a4d31d@geanix.com> Date: Wed, 26 May 2021 15:21:00 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.1 required=4.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,URIBL_BLOCKED autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on 93bd6fdb21b5 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, After: 5a2be1288b514 ("vfs: Convert squashfs to use the new mount API") We see this; when mounting a squashfs from a ubiblockdev: root@iwg26-v2:/data/root# mount /dev/ubiblock0_6 /mnt [ 39.884295] /dev/ubiblock0_6: Can't open blockdev But the filesystem is mounted anyway... I have tried checking the returned error code get_tree_bdev() -> blkdev_get_by_path() returns -EROFS. I have also tried to see what happens in squashfs_get_tree() it will be re-run with the ro option set. Which explains why the filesystem ends up mouted. [ 39.889461] ####Custom debug: squashfs_get_tree -30 [ 39.906309] ####Custom debug: squashfs_get_tree 0 Fair enough it's after all a squashfs :) But could the error message be better? Or just filter out the print when getting a EROFS? Br, /Sean