linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Theodore Ts'o" <tytso@mit.edu>
To: Jiany Wu <wujianyue000@gmail.com>
Cc: "Darrick J. Wong" <djwong@kernel.org>,
	yi.zhang@huawei.com, jack@suse.cz, linux-ext4@vger.kernel.org
Subject: Re: Issue with ext4 filesystem corruption when writing to a file after disk exhaustion
Date: Mon, 14 Jul 2025 23:42:04 -0400	[thread overview]
Message-ID: <20250715034204.GD23343@mit.edu> (raw)
In-Reply-To: <CAJxJ_jgg0H=+JLSjc6SNwa5tiDhWjTunNPE2V1SP-v9_O8oCqw@mail.gmail.com>

On Tue, Jul 15, 2025 at 09:27:01AM +0800, Jiany Wu wrote:
> 
> Thanks indeed for the clarification, it is clear now.
> OK, if using a loopback mounted image on a disk, underlying file
> system full then the block device will have I/O error.
> This loopback mount belongs to a third party common config. I'll
> fallocate lower disk space to not exhaust disk as a work around
> firstly.

The question I'd ask is *why* someone set up that loopback mount in
the first place.  As a guess, perhaps the goal was to restrict the
mount of disk space could be used for log files in /var/log, so that
if there is runaway logging, that all of the free space on the root
partition won't be consumed.

But if that's the case, there are much better ways of achieving the
same goal.  For example, in addition to using log rotation programs,
you could back that up with using project quotas , which restricts how
much space can get used in a subdirectory.

Cheers,

					- Ted

      reply	other threads:[~2025-07-15  3:42 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-11  3:20 Issue with ext4 filesystem corruption when writing to a file after disk exhaustion Jiany Wu
2025-07-11  5:29 ` Theodore Ts'o
2025-07-11  9:56   ` Jiany Wu
2025-07-11 15:40     ` Theodore Ts'o
2025-07-12  4:27       ` Darrick J. Wong
2025-07-12 14:34         ` Theodore Ts'o
2025-07-14  4:37           ` Jiany Wu
2025-07-14 13:09             ` Theodore Ts'o
2025-07-15  1:27               ` Jiany Wu
2025-07-15  3:42                 ` Theodore Ts'o [this message]

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=20250715034204.GD23343@mit.edu \
    --to=tytso@mit.edu \
    --cc=djwong@kernel.org \
    --cc=jack@suse.cz \
    --cc=linux-ext4@vger.kernel.org \
    --cc=wujianyue000@gmail.com \
    --cc=yi.zhang@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;
as well as URLs for NNTP newsgroup(s).