Justin,<br><br>Thanks for the reply, I'll take a look at FIDQuery.<br><br>Unfortunately, that's basically what I'm trying to do, is get paths that contain the key in the URL. I was hoping to use MogileFS as sort of a two-in-one distributed file system and mirror system, where you could download the file directly from the storage node. It seems that isn't how MogileFS was intended to be used, it only serves as an application-level utility. Am I correct?
<br><br>Matt<br><br><div><span class="gmail_quote">On 3/19/07, <b class="gmail_sendername">Justin Huff</b> <<a href="mailto:jjhuff@mspin.net">jjhuff@mspin.net</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Matt,<br><br>10 days ago I posted a plugin (FIDQuery) that might be useful It allows<br>you to query for the domain/key of a given FID. Handy for debugging.<br><br>FilePaths looks to be more about mapping a file hierarchy onto mogile keys.
<br><br>If you're just wanting to get paths that actually contain the key in the<br>URL, you're probably out of luck.<br><br>--Justin<br><br>Matt Kent wrote:<br>> Hi all, I'm a new user of MogileFS. I'm using it for a senior project at
<br>> my university. Anyway, for my situation it would be helpful to get back<br>> the original file names of the files instead of 001.fid and the like.<br>> After some investigation, I found the FilePaths plugin in the MogileFS
<br>> source which seems to do just that. However, I can't figure out how to<br>> use it. Furthermore, I can't find any documented record of anyone else<br>> actually using it.<br>><br>> So my question is this: has anyone ever used the FilePaths plugin, and
<br>> if so, what does it do and how do you use it? Here's what I tried:<br>><br>> (using a ruby client from a rails app...)<br>><br>> My test code looks like this:<br>><br>> mg = MogileFS::MogileFS.new
(:domain => 'mydomain' :hosts =><br>> ["x.x.x.x:6001"],<br>> :root => '/var/mogdata')<br>> mg.store_file 'mykey', 'myclass', afile<br>
> assert mg.get_paths('mykey').size > 0<br>><br>> Pretty simple, just store the file and assert that it got stored<br>> somewhere. I got MogileFS set up so that works fine. Then I tried to add<br>> this line to /etc/mogilefs/mogilefsd.conf:
<br>><br>> plugins FilePaths<br>><br>> And then the client blows up, the list of paths it receives is nil and<br>> the test fails. What else do I have to do to get the plugin working? Thanks.<br>><br>> Matt
<br>><br>><br></blockquote></div><br>