From: Markus Suvanto <markus.suvanto@gmail.com>
To: Atila <atila.alr@dpf.gov.br>
Cc: linux-btrfs@vger.kernel.org, Chris Mason <chris.mason@oracle.com>
Subject: Re: [PATCH]Re: The first character disappears
Date: Mon, 24 Aug 2009 16:52:06 +0300 [thread overview]
Message-ID: <bcf98daa0908240652p22b786a9m9c9b3d563b0903f6@mail.gmail.com> (raw)
In-Reply-To: <4A928CEF.2060903@dpf.gov.br>
After this patch against the latest
git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-progs-unstabl=
e.git
bcp don't eat the first character anymore, thanks :)
2009/8/24 Atila <atila.alr@dpf.gov.br>:
> *
> Signed-off-by: Atila <atila.alr@dpf.gov.br>
> ---
> =A0bcp | =A0 =A06 +++---
> =A01 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/bcp b/bcp
> index 5729e91..7c6b351 100755
> --- a/bcp
> +++ b/bcp
> @@ -107,7 +107,7 @@ if src_args > 1:
> =A0 =A0 =A0 =A0 exit(1)
>
> =A0for srci in xrange(0, src_args):
> - =A0 =A0src =3D args[srci]
> + =A0 =A0src =3D args[srci].strip('/')
> =A0 =A0 if os.path.isfile(src):
> =A0 =A0 =A0 =A0 statinfo =3D os.lstat(src)
> =A0 =A0 =A0 =A0 force_name =3D None
> @@ -136,7 +136,7 @@ for srci in xrange(0, src_args):
> =A0 =A0 =A0 =A0 =A0 =A0 srcname =3D os.path.join(dirpath, x)
> =A0 =A0 =A0 =A0 =A0 =A0 statinfo =3D os.lstat(srcname)
>
> - =A0 =A0 =A0 =A0 =A0 =A0if srcname.startswith(src):
> + =A0 =A0 =A0 =A0 =A0 =A0if srcname.startswith(src + '/'):
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 part =3D srcname[len(src) + 1:]
>
> =A0 =A0 =A0 =A0 =A0 =A0 if stat.S_ISLNK(statinfo.st_mode):
> @@ -152,7 +152,7 @@ for srci in xrange(0, src_args):
>
> =A0 =A0 =A0 =A0 for f in filenames:
> =A0 =A0 =A0 =A0 =A0 =A0 srcname =3D os.path.join(dirpath, f)
> - =A0 =A0 =A0 =A0 =A0 =A0if srcname.startswith(src):
> + =A0 =A0 =A0 =A0 =A0 =A0if srcname.startswith(src + '/'):
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 part =3D srcname[len(src) + 1:]
>
> =A0 =A0 =A0 =A0 =A0 =A0 statinfo =3D os.lstat(srcname)
> --
> 1.6.4
>
> *
>
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" =
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2009-08-24 13:52 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <bcf98daa0908232200r854444dwde3cfcf6b2181c6b@mail.gmail.com>
2009-08-24 5:17 ` The first character disappears Markus Suvanto
2009-08-24 11:52 ` Chris Mason
2009-08-24 12:51 ` [PATCH]Re: " Atila
2009-08-24 13:52 ` Markus Suvanto [this message]
2009-08-24 14:22 ` Markus Suvanto
2009-08-24 16:42 ` Markus Suvanto
2009-08-24 17:11 ` Sage Weil
2009-08-25 8:04 ` Markus Suvanto
2009-08-25 20:19 ` [PATCH] Btrfs: fix arithmetic error in clone ioctl Sage Weil
2009-08-26 7:19 ` Markus Suvanto
2009-08-27 17:44 ` [PATCH]Re: The first character disappears Atila
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bcf98daa0908240652p22b786a9m9c9b3d563b0903f6@mail.gmail.com \
--to=markus.suvanto@gmail.com \
--cc=atila.alr@dpf.gov.br \
--cc=chris.mason@oracle.com \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox