Now some cipher hardware engines prefer to handle bulk block rather than one
sector (512 bytes) created by dm-crypt, cause these cipher engines can handle
the intermediate values (IV) by themselves in one bulk block. This means we
can increase the size of the request by merging request rather than
This patchset will check if the cipher can support bulk mode, then dm-crypt
will handle different ways to send requests to crypto layer according to
cipher mode. For bulk mode, we can use sg table to map the whole bio and
send all scatterlists of one bio to crypto engine to encrypt or decrypt,
In now dm-crypt code, it is ineffective to map one segment (always one
sector) of one bio with just only one scatterlist at one time for hardware
crypto engine. Especially for some encryption mode (like ecb or xts mode)
cooperating with the crypto engine, they just need one initial IV or null
IV
Hi Mikulas,
> bio_alloc can allocate a bio with at most BIO_MAX_PAGES (256) vector
> entries. However, the incoming bio may have more vector entries if it was
> allocated by other means. For example, bcache submits bios with more than
> BIO_MAX_PAGES entries. This results in bio_alloc failure.
>
Any device identifier given to multipath that isn't either a block
device or a major:minor id is assumed to be a multipath alias. This can
cause some confusing messages if the user accidentally enters something
that is clearly a pathname, but isn't a block device. Since multipath
device aliases
Add a default device config for the Huawei XSG1 arrary. This config
comes from Huawei.
Signed-off-by: Benjamin Marzinski
---
libmultipath/hwtable.c | 9 +
1 file changed, 9 insertions(+)
diff --git a/libmultipath/hwtable.c b/libmultipath/hwtable.c
index
Check if DM_SUBSYSTEM_UDEV_FLAG1 is set, and if so, don't run kpartx.
If the event was not generated by device-mapper, just use the existing
value of DM_SUBSYSTEM_UDEV_FLAG1.
Signed-off-by: Benjamin Marzinski
---
kpartx/kpartx.rules | 2 ++
1 file changed, 2 insertions(+)
This option gives multipath the ability to stop kpartx from running. The
previous idea, the "no_partitions" feature, was not accepted in the
upstream kernel. This method uses one of the dm cookie subsystem flags
DM_SUBSYSTEM_UDEV_FLAG1, which can be checked by udev to skip running
kpartx when
This series is a resend of my previous "handler fixes" patch, along with some
bug fixes, a new default configuration, and a new attempt to make multipath
able to skip kpartx handling on devices.
Benjamin Marzinski (7):
multipathd: handler fixes
libmultipath: remove calls to dm_udev_complete
Hannes Reinecke wrote:
> Recent kernels have an 'access_state' attribute which allows
> us to read the asymmetric access state directly from sysfs.
>
> Signed-off-by: Hannes Reinecke
> ---
> libmultipath/discovery.c | 33 +
>
10 matches
Mail list logo