From: Jens Axboe <axboe@kernel.dk>
To: ming.lei@redhat.com, hch@infradead.org, yukuai3@huawei.com,
rajeevm@hpe.com, Yu Kuai <yukuai1@huaweicloud.com>
Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org,
yi.zhang@huawei.com, yangerkun@huawei.com,
johnny.chenyi@huawei.com
Subject: Re: [PATCH v2] loop: fix zero sized loop for block special file
Date: Mon, 25 Aug 2025 07:47:44 -0600 [thread overview]
Message-ID: <175612966482.55174.12405819858243003502.b4-ty@kernel.dk> (raw)
In-Reply-To: <20250825093205.3684121-1-yukuai1@huaweicloud.com>
On Mon, 25 Aug 2025 17:32:05 +0800, Yu Kuai wrote:
> By default, /dev/sda is block specail file from devtmpfs, getattr will
> return file size as zero, causing loop failed for raw block device.
>
> We can add bdev_statx() to return device size, however this may introduce
> changes that are not acknowledged by user. Fix this problem by reverting
> changes for block special file, file mapping host is set to bdev inode
> while opening, and use i_size_read() directly to get device size.
>
> [...]
Applied, thanks!
[1/1] loop: fix zero sized loop for block special file
commit: d14469ed7c00314fe8957b2841bda329e4eaf4ab
Best regards,
--
Jens Axboe
next prev parent reply other threads:[~2025-08-25 13:47 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-25 9:32 Yu Kuai
2025-08-25 10:48 ` Christoph Hellwig
2025-08-25 11:26 ` Ming Lei
2025-08-25 13:47 ` Jens Axboe [this message]
2025-08-25 13:56 ` Jens Axboe
2025-08-25 18:17 ` Cloud User
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=175612966482.55174.12405819858243003502.b4-ty@kernel.dk \
--to=axboe@kernel.dk \
--cc=hch@infradead.org \
--cc=johnny.chenyi@huawei.com \
--cc=linux-block@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ming.lei@redhat.com \
--cc=rajeevm@hpe.com \
--cc=yangerkun@huawei.com \
--cc=yi.zhang@huawei.com \
--cc=yukuai1@huaweicloud.com \
--cc=yukuai3@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®