Ignore:
Timestamp:
Nov 19, 2006, 1:27:46 AM (14 years ago)
Author:
Bruno Cornec
Message:
  • mondoarchive does not backup acl+xattr by default anymore
  • Add -z option to mondoarchive to support acl+xattr backup
  • small mindi fix
  • this may break mondo compatibility so tests are required before distributing that version.
  • this is still incomplete as that aprameter should be passed for mondorestore to know what to do.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/src/common/libmondo-verify.c

    r911 r948  
    124124int g_last_afioball_number = -1;
    125125
     126extern char *g_getfacl;
     127extern char *g_getfattr;
    126128
    127129/**
     
    807809    malloc_string(curr_acl_list_fname);
    808810
    809     sprintf(curr_xattr_list_fname, XATTR_BIGGLST_FNAME_RAW_SZ,
     811    if (g_getfattr) {
     812        sprintf(curr_xattr_list_fname, XATTR_BIGGLST_FNAME_RAW_SZ,
    810813            bkpinfo->tmpdir);
    811     sprintf(curr_acl_list_fname, ACL_BIGGLST_FNAME_RAW_SZ,
     814    }
     815    if (g_getfacl) {
     816        sprintf(curr_acl_list_fname, ACL_BIGGLST_FNAME_RAW_SZ,
    812817            bkpinfo->tmpdir);
     818    }
    813819    log_to_screen("Verifying regular archives on tape");
    814820    total_afioballs = get_last_filelist_number(bkpinfo) + 1;
     
    835841         ctrl_chr != BLK_STOP_AFIOBALLS;
    836842         res = read_header_block_from_stream(&size, fname, &ctrl_chr)) {
    837         sprintf(curr_xattr_list_fname, XATTR_LIST_FNAME_RAW_SZ,
     843        if (g_getfattr) {
     844            sprintf(curr_xattr_list_fname, XATTR_LIST_FNAME_RAW_SZ,
    838845                bkpinfo->tmpdir, current_afioball_number);
    839         sprintf(curr_acl_list_fname, ACL_LIST_FNAME_RAW_SZ,
     846        }
     847        if (g_getfacl) {
     848            sprintf(curr_acl_list_fname, ACL_LIST_FNAME_RAW_SZ,
    840849                bkpinfo->tmpdir, current_afioball_number);
     850        }
    841851        if (ctrl_chr == BLK_START_EXTENDED_ATTRIBUTES) {
    842852            iamhere("Reading EXAT files from tape");
     
    915925    malloc_string(curr_acl_list_fname);
    916926
    917     sprintf(curr_xattr_list_fname, XATTR_BIGGLST_FNAME_RAW_SZ,
     927    if (g_getfattr) {
     928        sprintf(curr_xattr_list_fname, XATTR_BIGGLST_FNAME_RAW_SZ,
    918929            bkpinfo->tmpdir);
    919     sprintf(curr_acl_list_fname, ACL_BIGGLST_FNAME_RAW_SZ,
     930    }
     931    if (g_getfacl) {
     932        sprintf(curr_acl_list_fname, ACL_BIGGLST_FNAME_RAW_SZ,
    920933            bkpinfo->tmpdir);
     934    }
    921935    sprintf(comment, "Verifying all bigfiles.");
    922936    log_to_screen(comment);
Note: See TracChangeset for help on using the changeset viewer.