mirror of
https://github.com/borgbackup/borg.git
synced 2025-01-01 04:37:34 +00:00
Merge pull request #3185 from ThomasWaldmann/hardlinked-symlink-warning-1.1
remove hardlinked symlinks warning, update docs, fixes #3175
This commit is contained in:
commit
40186a3ffc
2 changed files with 4 additions and 2 deletions
|
@ -97,6 +97,9 @@ Which file types, attributes, etc. are *not* preserved?
|
|||
Archive extraction has optional support to extract all-zero chunks as
|
||||
holes in a sparse file.
|
||||
* Some filesystem specific attributes, like btrfs NOCOW, see :ref:`platforms`.
|
||||
* For hardlinked symlinks, the hardlinking can not be archived (and thus,
|
||||
the hardlinking will not be done at extraction time). The symlinks will
|
||||
be archived and extracted as non-hardlinked symlinks, see :issue:`2379`.
|
||||
|
||||
Are there other known limitations?
|
||||
----------------------------------
|
||||
|
|
|
@ -886,12 +886,11 @@ def process_dev(self, path, st, dev_type):
|
|||
def process_symlink(self, path, st):
|
||||
# note: using hardlinkable=False because we can not support hardlinked symlinks,
|
||||
# due to the dual-use of item.source, see issue #2343:
|
||||
# hardlinked symlinks will be archived [and extracted] as non-hardlinked symlinks.
|
||||
with self.create_helper(path, st, 's', hardlinkable=False) as (item, status, hardlinked, hardlink_master):
|
||||
with backup_io('readlink'):
|
||||
source = os.readlink(path)
|
||||
item.source = source
|
||||
if st.st_nlink > 1:
|
||||
logger.warning('hardlinked symlinks will be archived as non-hardlinked symlinks!')
|
||||
item.update(self.stat_attrs(st, path))
|
||||
return status
|
||||
|
||||
|
|
Loading…
Reference in a new issue