[Owncloud] more than 2TB bug

Mathias Döhle mathias.doehle at bremen.piratenpartei.de
Sat Jul 28 12:14:49 UTC 2012


hello

I have install owncloud on  openindiana with a 3,5TB zfs. In
lib/filestorage/local.php the function free_space fails because of a
overflow. I have fixed it q'n'd as shown below. So the function allways
return 2TB as long as the volume is more than this size. That is not
nice but it works.

164         public function free_space($path){
165                 $df = null;
166                 $df = @disk_free_space($this->datadir.$path);
167                 if ($df == null) return 2048000000;
168                 else return $df;
169         }

greetings
matt




More information about the Owncloud mailing list