[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 0/3] request_alignment vs file size

From: Vladimir Sementsov-Ogievskiy
Subject: [PATCH 0/3] request_alignment vs file size
Date: Thu, 30 Jan 2020 18:22:15 +0300


This is a continuation for thread
 "request_alignment vs file size, how to fix crash?"

Generic block-layer assumes that file size is aligned to
request_alignment, and may crash otherwise (see patch 03 for simple

So, let's at least check this thing on generic driver open,
and fix file-posix to consider file-size, when it wants to fallback to
large request_alignment.

Vladimir Sementsov-Ogievskiy (3):
  block/file-posix: add raw_getlength_fd
  block/file-posix: consider file size when fallback to max_align
  block: fail on open when file size is unaligned to request_alignment

 block.c            |  7 ++++++
 block/file-posix.c | 60 +++++++++++++++++++++++++++++-----------------
 2 files changed, 45 insertions(+), 22 deletions(-)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]