Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CDCE11917F0 for ; Mon, 18 Nov 2024 09:28:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731922130; cv=none; b=E3M5r0ah6iXQ0kH0frhBusGH4GHC39jMNC3inJZui2PFV/S/jO6uqgkjLNstwwy0SIUIR75olCjDHR/wP/6NiAqQJqce3rmmUN9zjyC/OVDGv4UUJE/mU/fx3dyYVXerm5nVPXdDHSEgzSXZ0xEa3BpzOHBlZJDHGiYzacjHMtI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731922130; c=relaxed/simple; bh=gWhgBf/k2lIm7QcnLmUikqMC9Y6bb9h3dwSH2gKGUFc=; h=From:Message-ID:Date:MIME-Version:Subject:To:References: In-Reply-To:Content-Type; b=XeTEO/HyW2WlEz3UqgnWHlBxnvIU7WhIwOX2irjg/zyb+0llx9zEOAFtrwNrV0raRYp2tAJ9CXdAb5QAwytbIwif+JRFxhbodqEcK4GyK3JYENoXeQjAcJ91V59o0nkNH+u3I8auClOlPkgofObWKbg8X7MNc6ZRJytFmnabTYI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=VwhPHdZn; arc=none smtp.client-ip=209.85.128.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="VwhPHdZn" Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-431548bd1b4so14652445e9.3 for ; Mon, 18 Nov 2024 01:28:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731922127; x=1732526927; darn=lists.linux.dev; h=content-transfer-encoding:in-reply-to:content-language:references :to:subject:user-agent:mime-version:date:message-id:from:from:to:cc :subject:date:message-id:reply-to; bh=XwpEjSeZJJPkn2epboKwgYNb2MAgt9hGWwshsniKUag=; b=VwhPHdZnLbSV1vs2BQywsp9uFakomQ0Qc+2KrKDwHaIjW8uamFqaf9Pz+lEL2VH7QG 1BJctpNrstvAZg5DwOVnvYr4T7vCYxWDPx6V93H2TW1akGWeALhjW+jGkvzXOpzSKW53 j/8SsX32y47KcgtNwFRlKHDwPfZC267ZuWWhmVgo/SBN/enMkS9U/sbYWX/j7kZ8ZeK1 MFjsUc1Ez9EgE5Uppf96klsmxfjlvCs0lwsPBQJ9Y61gQrUnyjB4Jm4JTNSgZYMopZxm y9MOzpBDw2Ydm4GmDlilmprb1yxcPHwhF+hvYu1fBxo5myDjAsgAclZ4Pg+I4dk6L9ao 32vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731922127; x=1732526927; h=content-transfer-encoding:in-reply-to:content-language:references :to:subject:user-agent:mime-version:date:message-id:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=XwpEjSeZJJPkn2epboKwgYNb2MAgt9hGWwshsniKUag=; b=jvm+v1fBIP3mrO0SruSjIum6/PpvESBEPMF9BZO5J2Xa7iTD1pHZoRPID5WhUsRekd mR/R/u1arE1f4YWoJGZ1IO6SKIBtDBhQ9XPHBfpprNumKc6/i8j49PBVs5JjHfnwB/w5 fK1deaBAK9SdpXP08oWaWN3ALxJ7GxZkR96TM4n9kghbX6oJVwzt2nqHAC40emi+VpPN 5uSw1To7BUn3H9jsppxE/CuSNvH0I6io7hE1EOkCukqI5ghxEAFnfyOW1TzxJuUPBNBf J5YhPqRljILxCHjk8sVe1x/HWGgaId1xhNchCjxHWh5DHH7SWZcWnQ9PFeHW9OrSnvhU dAqA== X-Forwarded-Encrypted: i=1; AJvYcCVQfRnWuiqMLkETiULWPCNsKb/P2dmGUur/dHfKgA2POtbVCL913WsRRRWc+JoNbrGX+XPyqED1Bg==@lists.linux.dev X-Gm-Message-State: AOJu0YwVftxKoofHuJju69YWe6Klkr7oFahFCgBCAT4XM9SECba3G3Xh 6NQJLNM+Oty33lnKNFMHL5hUS6YypA3xGE33b0DIA26fIRFdv1Th X-Google-Smtp-Source: AGHT+IHmNF33ArUgbE22junHGnn/90PQzVvjzLOyXH//8iETzD2qPoOFdaFzIbis9gbVTBic+FvHcA== X-Received: by 2002:a05:600c:46cc:b0:431:52f5:f48d with SMTP id 5b1f17b1804b1-432df78d75fmr101574855e9.31.1731922126939; Mon, 18 Nov 2024 01:28:46 -0800 (PST) Received: from ?IPV6:2a03:a900:1000:7e9:403e:7c8b:351b:f333? ([2a03:a900:1000:7e9:403e:7c8b:351b:f333]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-432dab788e1sm147718175e9.15.2024.11.18.01.28.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 18 Nov 2024 01:28:46 -0800 (PST) From: Zdenek Kabelac X-Google-Original-From: Zdenek Kabelac Message-ID: <97961466-eb9f-413e-95cc-dcd4f011625d@redhat.com> Date: Mon, 18 Nov 2024 10:28:45 +0100 Precedence: bulk X-Mailing-List: dm-devel@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: (Re * Re): Extending "thin_trim" To: =?UTF-8?Q?Thomas_Br=C3=BCcker?= , dm-devel@lists.linux.dev References: <980e288be81cac6aa86b9934009571c6.squirrel@main> Content-Language: en-US, cs In-Reply-To: <980e288be81cac6aa86b9934009571c6.squirrel@main> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Dne 17. 11. 24 v 11:26 "Thomas Brücker" napsal(a): > Hello developers and others, > > I agree fully with your '2TB-argument'. So no longer zeroing. > > I have taken a closer look to "blk-archive". "Packing to a remote archive" > there not yet works. I have an ((alpha ** n); n --> infinity)-solution of > my own, which can do this (it is accessible as an nbd device). > Furthermore I sometimes really need to copy the data device to another > location (see crazy-rationale, if you want). > Somehow I like modularity, leading to " | | ... " (here > "<...>" means a variable to be set). > (In further text, "data device" means solely a data device of a thin pool.) > > Whats with / (I prefer to develop) an utility similar to "dd" (stealing code > from "dd" and "blk-archive" [I hope its all "GPL" or similar]), which skips > unallocated blocks either on a thin device(got idea from "blk-archive") or a > data device. Hi Of course you can always recreate the wheel as long as you have fun doing that - so yep you can full be inspired how to deal with 'thin-pool' metadata to know which areas have some real data inside - although I'd  probably highly recommend to stick with the use of original 'thin tools' - since those are the 'real tools' to work with thin-pool metadata - they know the format - they are regularly updated when format change and so on...    once you do you 'copy' of this rust code - you are loosing all those feature -  IMHO not worth.    (Note - sooner or later there will be a new format of metadata...) And if there are missing features in blk-archive - let's open the issue - AFAIK this tool is still in development - so reasonable feature requests will be certainly implemented - you just need to write some good examples/justifications  how the feature should be working. Regards Zdenek > > Sincerely > > Thomas Bruecker > > PS: > crazy rationale (to be skipped): > * My name: "pseudo-raid": raid5 with legs on the same device, especially a > hard disk. Ok, I admit, its slow. > * Reason: > * Modern hard disks are able to correct defective sectors, if the driver > knows, what should be in these sectors. > * You may not equip a notebook with additional hard disk. Is this some sort of   'raid1 + writemostly'  ? And there is also another target -   'dm-era'   - which is however not supported (yet)  by lvm2...