| To: | Eric Sandeen <sandeen@xxxxxxx> |
|---|---|
| Subject: | Re: Hacking XFS (was Re: reserve space for root?) |
| From: | Andi Kleen <ak@xxxxxxx> |
| Date: | Wed, 28 Aug 2002 10:23:16 +0200 |
| Cc: | Alexander Kabaev <ak03@xxxxxxx>, James Rich <james@xxxxxxxxxxxxxxxxxxxx>, hch@xxxxxxxxxxxxx, lord@xxxxxxx, linux-xfs@xxxxxxxxxxx |
| In-reply-to: | <Pine.LNX.4.44.0208271925300.7497-100000@stout.americas.sgi.com> |
| References: | <20020827185537.68c2a006.ak03@gte.com> <Pine.LNX.4.44.0208271925300.7497-100000@stout.americas.sgi.com> |
| Sender: | linux-xfs-bounce@xxxxxxxxxxx |
| User-agent: | Mutt/1.3.22.1i |
On Tue, Aug 27, 2002 at 07:27:18PM -0500, Eric Sandeen wrote:
>
> Hey, I like it. I think it begs for a script, though - you may get
> tired of this on the days when 8 or so TAKE messages fly by!
>
> At one point Russell had a procmail filter that would attach diffs
> to TAKE messages, by querying CVS I think - automation like that
> would make your life easier.
I wrote a script to do that some time ago. Just pipe the TAKE message
in and run it over a checked out XFS. Pipe the output to a shell.
-Andi
#!/usr/bin/perl
#turn SGI ptools "TAKE" messages into a shell script for a CVS diff to
#recreate the take from a mirrored CVS repository.
while (<>) {
last if /^Modid:/;
print "# $_";
}
if (/^Modid:/) {
print "# --- \n";
while (<>) {
if (/^([^ ]+) - (\d+)\.(\d+)/) {
$p = $3-1;
if ($p == 0) {
$source = "/dev/null";
} else {
$source = "-r $2.$p"
}
print "cvs diff -u $source -r $2.$3 $1\n";
} elsif (!/^$/) {
print "# $_";
}
}
}
|
| Previous by Date: | Re: virus Re: A very new website, Ethan Benson |
|---|---|
| Next by Date: | xfsdump, root |
| Previous by Thread: | Re: Hacking XFS (was Re: reserve space for root?), Eric Sandeen |
| Next by Thread: | Re: Hacking XFS (was Re: reserve space for root?), Seth Mos |
| Indexes: | [Date] [Thread] [Top] [All Lists] |