From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from avasout05.plus.net ([84.93.230.250]:55169 "EHLO avasout05.plus.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751930AbeD2Jzc (ORCPT ); Sun, 29 Apr 2018 05:55:32 -0400 From: "David C. Partridge" To: "'Qu Wenruo'" , References: <003801d3de56$fba1b930$f2e52b90$@perdrix.co.uk> <035a8b69-127a-0b7f-28e0-67c0a3e3f5c7@gmx.com> <003801d3def2$d90965c0$8b1c3140$@perdrix.co.uk> <004d01d3def6$4000ed40$c002c7c0$@perdrix.co.uk> <60674123-6fe2-2cfe-e7a8-25d62e023c53@gmx.com> <006201d3defa$2783dda0$768b98e0$@perdrix.co.uk> <0dba3a1c-434a-dc23-5d5d-75151121ffbf@gmx.com> <001701d3df0a$55d7cf30$01876d90$@perdrix.co.uk> <275af8f8-4997-5246-d2a4-99ab2bf299fb@gmx.com> <002f01d3df5d$25dd0270$71970750$@perdrix.co.uk> <002a01d3df93$74b7b760$5e272620$@perdrix.co.uk> <126b8a98-384e-af68-8a36-ad702f07fad2@gmx.com> <000b01d3df9b$40f17fd0$c2d47f70$@perdrix.co.uk> <2471e5c7-fcb6-947e-359a-a59f634c02ca@gmx.com> In-Reply-To: <2471e5c7-fcb6-947e-359a-a59f634c02ca@gmx.com> Subject: RE: Problems with btrfs Date: Sun, 29 Apr 2018 10:55:29 +0100 Message-ID: <003101d3dfa0$35ba0060$a12e0120$@perdrix.co.uk> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0032_01D3DFA8.977EB680" Sender: linux-btrfs-owner@vger.kernel.org List-ID: This is a multipart message in MIME format. ------=_NextPart_000_0032_01D3DFA8.977EB680 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Yes I did use seek=3D I attach the new dump-tree - it seems very short compared to the last = one you requested ??? Dave -----Original Message----- From: Qu Wenruo [mailto:quwenruo.btrfs@gmx.com]=20 Sent: 29 April 2018 10:36 To: David C. Partridge; linux-btrfs@vger.kernel.org Subject: Re: Problems with btrfs On 2018=E5=B9=B404=E6=9C=8829=E6=97=A5 17:20, David C. Partridge wrote: > Here is the result of btrfs check after applying the patch Doesn't work as expected. Did you apply the patched tree block with "seek=3D"? If so, please dump extent tree again to verify if the modification is = done correct. # btrfs inspect dump-tree -t extent Thanks, Qu >=20 > Dave > -----Original Message----- > From: Qu Wenruo [mailto:quwenruo.btrfs@gmx.com] > Sent: 29 April 2018 09:36 > To: David C. Partridge > Subject: Re: Problems with btrfs >=20 > Here is the patched binary tree block. >=20 > You could apply them by the following command (copy1 and copy2 are the = same). >=20 > # dd if=3Dcopy1.img of=3D bs=3D1 count=3D16K = seek=3D25942081536 # dd=20 > if=3Dcopy1.img of=3D bs=3D1 count=3D16K seek=3D26478952448 >=20 > And after that, try btrfs check to see if it reports new error. >=20 > Thanks, > Qu >=20 > On 2018=E5=B9=B404=E6=9C=8829=E6=97=A5 16:24, David C. Partridge = wrote: >> Attached as requested >> >> -----Original Message----- >> From: linux-btrfs-owner@vger.kernel.org=20 >> [mailto:linux-btrfs-owner@vger.kernel.org] On Behalf Of Qu Wenruo >> Sent: 29 April 2018 03:08 >> To: David C. Partridge; linux-btrfs@vger.kernel.org >> Subject: Re: Problems with btrfs >> >> >> >> On 2018=E5=B9=B404=E6=9C=8829=E6=97=A5 09:55, David C. Partridge = wrote: >>> Not a problem >>> >>> See attached >> >> The final binary dump: >> >> # dd if=3D of=3D/tmp/copy1.img bs=3D1 count=3D16K = skip=3D25942081536 #=20 >> dd if=3D of=3D/tmp/copy2.img bs=3D1 count=3D16K = skip=3D26478952448 >> >> Thanks, >> Qu >> ------=_NextPart_000_0032_01D3DFA8.977EB680 Content-Type: application/octet-stream; name="btrfs-dump-tree1.log" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="btrfs-dump-tree1.log" btrfs: unknown token 'inpect'=0A= usage: btrfs [--help] [--version] [...] []=0A= =0A= btrfs subvolume create [-i ] [/]=0A= Create a subvolume=0A= btrfs subvolume delete [options] [...]=0A= Delete subvolume(s)=0A= btrfs subvolume list [options] [-G [+|-]value] [-C [+|-]value] = [--sort=3Dgen,ogen,rootid,path] =0A= List subvolumes (and snapshots)=0A= btrfs subvolume snapshot [-r] [-i ] = |[/]=0A= Create a snapshot of the subvolume=0A= btrfs subvolume get-default =0A= Get the default subvolume of a filesystem=0A= btrfs subvolume set-default =0A= Set the default subvolume of a filesystem=0A= btrfs subvolume find-new =0A= List the recently modified files in a filesystem=0A= btrfs subvolume show =0A= Show more information of the subvolume=0A= btrfs subvolume sync [...]=0A= Wait until given subvolume(s) are completely removed from the = filesystem.=0A= =0A= btrfs filesystem df [options] =0A= Show space usage information for a mount point=0A= btrfs filesystem du [options] [..]=0A= Summarize disk usage of each file.=0A= btrfs filesystem show [options] [|||label]=0A= Show the structure of a filesystem=0A= btrfs filesystem sync =0A= Force a sync on a filesystem=0A= btrfs filesystem defragment [options] | [|...]=0A= Defragment a file or a directory=0A= btrfs filesystem resize = [devid:][+/-][kKmMgGtTpPeE]|[devid:]max =0A= Resize a filesystem=0A= btrfs filesystem label [|] []=0A= Get or change the label of a filesystem=0A= btrfs filesystem usage [options] [..]=0A= Show detailed information about internal filesystem usage .=0A= =0A= btrfs balance start [options] =0A= Balance chunks across the devices=0A= btrfs balance pause =0A= Pause running balance=0A= btrfs balance cancel =0A= Cancel running or paused balance=0A= btrfs balance resume =0A= Resume interrupted balance=0A= btrfs balance status [-v] =0A= Show status of running or paused balance=0A= =0A= btrfs device add [options] [...] =0A= Add a device to a filesystem=0A= btrfs device delete | [|...] = btrfs device remove | [|...] =0A= Remove a device from a filesystem=0A= btrfs device scan [(-d|--all-devices)| [...]]=0A= Scan devices for a btrfs filesystem=0A= btrfs device ready =0A= Check device to see if it has all of its devices in cache for = mounting=0A= btrfs device stats [-z] |=0A= Show current device IO stats.=0A= btrfs device usage [options] [..]=0A= Show detailed information about internal allocations in devices.=0A= =0A= btrfs scrub start [-BdqrRf] [-c ioprio_class -n ioprio_classdata] = |=0A= Start a new scrub. If a scrub is already running, the new one = fails.=0A= btrfs scrub cancel |=0A= Cancel a running scrub=0A= btrfs scrub resume [-BdqrR] [-c ioprio_class -n ioprio_classdata] = |=0A= Resume previously canceled or interrupted scrub=0A= btrfs scrub status [-dR] |=0A= Show status of running or finished scrub=0A= =0A= btrfs check [options] =0A= Check structural integrity of a filesystem (unmounted).=0A= =0A= btrfs rescue chunk-recover [options] =0A= Recover the chunk tree by scanning the devices one by one.=0A= btrfs rescue super-recover [options] =0A= Recover bad superblocks from good copies=0A= btrfs rescue zero-log =0A= Clear the tree log. Usable if it's corrupted and prevents mount.=0A= =0A= btrfs restore [options] | -l =0A= Try to restore files from a damaged filesystem (unmounted)=0A= =0A= btrfs inspect-internal inode-resolve [-v] =0A= Get file system paths for the given inode=0A= btrfs inspect-internal logical-resolve [-Pv] [-s bufsize] = =0A= Get file system paths for the given logical address=0A= btrfs inspect-internal subvolid-resolve =0A= Get file system paths for the given subvolume ID.=0A= btrfs inspect-internal rootid =0A= Get tree ID of the containing subvolume of path.=0A= btrfs inspect-internal min-dev-size [options] =0A= Get the minimum size the device can be shrunk to. The=0A= btrfs inspect-internal dump-tree [options] device=0A= Dump tree structures from a given device=0A= btrfs inspect-internal dump-super [options] device [device...]=0A= Dump superblock from a device in a textual form=0A= btrfs inspect-internal tree-stats [options] =0A= Print various stats for trees=0A= =0A= btrfs property get [-t ] []=0A= Gets a property from a btrfs object.=0A= btrfs property set [-t ] =0A= Sets a property on a btrfs object.=0A= btrfs property list [-t ] =0A= Lists available properties with their descriptions for the given = object.=0A= =0A= btrfs send [-ve] [-p ] [-c ] [-f ] = [...]=0A= Send the subvolume(s) to stdout.=0A= btrfs receive [-ve] [-f ] [--max-errors ] =0A= Receive subvolumes from stdin.=0A= =0A= btrfs quota enable =0A= Enable subvolume quota support for a filesystem.=0A= btrfs quota disable =0A= Disable subvolume quota support for a filesystem.=0A= btrfs quota rescan [-sw] =0A= Trash all qgroup numbers and scan the metadata again with the = current config.=0A= =0A= btrfs qgroup assign [options] =0A= Assign SRC as the child qgroup of DST=0A= btrfs qgroup remove =0A= Remove a child qgroup SRC from DST.=0A= btrfs qgroup create =0A= Create a subvolume quota group.=0A= btrfs qgroup destroy =0A= Destroy a quota group.=0A= btrfs qgroup show -pcreFf = [--sort=3Dqgroupid,rfer,excl,max_rfer,max_excl] =0A= Show subvolume quota groups.=0A= btrfs qgroup limit [options] |none [] =0A= Set the limits a subvolume quota group.=0A= =0A= btrfs replace start [-Bfr] | =0A= Replace device of a btrfs filesystem.=0A= btrfs replace status [-1] =0A= Print status and progress information of a running device replace=0A= btrfs replace cancel =0A= Cancel a running device replace operation.=0A= =0A= btrfs help [--full]=0A= Display help information=0A= btrfs version=0A= Display btrfs-progs version=0A= =0A= Use --help as an argument for information on a specific group or command.=0A= ------=_NextPart_000_0032_01D3DFA8.977EB680--