mogtool no spaces in dkey, mogilefs allows?

3 views
Skip to first unread message

Marc Byrd

unread,
Jun 30, 2009, 2:42:13 PM6/30/09
to mog...@googlegroups.com
Hello,

We've been using mogilefs w/ our PHP app for more than a year.  Perhaps because of the PHP library, we have about 66 out of 250k files that contain one or more spaces.  We're using mogtool to move some of these files around from one mogile to another, but as you might imagine, mogtool is choking on the spaces in dkeys. 

To be clear, our goal here is to get a "clone" of our production mogile setup on a staging server, so renaming these 66 files w/ '-' replacing ' ' is not an option. 

What if we replaced w/ '+' ?  Or with a urlencoding %20 sequence? 

What is the best practice here?

m








Ask Bjørn Hansen

unread,
Jun 30, 2009, 9:29:12 PM6/30/09
to mog...@googlegroups.com

On Jun 30, 2009, at 11:42, Marc Byrd wrote:

> What is the best practice here?

Just write your own code to move the files around instead of using
mogtool. Use MogileFS::Client (or the library for your language of
choice); it will be faster, too.


- ask

sanados

unread,
Jul 1, 2009, 1:53:22 AM7/1/09
to mog...@googlegroups.com
not confirmed but it would be linux-like:

just put your dkey into " "?
it works for ordinary files, i think mogtool only needs to recognize the
two (more) words as one parameter and the lookup should work again.

lg
Jürgen

Reply all
Reply to author
Forward
0 new messages