ameer1234567890 / OnlineNandroid

Nandroid Backup without Reboot
Other
117 stars 46 forks source link

Data partition size calculated incorrectly when specifying the --exclude-gmusic flag #38

Closed jhudak closed 10 years ago

jhudak commented 10 years ago

When specifying the --exclude-gmusic flag the size of the music directory is not subtracted from the calculated /data partition size. The required space calculation is over-estimated, which can cause an unnecessary exit with the E_NOSPACE error.

The data partition size check should do something similar to how it handles $data_mount/media, such as:

if $bb [ "$exclude_gmusic" == "yes" ]; then
    u_datagmusic=`$bb du -sm $data_mount/data/com.google.android.music/files/* | tail -n 1 | $bb awk '{print $1}'`
    u_data=`$bb expr $u_data - $u_datagmusic`
fi
ameer1234567890 commented 10 years ago

Will be fixed in next version.

ameer1234567890 commented 10 years ago

Fixed in v9.51