]> git.sur5r.net Git - bacula/bacula/commitdiff
Tweak also allow restore of Hurd acl and xattr streams.
authorMarco van Wieringen <mvw@planets.elm.net>
Thu, 11 Oct 2012 11:16:39 +0000 (13:16 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:51:01 +0000 (14:51 +0200)
bacula/src/filed/restore.c
bacula/src/findlib/bfile.c
bacula/src/stored/bscan.c

index fc22b375c28703d385c492ba23a57a1ee47c43af..96edcc808b9bb3224afc7918a9cdca4db9759e97 100644 (file)
@@ -302,11 +302,14 @@ static inline bool pop_delayed_data_streams(JCR *jcr, r_ctx &rctx)
       case STREAM_ACL_AIX_AIXC:
       case STREAM_ACL_AIX_NFS4:
       case STREAM_ACL_FREEBSD_NFS4_ACL:
+      case STREAM_ACL_HURD_DEFAULT_ACL:
+      case STREAM_ACL_HURD_ACCESS_ACL:
          if (!do_restore_acl(jcr, rds->stream, rds->content, rds->content_length)) {
             goto bail_out;
          }
          free(rds->content);
          break;
+      case STREAM_XATTR_HURD:
       case STREAM_XATTR_IRIX:
       case STREAM_XATTR_TRU64:
       case STREAM_XATTR_AIX:
@@ -892,6 +895,8 @@ void do_restore(JCR *jcr)
       case STREAM_ACL_AIX_AIXC:
       case STREAM_ACL_AIX_NFS4:
       case STREAM_ACL_FREEBSD_NFS4_ACL:
+      case STREAM_ACL_HURD_DEFAULT_ACL:
+      case STREAM_ACL_HURD_ACCESS_ACL:
          /*
           * Do not restore ACLs when
           * a) The current file is not extracted
@@ -920,6 +925,7 @@ void do_restore(JCR *jcr)
          }
          break;
 
+      case STREAM_XATTR_HURD:
       case STREAM_XATTR_IRIX:
       case STREAM_XATTR_TRU64:
       case STREAM_XATTR_AIX:
index 0d4c1062af6ef003116d07cd0a4b82c3c521f9c3..e3156756c68a03a8fec72a2b091e35e84e09dfeb 100644 (file)
@@ -187,6 +187,12 @@ const char *stream_to_ascii(int stream)
       return _("AIX Specific NFSv4 ACL attribs");
    case STREAM_ACL_FREEBSD_NFS4_ACL:
       return _("FreeBSD Specific NFSv4/ZFS ACL attribs");
+   case STREAM_ACL_HURD_DEFAULT_ACL:
+      return _("GNU Hurd Specific Default ACL attribs");
+   case STREAM_ACL_HURD_ACCESS_ACL:
+      return _("GNU Hurd Specific Access ACL attribs");
+   case STREAM_XATTR_HURD:
+      return _("GNU Hurd Specific Extended attribs");
    case STREAM_XATTR_IRIX:
       return _("IRIX Specific Extended attribs");
    case STREAM_XATTR_TRU64:
index 93b118dc1c106ef3afab36254c580495e90779fa..d22560d9b1422930a741b0eeeb2f429f56847616 100644 (file)
@@ -839,6 +839,8 @@ static bool record_cb(DCR *dcr, DEV_RECORD *rec)
    case STREAM_ACL_AIX_AIXC:
    case STREAM_ACL_AIX_NFS4:
    case STREAM_ACL_FREEBSD_NFS4_ACL:
+   case STREAM_ACL_HURD_DEFAULT_ACL:
+   case STREAM_ACL_HURD_ACCESS_ACL:
       /* Ignore Unix ACL attributes */
       break;