Jira (PUP-2899) storing stat() info in filebucket for items

2014-12-05 Thread daniel pecka (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 daniel pecka commented on  PUP-2899 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
  Re: storing stat() info in filebucket for items  
 
 
 
 
 
 
 
 
 
 
thanks, I would do it for myself but my ruby programming skill is enough to generate that one-liner .. to integrate it correctly to the puppet code is too much for me  .. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.3.7#6337-sha1:2ed701e) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-2899) storing stat() info in filebucket for items

2014-07-29 Thread daniel pecka (JIRA)
Title: Message Title










 

 daniel pecka commented on an issue


















  Re: storing stat() info in filebucket for items 












ruby -e 'path= /etc/hosts; stat = File.stat(path); puts ([path] + [:dev,:ino,:mode,:nlink,:uid,:gid,:rdev,:size,:atime, :mtime, :ctime, :blksize,:blocks].map {|n| stat.send(n).to_i }
).join(;)' /etc/hosts;64770;1051619;33188;1;0;0;0;1068;1406558576;1406102389;1406102389;4096;8


can anybody please put this code to filebucket.rb that it creates mentioned `meta' file ? probably adding there also last field (tag) will be great .. Moreover there is no need to do more right now .. I'm accessing a filebucket from external application completely












   

 Add Comment

























 Puppet /  PUP-2899



  storing stat() info in filebucket for items 







 Hello,   We need to enhance a filebucket function that it contains also `meta' file (along with contents and paths files) which will store a stat() information for file per path .. We'd also add there an additional field tag which would store some custom tag (string) if specified ..   Should we write this adjustment or do any of YOU want to add this c...















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




  

Jira (PUP-2899) adding stat() functionality to filebucket function

2014-07-07 Thread daniel pecka (JIRA)
Title: Message Title










 

 daniel pecka created an issue


















 Puppet /  PUP-2899



  adding stat() functionality to filebucket function 










Issue Type:

  Improvement




Assignee:


 Unassigned




Created:


 07/Jul/14 6:53 AM




Priority:

  Normal




Reporter:

 daniel pecka










Hello,
We need to enhance a filebucket function that it contains also `meta' file (along with contents and paths files) which will store a stat() information for file per path .. We'd also add there an additional field tag which would store some custom tag (string) if specified ..
Should we write this adjustment or do any of YOU want to add this capability ?
just something like this (used ; as separator, might be something else):


perl -e 'my $file = qq@/etc/hosts@; my $tag = foobar, my @fstat = stat $file; print join(qq/;/, $file, @fstat, $tag), \n' /etc/hosts;64768;8242;33188;1;0;0;0;231;1404654233;1404481396;1404481396;4096;8;foobar


would be great for items in filebucket in ``meta'' file .. eg in output below:


find $_bd -type f | grep 7fda24f62b1c7ae951db0f746dc6e0cc ./var/bucket/7/f/d/a/2/4/f/6/7fda24f62b1c7ae951db0f746dc6e0cc/paths ./var/bucket/7/f/d/a/2/4/f/6/7fda24f62b1c7ae951db0f746dc6e0cc/contents


would be additionally ``./var/bucket/7/f/d/a/2/4/f/6/7fda24f62b1c7ae951db0f746dc6e0cc/meta'' file with that content ..
what do you think about that please ?

Jira (PUP-2899) adding stat() functionality to filebucket function

2014-07-07 Thread daniel pecka (JIRA)
Title: Message Title










 

 daniel pecka commented on an issue


















  Re: adding stat() functionality to filebucket function 










okay, I was discussing that in #puppet channel on freenode and guys there are requesting some more background info, so here it comes:
we have some our framework helping us to generate a puppet .pp manifest files and we have to maintain separate db for storing files stat()s externally because we store files in filebucket and it just lacks this capability ..
regards, daniel
ps. please correct me if I am re-inventing the wheel pps. important part in our (my) request is additional last filed with custom $tag string .. we use it for real magic things and the only requirement for $tag field is that it holds some string which we parse/postprocess additionally












   

 Add Comment

























 Puppet /  PUP-2899



  adding stat() functionality to filebucket function 







 Hello,   We need to enhance a filebucket function that it contains also `meta' file (along with contents and paths files) which will store a stat() information for file per path .. We'd also add there an additional field tag which would store some custom tag (string) if specified ..   Should we write this adjustment or do any of YOU want to add this c...















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 

Jira (PUP-2899) storing stat() info in filebucket for items

2014-07-07 Thread daniel pecka (JIRA)
Title: Message Title










 

 daniel pecka updated an issue


















 Puppet /  PUP-2899



  storing stat() info in filebucket for items 










Change By:

 daniel pecka




Summary:

 adding storing stat() functionalityto infoin filebucket function foritems












   

 Add Comment






















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.