Ignore:
Timestamp:
Nov 19, 2006, 1:27:46 AM (17 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/mondoarchive/mondo-cli.c

    r910 r948  
    202202
    203203extern double g_kernel_version;
    204 
    205204extern int g_current_media_number;
    206 
    207 
    208 
    209205extern pid_t g_main_pid;
    210 
    211 
    212 
    213 
    214206extern char *resolve_softlinks_to_get_to_actual_device_file(char *);
    215207
    216 
     208/* Do we use extended attributes and acl ?
     209 * By default no, use --acl & --attr options to force their usage */
     210char *g_getfacl = NULL;
     211char *g_getfattr = NULL;
    217212
    218213/**
     
    673668        bkpinfo->backup_media_type = cdrw;
    674669    }
     670    if (flag_set['z']) {
     671        if (find_home_of_exe("getfattr")) {
     672            asprintf(&g_getfattr,"getfattr");
     673        }
     674        if (find_home_of_exe("getfacl")) {
     675            asprintf(&g_getfacl,"getfacl");
     676        }
     677    }
     678    }
    675679
    676680    /* optional, popular */
     
    10211025    while ((opt =
    10221026            getopt(argc, argv,
    1023                    "0123456789A:B:C:DE:FHI:J:K:LNOP:QRS:T:VWb:c:d:ef:gik:l:mn:op:rs:tuw:x:"))
     1027                   "0123456789A:B:C:DE:FHI:J:K:LNOP:QRS:T:VWb:c:d:ef:gik:l:mn:op:rs:tuw:x:z"))
    10241028           != -1) {
    10251029        if (opt == '?') {
Note: See TracChangeset for help on using the changeset viewer.