Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1172254AbdDXPr1 (ORCPT ); Mon, 24 Apr 2017 11:47:27 -0400 Received: from b.ns.miles-group.at ([95.130.255.144]:44724 "EHLO radon.swed.at" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S971629AbdDXPrP (ORCPT ); Mon, 24 Apr 2017 11:47:15 -0400 Subject: Re: [PATCH v2 3/3] fs: ubifs: set s_uuid in super block To: Oleksij Rempel , Christoph Hellwig References: <20170411095055.26328-1-o.rempel@pengutronix.de> <20170411095055.26328-4-o.rempel@pengutronix.de> <5d7d0f21-d87f-0835-c2f6-b6c9e07f73a8@nod.at> <20170412054828.GA20561@infradead.org> <20170412071551.i36yj3lzilgtntdy@pengutronix.de> Cc: dedekind1@gmail.com, adrian.hunter@intel.com, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Steffen Trumtrar From: Richard Weinberger Message-ID: <803a8cc8-d2d1-dddf-2e07-621b1484218a@nod.at> Date: Mon, 24 Apr 2017 17:47:05 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: <20170412071551.i36yj3lzilgtntdy@pengutronix.de> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 909 Lines: 29 Oleksij, Am 12.04.2017 um 09:15 schrieb Oleksij Rempel: > On Tue, Apr 11, 2017 at 10:48:28PM -0700, Christoph Hellwig wrote: >> On Tue, Apr 11, 2017 at 10:43:26PM +0200, Richard Weinberger wrote: >>> Artem, do you remember why UBIFS didn't set s_uuid in first place? >> >> It's an extremely odd field - only a hand full of file systems set it >> (e.g. XFS doesn't, although according to Mimi IMA supports XFS), and >> it's never even used outside of the IMA/EVM code. >> >> We really need a feature flag that this field is valid that IMA can >> check before adding more support for it. > > It seems to be used by mm/cleancache.c > void __cleancache_init_shared_fs() > > but this affects only ocfs2. > > So, if some flag should be implemented, who should do it? :) I'll not do it for you. ;) > If me, what flag should be created? A super block flag that denotes that s_uuid is valid. Thanks, //richard