From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) (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 B23E32E8DE2 for ; Wed, 19 Nov 2025 09:01:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763542892; cv=none; b=kLoKqHw+EoBpgXS7ILl3qw4ZDm5yZyBztvVdzbkC/MHUE0HnmuDxNoc4hBgQ44CRb9ZXXoEi+zxFnvhMWVZaXcOvQV90OI86VQ1sGAYv9jdYRhRMBj47cRRNjRHW6XVE2TH5sQCaPtTxpiyBZKle7z1YCR5I+3biF+j9bysf728= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763542892; c=relaxed/simple; bh=4EDcTMtUXRiP5/oiPgmKQMtRlWiTOuRDmEqu9oU5vpg=; h=From:Date:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=rK1Zuv/SR5e82hAHxM5bebcTaTSChnlhaYq2IYe/FEMEkTOTra9sVSu0ixMZ/GpdR/czJsSPo3dOeoER7f+3Ju3GRR+VLEPSumV6ZiKsmrgD02WjyaNQAjyKgUsQ2I4X2iuyj7lDM+FQT/2EQlYCR4s4zaa7ATdnZGgS3d1Wmbc= 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=eAUdwVCC; arc=none smtp.client-ip=209.85.167.49 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="eAUdwVCC" Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-5957c929a5eso7405355e87.1 for ; Wed, 19 Nov 2025 01:01:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763542889; x=1764147689; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:date:from:from:to:cc:subject:date:message-id:reply-to; bh=pgv8WweCjZjRXsGx7FBMT5UEZaI78BGzLzzNeY09KWA=; b=eAUdwVCC+KvndDn67VwQ1buiDhPCCCcVE1WiE6FkPDt96s0Fem+wtensYAElc4hQMW AF7sDEl65gsqdqHBvi+CldJr9d+xeVaMkx7KgfU7XaGam7nzywRE+9lDx0U0j7xqwtao t2WA2U2/MzpFgm2HarR6f0j9Ctj08T9gyc1RUc52h4RcF5zebh5u6rN18w6XvNvKmGcT o9u47+jfWn7oATRN+hsC4+ZhdALe2XzPvkD9barCxwgFxdZF/oIh5NYvyg4VAKC3n93B 3/GgUUasqE7roMrVgwQWhIZsAoi4y4w0W3W3k1HIiBi980B5IRGorv8pfcnXAYS3l7WQ MS7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763542889; x=1764147689; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:date:from:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pgv8WweCjZjRXsGx7FBMT5UEZaI78BGzLzzNeY09KWA=; b=ZbnuQJWQblYUthyGMS3YmQRUh6isckxo59m8iW9Fot6YG5w0PaUawtF7a5EMz+Ywh1 WxjKr03wbXEDMjv0AlIl6QkL+UwCZmbAbZYpo9guEPj76TwAA+moSd7vpQrIOzWmuh6n KvbYLVTzj493YS/uy2dlg89dvc2QZygZIAaHYNf2VQMWxqf+fWFZVZSM11h54Vkzvuhj dge8s9mSzyN6plFLIDzGJ7YPQHAVdK/kQlUfw26FZlKByke/Z8JBQfBgr6dEN8iDrVif SeW9yUmbxaEgoAMQTd3lEr4Yikmvj53YPRUGyiC1o1Ax0uSkqTQ3NV27zCmcj2cIwraa HvwA== X-Forwarded-Encrypted: i=1; AJvYcCV9c3Qj/lvYHacpd7nQGoxdfvbRzvn9Xep0rAPdyAzZMTRyeLilbYzePA/ZlxXbP0YpjpxGRKban9xuRic=@vger.kernel.org X-Gm-Message-State: AOJu0YzGQgPlmsYrALHDmFyITk2OYl2orQfAU5Ufa0lkedEWIzYITGgb brVJb7XBFLuQsZMzcB8iMad+0EUQ5nUivdq/G6q+nzhg7q1KHhXTC9In X-Gm-Gg: ASbGncsVAd6YLb1hV6CntKksGO/A7NYPQFNs9HSwGDG6FZSE7PuMuvnEb93AjVoRrGS Z1Kh7G156zGVMNGO/T2ecViXM4HZ8uMkiz2JZe6Yd/GJAaDeUWuYfnYk2rDPTIx29MMY5UZ+C22 cnP+L1E+2CqBVWkGAD4balSY4Htf7/JhlnSqxUPWXHn2NhXJaJDUKptCGgdZL0R7wAPR4hlVEyD JxEfvIFG1Byy3coHcXaDn4tT0mO3miRTZ10Cjsjd11ZOVNwlDKKfBHwzuT8LfVpJY59z4YAkbD2 +iRRtInwgrks/S6qguACADjaNx4LK+azMlCWxV/BROsvnIYKtLJ7qycs7tHXD7gkVoLfO5HGRnC rmmY7x73fvHmAq/PRBthZAG+PJh5R66FhVhqCcMqXVtGRSgOnHydWus30DqWmyEN/8duvrcfHcs bvtxJNbstBpNbqY5cTz3/BHo6t6nINFgoHp1ajE2Ut X-Google-Smtp-Source: AGHT+IEo11AhIVWcAAb6qhCTnNMRL2xtbY5/xGZKYdMRrSYu8DfrXg/DIUySxF+Au+hC/CYgik5Pag== X-Received: by 2002:a05:6512:1250:b0:594:282d:f40c with SMTP id 2adb3069b0e04-59584252447mr7315517e87.31.1763542888433; Wed, 19 Nov 2025 01:01:28 -0800 (PST) Received: from pc636 (host-90-233-212-127.mobileonline.telia.com. [90.233.212.127]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5958040c7ccsm4498931e87.100.2025.11.19.01.01.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Nov 2025 01:01:27 -0800 (PST) From: Uladzislau Rezki X-Google-Original-From: Uladzislau Rezki Date: Wed, 19 Nov 2025 10:01:25 +0100 To: Christoph Hellwig Cc: Uladzislau Rezki , Mikulas Patocka , Benjamin Marzinski , Alasdair Kergon , DMML , Andrew Morton , Mike Snitzer , LKML Subject: Re: [RESEND PATCH] dm-ebs: Mark full buffer dirty even on partial write Message-ID: References: <73556fc8-5fbf-37cb-26b9-7cdb88f69720@redhat.com> <230baa83-cd79-f232-5fb8-1476115e1ae7@redhat.com> <20251119054635.GB19993@lst.de> <20251119085328.GA24461@lst.de> <20251119090010.GA24598@lst.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20251119090010.GA24598@lst.de> On Wed, Nov 19, 2025 at 10:00:10AM +0100, Christoph Hellwig wrote: > On Wed, Nov 19, 2025 at 09:57:49AM +0100, Uladzislau Rezki wrote: > > On Wed, Nov 19, 2025 at 09:53:28AM +0100, Christoph Hellwig wrote: > > > On Wed, Nov 19, 2025 at 09:43:13AM +0100, Uladzislau Rezki wrote: > > > > Well. LBA is fixed in my case. Just only one format which is 512B. > > > > > > > > Whereas the I/O can not be performed by using LBAs sizes. It is fixed > > > > and bigger. > > > > > > Then it is not an LBA. The LBA is defined as the minimum block size > > > you can do I/O on. Aka your device is really gravely broken. What > > > device is this and who is selling it? > > > > > I define UBS - underlying block size. The lower layer expects BIOs in > > that sizes but this is not true. > > > > I am not allowed to disclose and answer your last question. > > Well. Let's frame it differently: this device is just to broken > to be used with Linux. In theory we could quirk based on the vendor > ID to correctly report the logical block size, but for that we'd > need the information. > /* * Construct an emulated block size mapping: [] * * : path of the underlying device * : offset in 512 bytes sectors into * : emulated block size in units of 512 bytes exposed to the upper layer * []: underlying block size in units of 512 bytes imposed on the lower layer; * optional, if not supplied, retrieve logical block size from underlying device */ static int ebs_ctr(struct dm_target *ti, unsigned int argc, char **argv) { Again i rely on this. -- Uladzislau Rezki