From: Bob Peterson Date: Fri, 02 Nov 2007 12:01:56 -0500 Subject: [Cluster-devel] [PATCH][GFS2] Given device ID rather than s_id in "id" sysfs file In-Reply-To: <20071102145543.GA6480@redhat.com> References: <1194014236.21497.20.camel@technetium.msp.redhat.com> <20071102145543.GA6480@redhat.com> Message-ID: <1194022916.21497.27.camel@technetium.msp.redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit On Fri, 2007-11-02 at 09:55 -0500, David Teigland wrote: > We have to be extremely cautious when changing the kernel abi like this; > have you verified that it doesn't break any existing programs? Dave has a good point here. I've verified that no other gfs2 util uses the "id" except for gfs2_tool. However, this kernel change makes previous userland versions of gfs2_tool stop working in some cases, for example, gfs2_tool gettune and settune. Customers would need to upgrade their gfs2_tool to use the new gfs2 kernel module. For that reason, perhaps we should revert this patch and instead export the device id to a separate /sys/fs file called /sys/fs/gfs2//device_id or some such. That would ensure backward compatibility with older userland tools. BTW, this also led me to discover that the gfs2 quota tool uses /sys/fs/gfs2//xxx which, in the case of stand-alone file systems, would be a NULL string. The quota tool should be changed to use the same interface as gfs2_tool to determine the proper path in sysfs. Perhaps I'll open a bugzilla record on it. Regards, Bob Peterson Red Hat Cluster Suite