Project

General

Profile

Bug #1808

Size function in Shares does not account for symlinks (e.g. Greyhole shares)

Added by bigfoot65 over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
-
Start date:
09/04/2015
Due date:
% Done:

0%


Description

It appears the new Size feature for shares does not take into account Greyhole. When I checked on a Greyhole enabled share, it reflected only a few MB of data when in fact the share has GB of data.

Not sure how hard this will be to do, but it should account for symbolic links and appears it does not.

History

#1 Updated by cpg over 5 years ago

  • Subject changed from Size Function in Shares to Size function in Shares does not account for symlinks (e.g. Greyhole shares)

#2 Updated by bigfoot65 over 5 years ago

In the following file:
/var/hda/platform/html/plugins/020-shares/app/controllers/shares_controller.rb

Change the code below in line #140:

du -sb
to
du-sdL

This will account for symbolic links and report the correct total size for the share.

#3 Updated by cpg over 5 years ago

  • Assignee changed from cpg to bigfoot65

i will assume you meant

du -sbL

the -d would not appy or work, methinks.

#4 Updated by bigfoot65 over 5 years ago

Yea sorry about that, fat fingered it LOL

#5 Updated by cpg over 5 years ago

  • Status changed from New to Closed
  • Assignee changed from bigfoot65 to cpg

fixed in #3542992. will be released in the next version we push out.

Also available in: Atom