Re: BTRFS file clone support for cp

2009-07-27 Thread Jim Meyering
Pádraig Brady wrote: > Giuseppe Scrivano wrote: >> Hello, >> >> the BTRFS file system, avaiable on Linux since its 2.6.29 version, >> supports file cloning. This simple patch adds the support for this >> feature to the cp utility. > > Right, so using the COW feature of BTRFS to speed up copies, >

Re: [PATCH] tr: more descriptive help text

2009-07-27 Thread Jim Meyering
Pádraig Brady wrote: > Heikki Orsila wrote: >> --- >> src/tr.c |2 +- >> 1 files changed, 1 insertions(+), 1 deletions(-) >> >> diff --git a/src/tr.c b/src/tr.c >> index e9338d4..8084447 100644 >> --- a/src/tr.c >> +++ b/src/tr.c >> @@ -291,7 +291,7 @@ Usage: %s [OPTION]... SET1 [SET2]\n\ >>

Re: [PATCH] tr: more descriptive help text

2009-07-27 Thread Pádraig Brady
Jim Meyering wrote: > Pádraig Brady wrote: >> Heikki Orsila wrote: >>> --- >>> src/tr.c |2 +- >>> 1 files changed, 1 insertions(+), 1 deletions(-) >>> >>> diff --git a/src/tr.c b/src/tr.c >>> index e9338d4..8084447 100644 >>> --- a/src/tr.c >>> +++ b/src/tr.c >>> @@ -291,7 +291,7 @@ Usage: %s

Re: bug in ls -1U: argument files printed after their contents

2009-07-27 Thread Kamil Dudka
Hi Jim, On Sat July 25 2009 16:36:13 Jim Meyering wrote: > In the mean time, I've written a test for this. > Along the way, I noticed that ls -UR1 no longer works the > way I would expect, since the -R is effectively ignored. > This suggests that we may want to disable the optimization also > when

Re: [PATCH] tr: more descriptive help text

2009-07-27 Thread Heikki Orsila
On Mon, Jul 27, 2009 at 09:29:10AM +0200, Jim Meyering wrote: > How about "use the complement of SET1" ? That's better as well. Maybe: "Use a complement of SET1. This means characters not in SET1." -- Heikki Orsila heikki.ors...@iki.fi http://www.iki.fi/shd ___

Re: bug in ls -1U: argument files printed after their contents

2009-07-27 Thread Jim Meyering
Kamil Dudka wrote: > Hi Jim, > > On Sat July 25 2009 16:36:13 Jim Meyering wrote: >> In the mean time, I've written a test for this. >> Along the way, I noticed that ls -UR1 no longer works the >> way I would expect, since the -R is effectively ignored. >> This suggests that we may want to disable

Re: tail -f: --pid *and* inotify

2009-07-27 Thread Jim Meyering
Giuseppe Scrivano wrote: > Jim Meyering writes: >> Hi Giuseppe, >> >> I've realized that there is a good way to remove the ugly exclusion >> that currently disables inotify-based tail -f when --pid is specified. >> Instead of the existing while-1-loop around code that reads the inotify >> FD, we c

Re: BTRFS file clone support for cp

2009-07-27 Thread Jim Meyering
Giuseppe Scrivano wrote: > Jim Meyering writes: > Adding this optimization should not change the meaning of --sparse=always. >>> >>> So do you want to use it only when --sparse=auto is used? >> >> Precisely. > > I cleaned the patch a bit, the clone operation is done only when > --sparse=

Re: A request for addition of a command

2009-07-27 Thread Tak Ota
Mon, 27 Jul 2009 00:54:04 +0100: James Youngman wrote: > On Fri, Jul 24, 2009 at 8:17 PM, Kamil Dudka wrote: > > Or the word transformation operators /, %% and ## built into the shell. > > $ x=foobar; echo ${x%%bar} ; echo ${x##foo}; echo ${x/oob/_} > foo > bar > f_ar > > James. James, These

Re: BTRFS file clone support for cp

2009-07-27 Thread Andreas Schwab
Jim Meyering writes: > +#ifdef __linux__ > +# define BTRFS_IOC_CLONE 1074041865 This is wrong, the actual value is architecture dependent. You should use the _IOW macro instead. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8

Re: BTRFS file clone support for cp

2009-07-27 Thread Giuseppe Scrivano
Jim Meyering writes: >> Another possible issue with this I can think of is >> depending on the modification pattern of the COW files, >> the modification processes could fragment the file or >> more seriously be given ENOSPC errors. > > I hope btrfs takes care of this behind the scene. > > How do

Re: tail -f: --pid *and* inotify

2009-07-27 Thread Giuseppe Scrivano
Jim Meyering writes: > A couple of points: > > Please move these declarations down into the scope where they are used. > > > It would be better not to perform the kill test after every > single select call when actively tailing files. > Considering how --pid is documented (in the texinfo manual),

Re: BTRFS file clone support for cp

2009-07-27 Thread Pádraig Brady
Giuseppe Scrivano wrote: > Jim Meyering writes: > >>> Another possible issue with this I can think of is >>> depending on the modification pattern of the COW files, >>> the modification processes could fragment the file or >>> more seriously be given ENOSPC errors. >> I hope btrfs takes care of t

Re: copyright years: mass-update every January 1

2009-07-27 Thread Joel E. Denny
Hi Jim. On Fri, 26 Jun 2009, Jim Meyering wrote: > >From 85dd41402048603c977f49c5d1ea349b1c724531 Mon Sep 17 00:00:00 2001 > From: Jim Meyering > Date: Fri, 26 Jun 2009 13:33:59 +0200 > Subject: [PATCH] maint: add a rule to automate the annual > copyright-year-update process > > * build-aux/up