All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chao Yu <chao@kernel.org>
To: Daeho Jeong <daeho43@gmail.com>,
	linux-kernel@vger.kernel.org,
	linux-f2fs-devel@lists.sourceforge.net, kernel-team@android.com
Cc: chao@kernel.org, Daeho Jeong <daehojeong@google.com>
Subject: Re: [f2fs-dev] [PATCH v5] f2fs: support dynamic reserve/release for device aliasing
Date: Wed, 29 Jul 2026 19:44:06 +0800	[thread overview]
Message-ID: <f643492e-b31d-48d4-a721-329c62db42d3@kernel.org> (raw)
In-Reply-To: <20260723202008.2581659-1-daeho43@gmail.com>

On 7/24/26 04:20, Daeho Jeong wrote:
> From: Daeho Jeong <daehojeong@google.com>
> 
> This patch adds a dynamic management feature to the existing device
> aliasing functionality. It allows users to dynamically reserve or
> release specific devices from the filesystem's free pool at runtime
> through new ioctls.
> 
> To support this, three new ioctls are introduced:
> - F2FS_IOC_RESERVE_DEV_ALIAS: This reclaims the space occupied by a
>   device aliasing file. It first performs a capacity check, resets GC
>   victim information for the target range, marks the segments as in-use
>   to prevent new allocations, and then triggers GC to migrate existing
>   valid data out of the range. Finally, it reserves these blocks in the
>   SIT to effectively exclude the device from the usable capacity.
> 
> - F2FS_IOC_RELEASE_DEV_ALIAS: This releases the reserved space of a
>   previously reserved device aliasing file. It truncates the blocks
>   associated with the file, which makes them available for general
>   filesystem allocation again.
> 
> - F2FS_IOC_GET_DEV_ALIAS_STATUS: This retrieves the current aliasing
>   status of a device aliasing file, returning whether the file is
>   released (inactive alias) or reserved (active alias, with blocks
>   fully allocated on the device).

Hi Daeho,

BTW, could you please consider to do some coverage test to prevent from
suffering potential corruption.

e.g.:
1. call ioctls in low storage environment
2. race w/ checkpoint={disable,enable}
3. injecting faults in new ioctls + random shutdown

To verify if filesystem or device alias file is corrupted, it needs to
call fsck after the testcase, and find a way to verify whether device alias
status is as expected or not.

Please sharing your thoughts about this. :)

Thanks,

WARNING: multiple messages have this Message-ID (diff)
From: Chao Yu via Linux-f2fs-devel <linux-f2fs-devel@lists.sourceforge.net>
To: Daeho Jeong <daeho43@gmail.com>,
	linux-kernel@vger.kernel.org,
	linux-f2fs-devel@lists.sourceforge.net, kernel-team@android.com
Cc: Daeho Jeong <daehojeong@google.com>
Subject: Re: [f2fs-dev] [PATCH v5] f2fs: support dynamic reserve/release for device aliasing
Date: Wed, 29 Jul 2026 19:44:06 +0800	[thread overview]
Message-ID: <f643492e-b31d-48d4-a721-329c62db42d3@kernel.org> (raw)
In-Reply-To: <20260723202008.2581659-1-daeho43@gmail.com>

On 7/24/26 04:20, Daeho Jeong wrote:
> From: Daeho Jeong <daehojeong@google.com>
> 
> This patch adds a dynamic management feature to the existing device
> aliasing functionality. It allows users to dynamically reserve or
> release specific devices from the filesystem's free pool at runtime
> through new ioctls.
> 
> To support this, three new ioctls are introduced:
> - F2FS_IOC_RESERVE_DEV_ALIAS: This reclaims the space occupied by a
>   device aliasing file. It first performs a capacity check, resets GC
>   victim information for the target range, marks the segments as in-use
>   to prevent new allocations, and then triggers GC to migrate existing
>   valid data out of the range. Finally, it reserves these blocks in the
>   SIT to effectively exclude the device from the usable capacity.
> 
> - F2FS_IOC_RELEASE_DEV_ALIAS: This releases the reserved space of a
>   previously reserved device aliasing file. It truncates the blocks
>   associated with the file, which makes them available for general
>   filesystem allocation again.
> 
> - F2FS_IOC_GET_DEV_ALIAS_STATUS: This retrieves the current aliasing
>   status of a device aliasing file, returning whether the file is
>   released (inactive alias) or reserved (active alias, with blocks
>   fully allocated on the device).

Hi Daeho,

BTW, could you please consider to do some coverage test to prevent from
suffering potential corruption.

e.g.:
1. call ioctls in low storage environment
2. race w/ checkpoint={disable,enable}
3. injecting faults in new ioctls + random shutdown

To verify if filesystem or device alias file is corrupted, it needs to
call fsck after the testcase, and find a way to verify whether device alias
status is as expected or not.

Please sharing your thoughts about this. :)

Thanks,


_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

  parent reply	other threads:[~2026-07-29 11:44 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-23 20:20 [f2fs-dev] [PATCH v5] f2fs: support dynamic reserve/release for device aliasing Daeho Jeong
2026-07-23 20:20 ` Daeho Jeong
2026-07-29  9:09 ` [f2fs-dev] " Chao Yu via Linux-f2fs-devel
2026-07-29  9:09   ` Chao Yu
2026-07-29 16:43   ` Daeho Jeong
2026-07-29 16:43     ` Daeho Jeong
2026-07-30  6:32     ` Chao Yu via Linux-f2fs-devel
2026-07-30  6:32       ` Chao Yu
2026-07-30 14:50       ` Daeho Jeong
2026-07-30 14:50         ` Daeho Jeong
2026-07-29 11:44 ` Chao Yu [this message]
2026-07-29 11:44   ` Chao Yu via Linux-f2fs-devel
2026-07-29 16:47   ` Daeho Jeong
2026-07-29 16:47     ` Daeho Jeong

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=f643492e-b31d-48d4-a721-329c62db42d3@kernel.org \
    --to=chao@kernel.org \
    --cc=daeho43@gmail.com \
    --cc=daehojeong@google.com \
    --cc=kernel-team@android.com \
    --cc=linux-f2fs-devel@lists.sourceforge.net \
    --cc=linux-kernel@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.