Commit Graph

9 Commits

Author SHA1 Message Date
Ethan Yonker
6277c79727 Attempt to automatically identify data/media devices
Change-Id: Ia3007fbced9ce3bc94efdb3dacc582a5e68a49a4
2014-09-19 22:34:09 -05:00
Ethan Yonker
82ce28122d Fix reporting of folder size on exfat-fuse
Change-Id: Icfd4af21b9eeade68956e44ae89bae12398920df
2014-09-04 13:36:45 -05:00
Matt Mower
50248ab86b Simplify twrpTar skip dir checks, DU code cleanup
* Remove unused parent variable from twruDU constructor

* Replace manual checks for /data/media with DU's check_skip_dirs()
  function

* Remove check_skip_dirs(A,B) function which duplicates the
  functionality of check_skip_dirs(A)

* Remove redundant trailing slash removal from
  check_absolute_skip_dirs(); this function is only accessed through
  check_skip_dirs()

Change-Id: Icfe8d71de36e33db6749fc5896dd3eafbcf7c9a4
2014-04-15 15:28:45 +02:00
Dees Troy
1ce5e3369b Merge "Fix /data backup size if contains media subdirs" into android-4.4 2014-04-01 20:46:15 +02:00
Matt Mower
f77994d270 Fix /data backup size if contains media subdirs
/data/*/media directories are mistakenly being excluded from the size
calculation. Change to absolute dir exclude so that only /data/media is
excluded.

Change-Id: I6e97604d44e6ea2bdf7dfd8c68a2f90ba6d44415
2014-03-30 14:27:28 -04:00
Matt Mower
2f1b2ab223 Cleanup DU Get_Folder_Size function
Change-Id: I3c686c7c3a171f130d299fae586dc811cad0d3a9
2014-03-27 16:19:09 -05:00
Vojtech Bocek
05f87d6cca Fix skipping of relative paths and lost+found in twrpDU
Change-Id: Ib79029fd6237502338b041a6bc2f9e539536d6ad
Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
2014-03-13 14:55:12 +01:00
bigbiff bigbiff
c7360dd263 Clear the relative directory before passing on to twrpTar with the static du object. Otherwise we will not backup /system/media etc
Change-Id: Ib62af6ad8596aa18bf48cb750e2ecf442dadc627
2014-02-03 19:00:58 +01:00
bigbiff bigbiff
34684ff313 Create a TWRP Disk Usage Class to retain state about a directory and whether we should skip it in other classes like twrpTar.
Moved Get_Folder_Size to this new class.

Change-Id: If0a0220f900eb109581f2eeaf7b76e3f7d6886f1
2013-12-19 18:02:44 +00:00