From: Valerie Aurora Henson Subject: Coccinelle/spatch patches for e2fsprogs Date: Tue, 3 Feb 2009 13:49:20 -0500 Message-ID: <20090203184920.GE20654@shell> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="FCuugMFkClbJLl1L" To: linux-ext4@vger.kernel.org Return-path: Received: from mx1.redhat.com ([66.187.233.31]:36734 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751244AbZBCStY (ORCPT ); Tue, 3 Feb 2009 13:49:24 -0500 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n13InKKE032467 for ; Tue, 3 Feb 2009 13:49:20 -0500 Received: from shell.devel.redhat.com (shell.devel.redhat.com [10.10.36.195]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n13InMmb002380 for ; Tue, 3 Feb 2009 13:49:22 -0500 Received: from shell.devel.redhat.com (localhost.localdomain [127.0.0.1]) by shell.devel.redhat.com (8.13.8/8.13.8) with ESMTP id n13InKdZ001034 for ; Tue, 3 Feb 2009 13:49:20 -0500 Received: (from vaurora@localhost) by shell.devel.redhat.com (8.13.8/8.13.8/Submit) id n13InKEv001033 for linux-ext4@vger.kernel.org; Tue, 3 Feb 2009 13:49:20 -0500 Content-Disposition: inline Sender: linux-ext4-owner@vger.kernel.org List-ID: --FCuugMFkClbJLl1L Content-Type: text/plain; charset=us-ascii Content-Disposition: inline I began using Coccinelle towards the end of the e2fsprogs 64bit conversion and thought my scripts might be useful to share. I have made no effort to clean them up and at best they did not cover all cases, but they made life much easier for me. They might make a good starting point for other people converting to new interfaces in e2fsprogs. You can get spatch/Coccinelle here: http://www.emn.fr/x-info/coccinelle/#download A brief tutorial is here: http://lwn.net/Articles/315686/ -VAL --FCuugMFkClbJLl1L Content-Type: application/x-gzip Content-Disposition: attachment; filename="e2fsprogs_cocci.tar.gz" Content-Transfer-Encoding: base64 H4sIALSPiE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