lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240812133032.115134-1-w@uter.be>
Date: Mon, 12 Aug 2024 15:20:35 +0200
From: Wouter Verhelst <w@...r.be>
To: Josef Bacik <josef@...icpanda.com>,
	Jens Axboe <axboe@...nel.dk>
Cc: Wouter Verhelst <w@...r.be>,
	Eric Blake <eblake@...hat.com>,
	Damien Le Moal <dlemoal@...nel.org>,
	linux-block@...r.kernel.org,
	nbd@...er.debian.org,
	linux-kernel@...r.kernel.org
Subject: [PATCH v4 0/3] nbd: WRITE_ZEROES and a few fixes

Implement the WRITE_ZEROES command for the NBD kernel driver. While
here, add NBD_FLAG_ROTATIONAL to the function that decodes our flags for
debugfs.

---
v2: Divide UINT_MAX by blksize for the maximum number of sectors
supported by trim/discard and write_zeroes commands, as NBD uses 32-bit
values for byte lengths, and otherwise that wouldn't fit.
v3: Use the SECTOR_SHIFT value as a right-shift operand, rather than the
blksize value, to get the correct operand.
v4: Fix commit messages to use correct style. Thanks, Jens.
---
 drivers/block/nbd.c      |   12 +++++++++++-
 include/uapi/linux/nbd.h |    5 ++++-
 2 files changed, 15 insertions(+), 2 deletions(-)


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ