mirror of https://github.com/borgbackup/borg.git
wrap get_flags with backup_io
This commit is contained in:
parent
fe627246e4
commit
aade62c9f9
|
@ -657,13 +657,12 @@ Number of files: {0.stats.nfiles}'''.format(
|
||||||
attrs['user'] = attrs['group'] = None
|
attrs['user'] = attrs['group'] = None
|
||||||
with backup_io():
|
with backup_io():
|
||||||
xattrs = xattr.get_all(path, follow_symlinks=False)
|
xattrs = xattr.get_all(path, follow_symlinks=False)
|
||||||
|
bsdflags = get_flags(path, st)
|
||||||
|
acl_get(path, attrs, st, self.numeric_owner)
|
||||||
if xattrs:
|
if xattrs:
|
||||||
attrs['xattrs'] = StableDict(xattrs)
|
attrs['xattrs'] = StableDict(xattrs)
|
||||||
bsdflags = get_flags(path, st)
|
|
||||||
if bsdflags:
|
if bsdflags:
|
||||||
attrs['bsdflags'] = bsdflags
|
attrs['bsdflags'] = bsdflags
|
||||||
with backup_io():
|
|
||||||
acl_get(path, attrs, st, self.numeric_owner)
|
|
||||||
return attrs
|
return attrs
|
||||||
|
|
||||||
def process_dir(self, path, st):
|
def process_dir(self, path, st):
|
||||||
|
|
|
@ -324,8 +324,12 @@ class Archiver:
|
||||||
return
|
return
|
||||||
status = None
|
status = None
|
||||||
# Ignore if nodump flag is set
|
# Ignore if nodump flag is set
|
||||||
if get_flags(path, st) & stat.UF_NODUMP:
|
try:
|
||||||
self.print_file_status('x', path)
|
if get_flags(path, st) & stat.UF_NODUMP:
|
||||||
|
self.print_file_status('x', path)
|
||||||
|
return
|
||||||
|
except OSError as e:
|
||||||
|
self.print_warning('%s: %s', path, e)
|
||||||
return
|
return
|
||||||
if stat.S_ISREG(st.st_mode):
|
if stat.S_ISREG(st.st_mode):
|
||||||
if not dry_run:
|
if not dry_run:
|
||||||
|
|
Loading…
Reference in New Issue