Skip to content

Commit

Permalink
updating configuration file
Browse files Browse the repository at this point in the history
Signed-off-by: Arpit Goyal <[email protected]>
  • Loading branch information
agmps17 committed Jul 15, 2014
1 parent 9b57a94 commit 801e3be
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/poolings/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,15 @@ def self.greyhole_conf(partitions, shares)
end

def self.share_conf(s)
"num_copies[#{s[:comment]}] = #{s[:disk_pool_copies]}\n"
Rails.logger.error "i am here"
name = s.name
pool = DiskPoolShare.where(:share_id=>s.id).first
if pool
copies = pool.extra_copies
else
copies = 0
end
"num_copies[#{name}] = #{copies}\n"
end

def self.partition_conf(p)
Expand Down

0 comments on commit 801e3be

Please sign in to comment.