Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Feb 2021 19:22:42 +0300
From:      Artem Kuchin <artem@artem.ru>
To:        freebsd-fs@freebsd.org
Subject:   Re: Reading a corrupted file on ZFS
Message-ID:  <10977ffc-f806-69dd-0cef-d4fd4fc5f649@artem.ru>
In-Reply-To: <20210212165216.2f613482@fabiankeil.de>
References:  <da892eeb-233f-551f-2faa-62f42c3c1d5b@artem.ru> <0ca45adf-8f60-a4c3-6264-6122444a3ffd@denninger.net> <899c6b4f-2368-7ec2-4dfe-fa09fab35447@artem.ru> <20210212165216.2f613482@fabiankeil.de>

next in thread | previous in thread | raw e-mail | index | archive | help
12.02.2021 18:52, Fabian Keil пишет:
> Artem Kuchin <artem@artem.ru> wrote on 2021-02-12:
>
>> 12.02.2021 18:06, Karl Denninger пишет:
>>> Blocking the read forces you to get the good copy off backup media and
>>> thus prevents that from happening.
>>>
>> I know what ZFS does and i damaged the same file in the same place on
>> purpose. Question is: how to read what's left of it. Just for kicks, i
>> don't have a backup, and i need to read what's left. It could be 1GB
>> file with only one byte damaged and it is of crazy importance to me. So,
>> how to bypass all the checks and make it read the file no matter what?
> The patch from this PR adds a sysctl that allows to send corrupted data:
> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=221909
>
> Using the added sysctl you can send and receive the dataset and then
> read the corrupted file from the received dataset. Note that ZFS replaces
> corrupted blocks completely with the 0x'zfs badd bloc' pattern instead
> of returning the corrupted data as is, thus increasing the amount of
> corruption in case of simple bit flips to whole blocks.
>
> Fabian

Arghh. That's not what i want. This is strange. In case of stupid old FS 
like FAT or even newer UFS i can dig into damaged file and collect as 
much data as possible, while newer ZFS does not provide tools to dig 
into data. That's was always my concern about ZFS. If something bad goes 
with FAT/NTFS and even UFS - there are tons of tools which can dissect 
the file system into bits so i can get as much as possible of what's 
left. In case of ZFS there are no tools that i know and even ZFS itself 
does not allow to get what left of normal data.

This is frustrating. why..why..





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?10977ffc-f806-69dd-0cef-d4fd4fc5f649>