Skip to content

Commit

Permalink
Backup/restore ACL attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
procount committed Nov 8, 2021
1 parent 507460f commit cf71502
Show file tree
Hide file tree
Showing 20 changed files with 1,522 additions and 1,512 deletions.
3 changes: 3 additions & 0 deletions recovery/backupthread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,13 +170,16 @@ bool BackupThread::processImage(const QVariantMap & entry)
//#442 - remove useless socket files that prevent tar working
readexec(1, "mount -o rw "+dev+" /tmp/src", error);
readexec(1, "find /tmp/src -type s -exec rm {} \\;", error);
// Store extended ACL attributes
readexec(1, "sh -c \"cd /tmp/src; getfacl -s -R . >/tmp/src/acl_permissions.pinn\"", error);
readexec(1, "umount /tmp/src", error);

// Mount it
QProcess::execute("mount -o ro "+dev+" /tmp/src");
emit newDrive(dev, ePM_READSTATS);
QString cmd;


emit startAccounting();
if (fstype=="raw")
{
Expand Down
7 changes: 7 additions & 0 deletions recovery/multiimagewritethread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1547,8 +1547,15 @@ QMessageBox::ButtonRole MultiImageWriteThread::untar(const QString &tarball, co
//S emit error(tr("Error downloading or extracting tarball")+"\n"+msg);
return QMessageBox::RejectRole ;
}

if (QFile::exists("/mnt2/acl_permissions.pinn"))
{
int error;
readexec(1, "sh -c\"cd /mnt2; setfacl --restore=acl_permissions.pinn\"", error);
}
qDebug() << "finished writing filesystem in" << (t1.elapsed()/1000.0) << "seconds";


return QMessageBox::AcceptRole;
}

Expand Down
168 changes: 84 additions & 84 deletions recovery/translation_ca.ts

Large diffs are not rendered by default.

168 changes: 84 additions & 84 deletions recovery/translation_de.ts

Large diffs are not rendered by default.

168 changes: 84 additions & 84 deletions recovery/translation_en.ts

Large diffs are not rendered by default.

168 changes: 84 additions & 84 deletions recovery/translation_es.ts

Large diffs are not rendered by default.

168 changes: 84 additions & 84 deletions recovery/translation_eu.ts

Large diffs are not rendered by default.

168 changes: 84 additions & 84 deletions recovery/translation_fi.ts

Large diffs are not rendered by default.

168 changes: 84 additions & 84 deletions recovery/translation_fr.ts

Large diffs are not rendered by default.

168 changes: 84 additions & 84 deletions recovery/translation_hu.ts

Large diffs are not rendered by default.

168 changes: 84 additions & 84 deletions recovery/translation_it.ts

Large diffs are not rendered by default.

168 changes: 84 additions & 84 deletions recovery/translation_ja.ts

Large diffs are not rendered by default.

168 changes: 84 additions & 84 deletions recovery/translation_ko.ts

Large diffs are not rendered by default.

168 changes: 84 additions & 84 deletions recovery/translation_nl.ts

Large diffs are not rendered by default.

168 changes: 84 additions & 84 deletions recovery/translation_no.ts

Large diffs are not rendered by default.

168 changes: 84 additions & 84 deletions recovery/translation_pl.ts

Large diffs are not rendered by default.

168 changes: 84 additions & 84 deletions recovery/translation_pt.ts

Large diffs are not rendered by default.

168 changes: 84 additions & 84 deletions recovery/translation_ru.ts

Large diffs are not rendered by default.

168 changes: 84 additions & 84 deletions recovery/translation_sv.ts

Large diffs are not rendered by default.

168 changes: 84 additions & 84 deletions recovery/translation_tr.ts

Large diffs are not rendered by default.

0 comments on commit cf71502

Please sign in to comment.