OpenELEC / service.openelec.settings

service.openelec.settings - OpenELEC settings addon
Other
12 stars 35 forks source link

At First trying to make a hardlink from backupfile #63

Open dolorosus opened 9 years ago

dolorosus commented 9 years ago

On small systems (e.g. openelec with 8Gb Micro sim), large Backupfiles can't be restore due to missing space for creating the copy of the backup tarfile in .restore. Trying first to create a hardlink of the tarfile will avoid this this problem. creating a hardlink is much faster than than copying the tarfile. If cerating the link results in error, a copy of the tarfile will be created the same way as before .

stefansaraev commented 9 years ago

@lfiebach @sraue you ok with this ?

@dolorosus please remove the merge commit and set some more clear commit msg instead of "update xxx" on the other. thanks.

stefansaraev commented 9 years ago

@dolorosus for some weird stupid reason, LOT of RPi/RPi2 users prefer to have their /storage formatted as fat32 (of couse we dont support that). just fyi, this will break backup/restore for people who do nonsense ;)

dolorosus commented 9 years ago

No, it won't ;) Creating hardlinks on fat32 will result in an OSError. This is catched and results in a filecopy as before.

stefansaraev commented 9 years ago

oh. cool.

stefansaraev commented 9 years ago

mind rebasing ? see my first comment,