core icon indicating copy to clipboard operation
core copied to clipboard

Wrong Foldersize

Open RandolfCarter opened this issue 14 years ago • 10 comments

As reported in the forum ( http://forum.owncloud.org/viewtopic.php?f=4&t=5053 ):

I have copied a folder on the server in the data directory. This folder has ~17GB and only this one file with more than 2GB (negative size) and no other file has negative size in the mysql. But owncloud show me that this folder has ~12GB.

See also this other issue about negative file sizes: https://github.com/owncloud/core/issues/388

If possible, questions should be asked in the forum.

RandolfCarter avatar Nov 13 '12 10:11 RandolfCarter

There are some issues regarding files/folder size due to the current file cache implementation. This is expected to be changed for OC5.

DeepDiver1975 avatar Nov 19 '12 13:11 DeepDiver1975

I'm also experiencing problems with erroneous folder sizes: http://forum.owncloud.org/viewtopic.php?f=4&t=6152

andredasilvapinto avatar Nov 22 '12 15:11 andredasilvapinto

This seems to be a critical bug. @icewind1991 Can you have a look?

karlitschek avatar Nov 23 '12 10:11 karlitschek

maybe related to #388

DeepDiver1975 avatar Nov 23 '12 10:11 DeepDiver1975

In my case, it doesn't seem related with > 2 GB files limitation. The largest file size within my folder is just 4.4M

sudo du -a /home/dataserver/data/user | sort -n -r | head -n 50

andredasilvapinto avatar Nov 23 '12 11:11 andredasilvapinto

My problem seems fixed with the latest update (4.5.3).

andredasilvapinto avatar Nov 28 '12 11:11 andredasilvapinto

Great. Thanks a lot.

karlitschek avatar Nov 28 '12 11:11 karlitschek

Any idea what fixed this issue?

DeepDiver1975 avatar Nov 28 '12 11:11 DeepDiver1975

I'm not sure if the >2GB problem was already fixed or not, as my problem was happening even with small files, but it's in the changelog:

"- Fix wrong folder size calculation"

http://owncloud.org/releases/Changelog

so something must have been done in order to fix this :)

Thanks!

andredasilvapinto avatar Nov 28 '12 11:11 andredasilvapinto

I'm also not sure if this is fixed once and for all: First, there is still the possibility for negative file sizes (https://github.com/owncloud/core/issues/388). Second, the notice described in https://github.com/owncloud/core/issues/726 is happening inside the "increaseSize" function which is doing the update to the folder sizes, which I think indicates that some folder sizes aren't properly updated (no idea yet as to why).

RandolfCarter avatar Dec 05 '12 13:12 RandolfCarter