From: "Darrick J. Wong" <djwong@kernel.org>
To: bernd@bsbernd.com
Cc: miklos@szeredi.hu, linux-fsdevel@vger.kernel.org,
john@groves.net, fuse-devel@lists.linux.dev,
joannelkoong@gmail.com, neal@gompa.dev
Subject: Re: [PATCH 5/7] example/iomap_ow_ll: create a simple iomap out of place write server
Date: Fri, 15 May 2026 12:41:22 -0700 [thread overview]
Message-ID: <20260515194122.GY9544@frogsfrogsfrogs> (raw)
In-Reply-To: <177747212967.4106066.15831817668245975912.stgit@frogsfrogsfrogs>
On Wed, Apr 29, 2026 at 07:48:28AM -0700, Darrick J. Wong wrote:
> From: Darrick J. Wong <djwong@kernel.org>
>
> Create a toy iomap fileserver as an example of how out of place writes
> works.
>
> Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
> ---
> example/single_file.h | 1
> example/iomap_ow_ll.c | 813 +++++++++++++++++++++++++++++++++++++++++++++++++
> example/meson.build | 2
> example/single_file.c | 5
> 4 files changed, 819 insertions(+), 2 deletions(-)
> create mode 100644 example/iomap_ow_ll.c
>
>
> diff --git a/example/single_file.h b/example/single_file.h
> index 90696a4d5a626a..3ee9dd261352ba 100644
> --- a/example/single_file.h
> +++ b/example/single_file.h
> @@ -75,6 +75,7 @@ extern struct single_file single_file;
> struct single_file_ops {
> uint64_t (*calc_st_blocks)(void);
> uint64_t (*calc_bfree)(void);
> + uint64_t (*calc_blocks)(void);
> };
>
> static inline uint64_t b_to_fsbt(uint64_t off)
> diff --git a/example/iomap_ow_ll.c b/example/iomap_ow_ll.c
> new file mode 100644
> index 00000000000000..c4edda1f9bfe40
> --- /dev/null
> +++ b/example/iomap_ow_ll.c
> @@ -0,0 +1,813 @@
> +/*
> + * FUSE: Filesystem in Userspace
> + * Copyright (C) 2026 Oracle.
> + *
> + * This program can be distributed under the terms of the GNU GPLv2.
> + * See the file GPL2.txt.
> + */
> +
> +/** @file
> + *
> + * minimal example iomap out of place write filesystem using low-level API
> + *
> + * Compile with:
> + *
> + * gcc -Wall single_file.c iomap_ow_ll.c `pkg-config fuse3 --cflags --libs` -o iomap_ow_ll
> + *
> + * Note: If the pkg-config command fails due to the absence of the fuse3.pc
> + * file, you should configure the path to the fuse3.pc file in the
> + * PKG_CONFIG_PATH variable.
> + *
> + * ## Source code ##
> + * \include iomap_ow_ll.c
> + * \include single_file.c
> + * \include single_file.h
> + */
> +
> +#define FUSE_USE_VERSION FUSE_MAKE_VERSION(3, 99)
> +
> +#ifndef _GNU_SOURCE
> +#define _GNU_SOURCE
> +#endif
> +
> +#include <fuse_lowlevel.h>
> +#include <fuse_loopdev.h>
> +#include <stdio.h>
> +#include <stdlib.h>
> +#include <string.h>
> +#include <errno.h>
> +#include <fcntl.h>
> +#include <unistd.h>
> +#include <assert.h>
> +#include <pthread.h>
> +#include <sys/ioctl.h>
> +#include <sys/stat.h>
> +#include <linux/fs.h>
> +#include <linux/stat.h>
> +#include <linux/falloc.h>
> +#define USE_SINGLE_FILE_LL_API
> +#include "single_file.h"
> +
> +#define max(x, y) ((x) > (y) ? (x) : (y))
> +
> +#define MAP_HOLE (0)
> +#define MAP_DELALLOC (1)
> +
> +static uint16_t read_state_to_iomap_type(uint32_t map)
> +{
> + switch (map) {
> + case MAP_HOLE:
> + return FUSE_IOMAP_TYPE_HOLE;
> + case MAP_DELALLOC:
> + return FUSE_IOMAP_TYPE_DELALLOC;
> + }
> +
> + return FUSE_IOMAP_TYPE_MAPPED;
> +}
> +
> +static uint16_t write_state_to_iomap_type(uint32_t map)
> +{
> + switch (map) {
> + case MAP_HOLE:
> + return FUSE_IOMAP_TYPE_HOLE;
> + case MAP_DELALLOC:
> + return FUSE_IOMAP_TYPE_DELALLOC;
> + }
> +
> + return FUSE_IOMAP_TYPE_UNWRITTEN;
> +}
> +
> +struct ioow_ll {
> + struct fuse_session *se;
> + char *device;
> +
> + uint32_t *read_map;
> + uint32_t *write_map;
> + uint32_t max_file_blocks;
> +
> + uint8_t *freespace;
> + uint64_t bdev_blocks;
> +
> + /* really booleans */
> + int debug;
> +
> + int dev_index;
> +};
> +
> +static struct ioow_ll ll = { };
> +
> +static uint64_t ioow_bytes_allocated(void)
> +{
> + uint32_t *p, *q;
> + uint64_t i;
> + uint64_t blocks = 0;
> +
> + for (i = 0, p = ll.read_map; i < ll.max_file_blocks; i++, p++)
> + if (*p != MAP_HOLE)
> + blocks++;
> +
> + for (i = 0, q = ll.write_map; i < ll.max_file_blocks; i++, q++)
> + if (*q != MAP_HOLE)
> + blocks++;
> +
> + return fsb_to_b(blocks);
> +}
> +
> +static uint64_t ioow_ll_calc_stblocks(void)
> +{
> + return howmany(ioow_bytes_allocated(), 512);
> +}
> +
> +static uint64_t ioow_ll_calc_blocks(void)
> +{
> + return ll.bdev_blocks;
> +}
> +
> +static uint64_t ioow_ll_calc_bfree(void)
> +{
> + return ll.bdev_blocks - b_to_fsb(ioow_bytes_allocated());
> +}
> +
> +static void ioow_ll_init(void *userdata, struct fuse_conn_info *conn)
> +{
> + (void)userdata;
> +
> + if (fuse_set_feature_flag(conn, FUSE_CAP_IOMAP))
> + single_file.uses_iomap = true;
> + conn->time_gran = 1;
> +}
> +
> +static int ioow_iomap_config_devices(void)
> +{
> + int blocksize = single_file.blocksize;
> + int ret;
> +
> + ll.dev_index = fuse_lowlevel_iomap_device_add(ll.se, single_file.backing_fd, 0);
> + if (ll.dev_index < 0) {
> + ret = -ll.dev_index;
> + printf("%s: cannot register iomap dev fd=%d: %s\n",
> + ll.device, single_file.backing_fd, strerror(ret));
> + return ret;
> + }
> +
> + ret = ioctl(single_file.backing_fd, BLKBSZSET, &blocksize);
> + if (ret) {
> + printf("%s: cannot set block size %u: %s\n",
> + ll.device, single_file.blocksize, strerror(errno));
> + return errno;
> + }
> +
> + return 0;
> +}
> +
> +static void ioow_ll_iomap_config(fuse_req_t req,
> + const struct fuse_iomap_config_params *p,
> + size_t psize)
> +{
> + struct fuse_iomap_config cfg = { };
> + int ret;
> +
> + (void)p;
> + (void)psize;
> +
> + cfg.flags |= FUSE_IOMAP_CONFIG_BLOCKSIZE;
> + cfg.s_blocksize = single_file.blocksize;
> +
> + cfg.flags |= FUSE_IOMAP_CONFIG_MAXBYTES;
> + cfg.s_maxbytes = fsb_to_b(ll.max_file_blocks);
> +
> + ret = ioow_iomap_config_devices();
> + if (ret)
> + fuse_reply_err(req, ret);
> + else
> + fuse_reply_iomap_config(req, &cfg);
> +}
> +
> +static ssize_t adjust_endoff(uint64_t fileoff, uint64_t *endoff)
> +{
> + if (fileoff >= ll.max_file_blocks)
> + return -EIO;
> + if (*endoff > ll.max_file_blocks)
> + *endoff = ll.max_file_blocks;
> + return 0;
> +}
> +
> +static ssize_t ioow_begin_report(off_t pos, uint64_t count, uint32_t opflags,
> + struct fuse_file_iomap *read,
> + struct fuse_file_iomap *write)
> +{
> + uint64_t fileoff, endoff;
> + uint32_t *p, *q;
> + uint32_t orig_p, orig_q;
> + ssize_t ret;
> +
> + (void)opflags;
> +
> + fileoff = b_to_fsbt(pos);
> + endoff = b_to_fsb(pos + count);
> +
> + ret = adjust_endoff(fileoff, &endoff);
> + if (ret)
> + return ret;
> +
> + if (ll.debug)
> + fprintf(stderr,
> +"%s: pos 0x%llx count 0x%llx fileoff 0x%llx endoff 0x%llx new_endoff 0x%llx\n",
> + __func__,
> + (unsigned long long)pos,
> + (unsigned long long)count,
> + (unsigned long long)fileoff,
> + (unsigned long long)b_to_fsb(pos + count),
> + (unsigned long long)endoff);
> +
> + read->offset = fsb_to_b(fileoff);
> + write->offset = fsb_to_b(fileoff);
> + read->length = 0;
> + write->length = 0;
> +
> + orig_p = ll.read_map[fileoff];
> + orig_q = ll.write_map[fileoff];
> + read->type = read_state_to_iomap_type(orig_p);
> + write->type = write_state_to_iomap_type(orig_q);
> +
> + switch (read->type) {
> + case FUSE_IOMAP_TYPE_MAPPED:
> + case FUSE_IOMAP_TYPE_UNWRITTEN:
> + read->dev = ll.dev_index;
> + read->addr = fsb_to_b(orig_p);
> + break;
> + case FUSE_IOMAP_TYPE_DELALLOC:
> + case FUSE_IOMAP_TYPE_HOLE:
> + read->dev = FUSE_IOMAP_DEV_NULL;
> + read->addr = FUSE_IOMAP_NULL_ADDR;
> + break;
> + default:
> + return -EIO;
> + }
> +
> + switch (write->type) {
> + case FUSE_IOMAP_TYPE_MAPPED:
> + case FUSE_IOMAP_TYPE_UNWRITTEN:
> + write->dev = ll.dev_index;
> + write->addr = fsb_to_b(orig_q);
> + break;
> + case FUSE_IOMAP_TYPE_DELALLOC:
> + case FUSE_IOMAP_TYPE_HOLE:
> + write->dev = FUSE_IOMAP_DEV_NULL;
> + write->addr = FUSE_IOMAP_NULL_ADDR;
> + break;
> + default:
> + return -EIO;
> + }
> +
> + for (p = ll.read_map + fileoff, q = ll.write_map + fileoff;
> + fileoff < endoff;
> + p++, q++, fileoff++) {
> + if (read->type != read_state_to_iomap_type(*p))
> + break;
> + if (write->type != write_state_to_iomap_type(*q))
> + break;
> + if (read->type == FUSE_IOMAP_TYPE_MAPPED &&
> + read->addr + read->length != fsb_to_b(*p))
> + break;
> + if (write->type == FUSE_IOMAP_TYPE_MAPPED &&
The contiguity check needs to happen for unwritten mappings too.
> + write->addr + write->length != fsb_to_b(*q))
> + break;
> +
> + read->length += single_file.blocksize;
> + write->length += single_file.blocksize;
> + }
> +
> + return 0;
> +}
> +
> +static ssize_t ioow_begin_read(off_t pos, uint64_t count, uint32_t opflags,
> + struct fuse_file_iomap *read,
> + struct fuse_file_iomap *write)
> +{
> + return ioow_begin_report(pos, count, opflags, read, write);
> +}
> +
> +struct free_extent {
> + uint32_t startblock;
> + uint32_t blockcount;
> +};
> +
> +#define FIND_FREE_INIT_CURSOR (MAP_DELALLOC + 1)
> +
> +static uint32_t ioow_find_free(uint32_t *cursor)
> +{
> + bool wrapped = false;
> +
> + while (!wrapped) {
> + if (*cursor >= ll.bdev_blocks || *cursor <= MAP_DELALLOC)
> + *cursor = FIND_FREE_INIT_CURSOR;
> +
> + for (; *cursor < ll.bdev_blocks; (*cursor)++) {
> + if (ll.freespace[*cursor]) {
> + ll.freespace[*cursor] = 0;
> + (*cursor)++;
> + return *cursor - 1;
> + }
> + }
> +
> + wrapped = true;
> + }
> +
> + return MAP_HOLE;
> +}
> +
> +static void ioow_free_block(uint32_t *block)
> +{
> + if (*block > MAP_DELALLOC)
> + ll.freespace[*block] = 1;
> + *block = MAP_HOLE;
> +}
> +
> +static void ioow_remap_block(uint32_t *p, uint32_t *q)
> +{
> + ioow_free_block(p);
> + *p = *q;
> + *q = MAP_HOLE;
> +}
> +
> +static ssize_t ioow_write_allocate(off_t pos, uint64_t count, uint32_t opflags)
> +{
> + uint64_t fileoff, endoff;
> + uint32_t *q;
> + const bool direct = opflags & (FUSE_IOMAP_OP_DIRECT |
> + FUSE_IOMAP_OP_WRITEBACK);
> + uint32_t cursor = FIND_FREE_INIT_CURSOR;
> + ssize_t ret;
> +
> + if (opflags & FUSE_IOMAP_OP_ZERO)
> + return 0;
> +
> + fileoff = b_to_fsbt(pos);
> + endoff = b_to_fsb(pos + count);
> +
> + ret = adjust_endoff(fileoff, &endoff);
> + if (ret)
> + return ret;
> +
> + if (ll.debug)
> + fprintf(stderr, "%s: set %s pos 0x%llx count 0x%llx\n",
> + __func__,
> + direct ? "unwritten" : "delalloc",
> + (unsigned long long)pos,
> + (unsigned long long)count);
> +
> + for (q = ll.write_map + fileoff; fileoff < endoff; q++, fileoff++) {
> + if (!direct && *q == MAP_HOLE) {
> + fprintf(stderr, "%s: fileoff %lu delalloc\n", __func__, fileoff);
> + *q = MAP_DELALLOC;
> + continue;
> + }
> +
> + if (direct && (*q == MAP_HOLE || *q == MAP_DELALLOC)) {
> + uint32_t free_block = ioow_find_free(&cursor);
> +
> + if (free_block == MAP_HOLE)
> + return -ENOSPC;
This shouldn't return ENOSPC if we've filled out any of the map; we can
just return a short allocation and let the kernel call us back.
> +
> + fprintf(stderr, "%s: fileoff %lu unwritten %u\n",
> + __func__, fileoff, free_block);
> + *q = free_block;
> + }
> + }
> +
> + single_file.isize = max(single_file.isize, pos + count);
Hrmm. I'm not sure why I wrote this, the file size shouldn't get
extended until write complete (e.g. iomap_ioend).
> + return 0;
> +}
> +
> +static ssize_t ioow_begin_write(off_t pos, uint64_t count, uint32_t opflags,
> + struct fuse_file_iomap *read,
> + struct fuse_file_iomap *write)
> +{
> + ssize_t ret;
> +
> + ret = ioow_write_allocate(pos, count, opflags);
> + if (ret)
> + return ret;
> +
> + return ioow_begin_read(pos, count, opflags, read, write);
> +}
> +
> +static void ioow_ll_iomap_begin(fuse_req_t req, fuse_ino_t ino,
> + uint64_t dontcare, off_t pos, uint64_t count,
> + uint32_t opflags)
> +{
> + struct fuse_file_iomap read, write;
> + ssize_t got;
> + int ret = 0;
> +
> + (void)dontcare;
> +
> + if (!is_single_file_ino(ino)) {
> + ret = EIO;
> + goto out_reply;
> + }
> +
> + if (ll.debug)
> + fprintf(stderr, "%s: pos 0x%llx count 0x%llx opflags 0x%x\n",
> + __func__,
> + (unsigned long long)pos,
> + (unsigned long long)count,
> + opflags);
> +
> + if (!single_file.allow_dio && (opflags & FUSE_IOMAP_OP_DIRECT)) {
> + ret = ENOSYS;
> + goto out_reply;
> + }
> +
> + memset(&read, 0, sizeof(read));
> + memset(&write, 0, sizeof(write));
> +
> + pthread_mutex_lock(&single_file.lock);
> + if (opflags & FUSE_IOMAP_OP_REPORT)
> + got = ioow_begin_report(pos, count, opflags, &read, &write);
> + else if (fuse_iomap_is_write(opflags))
> + got = ioow_begin_write(pos, count, opflags, &read, &write);
> + else
> + got = ioow_begin_read(pos, count, opflags, &read, &write);
> + if (got < 0) {
> + ret = -got;
> + goto out_unlock;
> + }
> +
> + if (ll.debug) {
> + fprintf(stderr,
> +"%s: read offset 0x%llx length 0x%llx type %u dev %u addr 0x%llx flags 0x%x\n",
> + __func__,
> + (unsigned long long)read.offset,
> + (unsigned long long)read.length,
> + read.type,
> + read.dev,
> + (unsigned long long)read.addr,
> + read.flags);
> + fprintf(stderr,
> +"%s: write offset 0x%llx length 0x%llx type %u dev %u addr 0x%llx flags 0x%x\n",
> + __func__,
> + (unsigned long long)write.offset,
> + (unsigned long long)write.length,
> + write.type,
> + write.dev,
> + (unsigned long long)write.addr,
> + write.flags);
> + }
> +
> + /* Not filling even the first byte will make the kernel unhappy. */
> + if (read.offset > pos || read.offset + read.length <= pos) {
> + printf("%s: made read bad mapping at pos %llu\n", ll.device,
> + (unsigned long long)pos);
> + ret = EIO;
> + goto out_unlock;
> + }
> + if (write.offset > pos || write.offset + write.length <= pos) {
> + printf("%s: made bad write mapping at pos %llu\n", ll.device,
> + (unsigned long long)pos);
> + ret = EIO;
> + goto out_unlock;
> + }
> +
> +out_unlock:
> + pthread_mutex_unlock(&single_file.lock);
> +out_reply:
> + if (ret)
> + fuse_reply_err(req, ret);
> + else
> + fuse_reply_iomap_begin(req, &read, &write);
> +}
> +
> +static void ioow_ll_iomap_end(fuse_req_t req, fuse_ino_t ino,
> + uint64_t dontcare, off_t pos, uint64_t count,
> + uint32_t opflags, ssize_t written,
> + const struct fuse_file_iomap *iomap)
> +{
> + uint64_t fileoff, endoff;
> + uint32_t *q;
> + ssize_t got;
> + int ret = 0;
> +
> + (void)dontcare;
> + (void)iomap;
> +
> + if (!is_single_file_ino(ino)) {
> + ret = EIO;
> + goto out_reply;
> + }
> +
> + if (ll.debug)
> + fprintf(stderr, "%s: pos 0x%llx count 0x%llx opflags 0x%x written 0x%zd\n",
> + __func__,
> + (unsigned long long)pos,
> + (unsigned long long)count,
> + opflags,
> + written);
> +
> + if (written >= 0)
> + goto out_reply;
> +
> + /* punch delalloc mappings due to error */
> + pthread_mutex_lock(&single_file.lock);
> + fileoff = b_to_fsbt(pos);
> + endoff = b_to_fsb(pos + count);
> +
> + got = adjust_endoff(fileoff, &endoff);
> + if (got < 0) {
> + ret = -got;
> + goto out_unlock;
> + }
> +
> + for (q = ll.write_map + fileoff; fileoff < endoff; q++, fileoff++) {
> + if (*q == MAP_DELALLOC)
> + ioow_free_block(q);
> + }
> +
> +out_unlock:
> + pthread_mutex_unlock(&single_file.lock);
> +out_reply:
> + fuse_reply_err(req, ret);
> +}
> +
> +static void ioow_ll_iomap_ioend(fuse_req_t req, fuse_ino_t ino,
> + uint64_t dontcare, off_t pos, size_t written,
> + uint32_t ioendflags, int error, uint32_t dev,
> + uint64_t new_addr)
> +{
> + uint64_t fileoff, endoff;
> + uint32_t *p, *q;
> + ssize_t got;
> + int ret = 0;
> +
> + (void)dontcare;
> +
> + if (!is_single_file_ino(ino)) {
> + ret = EIO;
> + goto out_reply;
> + }
> +
> + if (ll.debug)
> + fprintf(stderr,
> +"%s: pos 0x%llx written 0x%zx ioendflags 0x%x error %d dev %u new_addr 0x%llx\n",
> + __func__,
> + (unsigned long long)pos,
> + written,
> + ioendflags,
> + error,
> + dev,
> + (unsigned long long)new_addr);
> +
> + if (error) {
> + ret = error;
> + goto out_reply;
> + }
> +
> + pthread_mutex_lock(&single_file.lock);
> + fileoff = b_to_fsbt(pos);
> + endoff = b_to_fsb(pos + written);
> +
> + got = adjust_endoff(fileoff, &endoff);
> + if (got < 0) {
> + ret = -got;
> + goto out_unlock;
> + }
> +
> + for (p = ll.read_map + fileoff, q = ll.write_map + fileoff;
> + fileoff < endoff; p++, q++, fileoff++) {
> + fprintf(stderr, "%s: fileoff %lu read %u write %u\n", __func__, fileoff, *p, *q);
> + ioow_remap_block(p, q);
> + }
> +
> + single_file.isize = max(single_file.isize, pos + written);
> +
> +out_unlock:
> + pthread_mutex_unlock(&single_file.lock);
> +out_reply:
> + if (ret)
> + fuse_reply_err(req, ret);
> + else
> + fuse_reply_iomap_ioend(req, single_file.isize);
> +}
> +
> +static void ioow_ll_fallocate(fuse_req_t req, fuse_ino_t ino, int mode,
> + off_t pos, off_t count,
> + struct fuse_file_info *fp)
> +{
> + uint64_t fileoff, endoff;
> + uint32_t *p, *q;
> + ssize_t got;
> + int ret = 0;
> +
> + (void)fp;
> +
> + if (!is_single_file_ino(ino)) {
> + ret = EIO;
> + goto out_reply;
> + }
> +
> + if (ll.debug)
> + fprintf(stderr, "%s: pos 0x%llx count 0x%llx mode 0x%x\n",
> + __func__,
> + (unsigned long long)pos,
> + (unsigned long long)count,
> + mode);
> +
> + if (!(mode & (FALLOC_FL_ZERO_RANGE | FALLOC_FL_PUNCH_HOLE))) {
> + ret = EOPNOTSUPP;
> + goto out_reply;
> + }
> +
> + pthread_mutex_lock(&single_file.lock);
> + fileoff = b_to_fsbt(pos);
> + endoff = b_to_fsb(pos + count);
> +
> + got = adjust_endoff(fileoff, &endoff);
> + if (got < 0) {
> + ret = -got;
> + goto out_unlock;
> + }
> +
> + for (p = ll.read_map + fileoff, q = ll.write_map + fileoff;
> + fileoff < endoff;
> + p++, q++, fileoff++) {
> + ioow_free_block(p);
> + ioow_free_block(q);
> + }
> +
> + if (!(mode & FALLOC_FL_KEEP_SIZE))
> + single_file.isize = max(single_file.isize, pos + count);
> +
> +out_unlock:
> + pthread_mutex_unlock(&single_file.lock);
> +out_reply:
> + fuse_reply_err(req, ret);
> +}
> +
> +static const struct fuse_lowlevel_ops ioow_ll_oper = {
> + .lookup = single_file_ll_lookup,
> + .getattr = single_file_ll_getattr,
> + .setattr = single_file_ll_setattr,
> + .readdir = single_file_ll_readdir,
> + .open = single_file_ll_open,
> + .statfs = single_file_ll_statfs,
> + .statx = single_file_ll_statx,
> + .fsync = single_file_ll_fsync,
> +
> + .init = ioow_ll_init,
> + .iomap_config = ioow_ll_iomap_config,
> + .iomap_begin = ioow_ll_iomap_begin,
> + .iomap_end = ioow_ll_iomap_end,
> + .iomap_ioend = ioow_ll_iomap_ioend,
> + .fallocate = ioow_ll_fallocate,
> +};
> +
> +#define IOOW_LL_OPT(t, p, v) { t, offsetof(struct ioow_ll, p), v }
> +
> +static struct fuse_opt ioow_ll_opts[] = {
> + IOOW_LL_OPT("debug", debug, 1),
> + SINGLE_FILE_OPT_KEYS,
> + FUSE_OPT_END
> +};
> +
> +static int ioow_ll_opt_proc(void *data, const char *arg,
> + int key, struct fuse_args *outargs)
> +{
> + if (single_file_opt_proc(data, arg, key, outargs) == 0)
> + return 0;
> +
> + switch (key) {
> + case FUSE_OPT_KEY_NONOPT:
> + if (!ll.device) {
> + ll.device = strdup(arg);
> + return 0;
> + }
> + return 1;
> + }
> +
> + return 1;
> +}
> +
> +static const struct single_file_ops fops = {
> + .calc_st_blocks = ioow_ll_calc_stblocks,
> + .calc_blocks = ioow_ll_calc_blocks,
> + .calc_bfree = ioow_ll_calc_bfree,
> +};
> +
> +int main(int argc, char *argv[])
> +{
> + struct fuse_args args = FUSE_ARGS_INIT(argc, argv);
> + struct fuse_cmdline_opts opts = { };
> + int ret = 1;
> +
> + if (fuse_opt_parse(&args, &ll, ioow_ll_opts, ioow_ll_opt_proc))
> + goto err_args;
> +
> + if (fuse_parse_cmdline(&args, &opts))
> + goto err_args;
> +
> + if (opts.show_help) {
> + printf("usage: %s [options] <device> <mountpoint>\n\n", argv[0]);
> + fuse_cmdline_help();
> + fuse_lowlevel_help();
> + ret = 0;
> + goto err_strings;
> + } else if (opts.show_version) {
> + printf("FUSE library version %s\n", fuse_pkgversion());
> + fuse_lowlevel_version();
> + ret = 0;
> + goto err_strings;
> + }
> +
> + if (!opts.mountpoint || !ll.device) {
> + printf("usage: %s [options] <device> <mountpoint>\n", argv[0]);
> + printf(" %s --help\n", argv[0]);
> + goto err_strings;
> + }
> +
> + if (single_file_open(ll.device))
> + goto err_strings;
> +
> + if (single_file_configure(ll.device, S_IFBLK, "outtaplace", &fops))
> + goto err_singlefile;
> +
> + ll.bdev_blocks = single_file.isize / single_file.blocksize;
> + if (ll.bdev_blocks < 3) {
> + fprintf(stderr, "%s: block device must be at least %llu bytes long\n",
> + ll.device, (unsigned long long)single_file.blocksize * 3);
> + goto err_singlefile;
> + }
> + single_file.isize = 0;
> +
> + ll.freespace = malloc(ll.bdev_blocks);
> + if (!ll.freespace) {
> + perror("freespace");
> + goto err_singlefile;
> + }
> + memset(ll.freespace, 1, ll.bdev_blocks);
> +
> + /* block 0 means hole, block 1 means dealloc, and 1 spare */
> + ll.max_file_blocks = ll.bdev_blocks - 3;
> + ll.read_map = calloc(ll.max_file_blocks, sizeof(uint32_t));
> + if (!ll.read_map) {
> + perror("read map");
> + goto err_freespace;
> + }
> +
> + ll.write_map = calloc(ll.max_file_blocks, sizeof(uint32_t));
> + if (!ll.write_map) {
> + perror("read map");
> + goto err_readmap;
> + }
> +
> + ll.se = fuse_session_new(&args, &ioow_ll_oper, sizeof(ioow_ll_oper),
> + NULL);
> + if (ll.se == NULL)
> + goto err_writemap;
> +
> + if (fuse_set_signal_handlers(ll.se))
> + goto err_session;
> +
> + if (fuse_session_mount(ll.se, opts.mountpoint))
> + goto err_signals;
> +
> + fuse_daemonize(opts.foreground);
> +
> + /* Block until ctrl+c or fusermount -u */
> + if (opts.singlethread) {
> + ret = fuse_session_loop(ll.se);
> + } else {
> + struct fuse_loop_config *config = fuse_loop_cfg_create();
> +
> + if (!config) {
> + ret = 1;
> + goto err_mount;
> + }
> +
> + fuse_loop_cfg_set_clone_fd(config, opts.clone_fd);
> + fuse_loop_cfg_set_max_threads(config, opts.max_threads);
> + ret = fuse_session_loop_mt(ll.se, config);
> + fuse_loop_cfg_destroy(config);
> + }
> +
> +err_mount:
> + fuse_session_unmount(ll.se);
> +err_signals:
> + fuse_remove_signal_handlers(ll.se);
> +err_session:
> + fuse_session_destroy(ll.se);
> +err_writemap:
> + free(ll.write_map);
> +err_readmap:
> + free(ll.read_map);
> +err_freespace:
> + free(ll.freespace);
> +err_singlefile:
> + single_file_close();
> +err_strings:
> + free(opts.mountpoint);
> + free(ll.device);
> +err_args:
> + fuse_opt_free_args(&args);
> + return ret ? 1 : 0;
> +}
> diff --git a/example/meson.build b/example/meson.build
> index 24fdcb23cb58f2..6967a2ee370d4b 100644
> --- a/example/meson.build
> +++ b/example/meson.build
> @@ -31,7 +31,7 @@ if platform.endswith('linux')
> output: 'service_hl.socket',
> configuration: private_cfg)
>
> - single_file_examples += [ 'iomap_ll', 'iomap_inline_ll' ]
> + single_file_examples += [ 'iomap_ll', 'iomap_inline_ll', 'iomap_ow_ll' ]
> endif
>
> threaded_examples = [ 'notify_inval_inode',
> diff --git a/example/single_file.c b/example/single_file.c
> index 1d66157a8c637c..c4ac998a2c978b 100644
> --- a/example/single_file.c
> +++ b/example/single_file.c
> @@ -382,7 +382,10 @@ static void single_file_statfs(struct statvfs *buf)
> buf->f_bsize = single_file.blocksize;
> buf->f_frsize = 0;
>
> - buf->f_blocks = single_file.blocks;
> + if (single_file_ops && single_file_ops->calc_blocks)
> + buf->f_blocks = single_file_ops->calc_blocks();
> + else
> + buf->f_blocks = single_file.blocks;
> if (single_file_ops && single_file_ops->calc_bfree)
> buf->f_bfree = single_file_ops->calc_bfree();
> else
>
>
next prev parent reply other threads:[~2026-05-15 19:41 UTC|newest]
Thread overview: 240+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-29 14:12 [PATCHBLIZZARD v8] fuse/libfuse/e2fsprogs: faster file IO for containerized ext4 servers Darrick J. Wong
2026-04-29 14:16 ` [PATCHSET v8 1/8] fuse: general bug fixes Darrick J. Wong
2026-04-29 14:21 ` [PATCH 1/4] fuse: flush pending FUSE_RELEASE requests before sending FUSE_DESTROY Darrick J. Wong
2026-04-29 14:22 ` [PATCH 2/4] fuse: implement file attributes mask for statx Darrick J. Wong
2026-04-29 14:22 ` [PATCH 3/4] fuse: update file mode when updating acls Darrick J. Wong
2026-04-30 13:48 ` Joanne Koong
2026-04-30 20:57 ` Darrick J. Wong
2026-05-01 9:53 ` Joanne Koong
2026-05-01 16:15 ` Darrick J. Wong
2026-04-29 14:22 ` [PATCH 4/4] fuse: propagate default and file acls on creation Darrick J. Wong
2026-05-01 11:11 ` Joanne Koong
2026-05-01 16:57 ` Darrick J. Wong
2026-04-29 14:16 ` [PATCHSET v8 2/8] iomap: cleanups ahead of adding fuse support Darrick J. Wong
2026-04-29 14:22 ` [PATCH 1/2] iomap: allow directio callers to supply _COMP_WORK Darrick J. Wong
2026-04-29 14:23 ` [PATCH 2/2] iomap: allow NULL swap info bdev when activating swapfile Darrick J. Wong
2026-05-08 9:06 ` Christoph Hellwig
2026-05-08 23:41 ` Darrick J. Wong
2026-04-29 14:17 ` [PATCHSET v8 3/8] fuse: cleanups ahead of adding fuse support Darrick J. Wong
2026-04-29 14:23 ` [PATCH 1/2] fuse: move the passthrough-specific code back to passthrough.c Darrick J. Wong
2026-05-14 18:38 ` Darrick J. Wong
2026-05-14 19:48 ` Amir Goldstein
2026-05-14 22:21 ` Darrick J. Wong
2026-04-29 14:23 ` [PATCH 2/2] fuse_trace: " Darrick J. Wong
2026-05-14 18:41 ` Darrick J. Wong
2026-04-29 14:17 ` [PATCHSET v8 4/8] fuse: allow servers to use iomap for better file IO performance Darrick J. Wong
2026-04-29 14:23 ` [PATCH 01/33] fuse: implement the basic iomap mechanisms Darrick J. Wong
2026-05-13 17:38 ` Darrick J. Wong
2026-04-29 14:24 ` [PATCH 02/33] fuse_trace: " Darrick J. Wong
2026-04-29 14:24 ` [PATCH 03/33] fuse: make debugging configurable at runtime Darrick J. Wong
2026-05-13 17:41 ` Darrick J. Wong
2026-05-13 17:46 ` Bernd Schubert
2026-05-13 18:35 ` Darrick J. Wong
2026-05-13 19:44 ` Bernd Schubert
2026-05-14 14:35 ` Darrick J. Wong
2026-04-29 14:24 ` [PATCH 04/33] fuse: adapt FUSE_DEV_IOC_BACKING_{OPEN,CLOSE} to add new iomap devices Darrick J. Wong
2026-05-13 18:04 ` Darrick J. Wong
2026-04-29 14:24 ` [PATCH 05/33] fuse_trace: " Darrick J. Wong
2026-04-29 14:25 ` [PATCH 06/33] fuse: enable SYNCFS and ensure we flush everything before sending DESTROY Darrick J. Wong
2026-04-29 14:25 ` [PATCH 07/33] fuse: clean up per-file type inode initialization Darrick J. Wong
2026-04-29 14:25 ` [PATCH 08/33] fuse: create a per-inode flag for setting exclusive mode Darrick J. Wong
2026-05-13 18:09 ` Darrick J. Wong
2026-04-29 14:26 ` [PATCH 09/33] fuse: create a per-inode flag for toggling iomap Darrick J. Wong
2026-05-14 19:52 ` Darrick J. Wong
2026-04-29 14:26 ` [PATCH 10/33] fuse_trace: " Darrick J. Wong
2026-04-29 14:26 ` [PATCH 11/33] fuse: isolate the other regular file IO paths from iomap Darrick J. Wong
2026-05-13 18:18 ` Darrick J. Wong
2026-04-29 14:26 ` [PATCH 12/33] fuse: implement basic iomap reporting such as FIEMAP and SEEK_{DATA,HOLE} Darrick J. Wong
2026-05-13 18:30 ` Darrick J. Wong
2026-04-29 14:27 ` [PATCH 13/33] fuse_trace: " Darrick J. Wong
2026-04-29 14:27 ` [PATCH 14/33] fuse: implement direct IO with iomap Darrick J. Wong
2026-05-13 18:44 ` Darrick J. Wong
2026-04-29 14:27 ` [PATCH 15/33] fuse_trace: " Darrick J. Wong
2026-04-29 14:27 ` [PATCH 16/33] fuse: implement buffered " Darrick J. Wong
2026-05-13 19:18 ` Darrick J. Wong
2026-04-29 14:28 ` [PATCH 17/33] fuse_trace: " Darrick J. Wong
2026-05-13 19:25 ` Darrick J. Wong
2026-04-29 14:28 ` [PATCH 18/33] fuse: use an unrestricted backing device with iomap pagecache io Darrick J. Wong
2026-05-13 21:24 ` Darrick J. Wong
2026-04-29 14:28 ` [PATCH 19/33] fuse: implement large folios for iomap pagecache files Darrick J. Wong
2026-04-29 14:28 ` [PATCH 20/33] fuse: advertise support for iomap Darrick J. Wong
2026-04-29 14:29 ` [PATCH 21/33] fuse: query filesystem geometry when using iomap Darrick J. Wong
2026-05-13 21:05 ` Darrick J. Wong
2026-04-29 14:29 ` [PATCH 22/33] fuse_trace: " Darrick J. Wong
2026-05-14 20:54 ` Darrick J. Wong
2026-04-29 14:29 ` [PATCH 23/33] fuse: implement fadvise for iomap files Darrick J. Wong
2026-04-29 14:29 ` [PATCH 24/33] fuse: invalidate ranges of block devices being used for iomap Darrick J. Wong
2026-05-13 22:13 ` Darrick J. Wong
2026-04-29 14:30 ` [PATCH 25/33] fuse_trace: " Darrick J. Wong
2026-04-29 14:30 ` [PATCH 26/33] fuse: implement inline data file IO via iomap Darrick J. Wong
2026-05-13 20:03 ` Darrick J. Wong
2026-04-29 14:30 ` [PATCH 27/33] fuse_trace: " Darrick J. Wong
2026-05-13 20:09 ` Darrick J. Wong
2026-04-29 14:31 ` [PATCH 28/33] fuse: allow more statx fields Darrick J. Wong
2026-04-29 14:31 ` [PATCH 29/33] fuse: support atomic writes with iomap Darrick J. Wong
2026-04-29 14:31 ` [PATCH 30/33] fuse_trace: " Darrick J. Wong
2026-04-29 14:31 ` [PATCH 31/33] fuse: disable direct fs reclaim for any fuse server that uses iomap Darrick J. Wong
2026-05-13 21:27 ` Darrick J. Wong
2026-04-29 14:32 ` [PATCH 32/33] fuse: enable swapfile activation on iomap Darrick J. Wong
2026-05-14 14:42 ` Darrick J. Wong
2026-04-29 14:32 ` [PATCH 33/33] fuse: implement freeze and shutdowns for iomap filesystems Darrick J. Wong
2026-04-29 14:17 ` [PATCHSET v8 5/8] fuse: allow servers to specify root node id Darrick J. Wong
2026-04-29 14:32 ` [PATCH 1/3] fuse: make the root nodeid dynamic Darrick J. Wong
2026-05-14 21:38 ` Darrick J. Wong
2026-04-29 14:32 ` [PATCH 2/3] fuse_trace: " Darrick J. Wong
2026-04-29 14:33 ` [PATCH 3/3] fuse: allow setting of root nodeid Darrick J. Wong
2026-05-14 21:37 ` Darrick J. Wong
2026-04-29 14:17 ` [PATCHSET v8 6/8] fuse: handle timestamps and ACLs correctly when iomap is enabled Darrick J. Wong
2026-04-29 14:33 ` [PATCH 1/9] fuse: enable caching of timestamps Darrick J. Wong
2026-05-14 22:09 ` Darrick J. Wong
2026-05-15 20:33 ` Amir Goldstein
2026-05-15 21:36 ` Darrick J. Wong
2026-05-15 23:16 ` Amir Goldstein
2026-04-29 14:33 ` [PATCH 2/9] fuse: force a ctime update after a fileattr_set call when in iomap mode Darrick J. Wong
2026-05-14 21:44 ` Darrick J. Wong
2026-04-29 14:33 ` [PATCH 3/9] fuse: allow local filesystems to set some VFS iflags Darrick J. Wong
2026-05-14 22:14 ` Darrick J. Wong
2026-05-15 21:14 ` Amir Goldstein
2026-05-15 21:49 ` Darrick J. Wong
2026-04-29 14:34 ` [PATCH 4/9] fuse_trace: " Darrick J. Wong
2026-04-29 14:34 ` [PATCH 5/9] fuse: cache atime when in iomap mode Darrick J. Wong
2026-05-14 22:16 ` Darrick J. Wong
2026-05-15 21:23 ` Amir Goldstein
2026-04-29 14:34 ` [PATCH 6/9] fuse: let the kernel handle KILL_SUID/KILL_SGID for iomap filesystems Darrick J. Wong
2026-05-14 22:18 ` Darrick J. Wong
2026-05-15 21:43 ` Amir Goldstein
2026-05-15 21:52 ` Darrick J. Wong
2026-04-29 14:34 ` [PATCH 7/9] fuse_trace: " Darrick J. Wong
2026-05-14 22:19 ` Darrick J. Wong
2026-04-29 14:35 ` [PATCH 8/9] fuse: update ctime when updating acls on an iomap inode Darrick J. Wong
2026-05-14 22:20 ` Darrick J. Wong
2026-04-29 14:35 ` [PATCH 9/9] fuse: always cache ACLs when using iomap Darrick J. Wong
2026-04-29 14:18 ` [PATCHSET v8 7/8] fuse: cache iomap mappings for even better file IO performance Darrick J. Wong
2026-04-29 14:35 ` [PATCH 01/12] fuse: cache iomaps Darrick J. Wong
2026-05-14 22:28 ` Darrick J. Wong
2026-04-29 14:35 ` [PATCH 02/12] fuse_trace: " Darrick J. Wong
2026-04-29 14:36 ` [PATCH 03/12] fuse: use the iomap cache for iomap_begin Darrick J. Wong
2026-04-29 14:36 ` [PATCH 04/12] fuse_trace: " Darrick J. Wong
2026-04-29 14:36 ` [PATCH 05/12] fuse: invalidate iomap cache after file updates Darrick J. Wong
2026-04-29 14:36 ` [PATCH 06/12] fuse_trace: " Darrick J. Wong
2026-04-29 14:37 ` [PATCH 07/12] fuse: enable iomap cache management Darrick J. Wong
2026-05-14 22:59 ` Darrick J. Wong
2026-04-29 14:37 ` [PATCH 08/12] fuse_trace: " Darrick J. Wong
2026-04-29 14:37 ` [PATCH 09/12] fuse: overlay iomap inode info in struct fuse_inode Darrick J. Wong
2026-04-29 14:38 ` [PATCH 10/12] fuse: constrain iomap mapping cache size Darrick J. Wong
2026-05-14 23:00 ` Darrick J. Wong
2026-04-29 14:38 ` [PATCH 11/12] fuse_trace: " Darrick J. Wong
2026-05-14 23:05 ` Darrick J. Wong
2026-04-29 14:38 ` [PATCH 12/12] fuse: enable iomap Darrick J. Wong
2026-04-29 14:18 ` [PATCHSET v8 8/8] fuse: run fuse-iomap servers as a contained service Darrick J. Wong
2026-04-29 14:38 ` [PATCH 1/2] fuse: allow privileged mount helpers to pre-approve iomap usage Darrick J. Wong
2026-05-13 21:33 ` Darrick J. Wong
2026-04-29 14:39 ` [PATCH 2/2] fuse: set iomap backing device block size Darrick J. Wong
2026-04-29 14:18 ` [PATCHSET v8 1/6] libfuse: allow servers to use iomap for better file IO performance Darrick J. Wong
2026-04-29 14:39 ` [PATCH 01/25] libfuse: bump kernel and library ABI versions Darrick J. Wong
2026-04-29 14:39 ` [PATCH 02/25] libfuse: wait in do_destroy until all open files are closed Darrick J. Wong
2026-05-15 18:30 ` Darrick J. Wong
2026-04-29 14:39 ` [PATCH 03/25] libfuse: add kernel gates for FUSE_IOMAP Darrick J. Wong
2026-04-29 14:40 ` [PATCH 04/25] libfuse: add fuse commands for iomap_begin and end Darrick J. Wong
2026-05-15 18:33 ` Darrick J. Wong
2026-04-29 14:40 ` [PATCH 05/25] libfuse: add upper level iomap commands Darrick J. Wong
2026-04-29 14:40 ` [PATCH 06/25] libfuse: add a lowlevel notification to add a new device to iomap Darrick J. Wong
2026-04-29 14:40 ` [PATCH 07/25] libfuse: add upper-level iomap add device function Darrick J. Wong
2026-04-29 14:41 ` [PATCH 08/25] libfuse: add iomap ioend low level handler Darrick J. Wong
2026-04-29 14:41 ` [PATCH 09/25] libfuse: add upper level iomap ioend commands Darrick J. Wong
2026-05-15 18:41 ` Darrick J. Wong
2026-04-29 14:41 ` [PATCH 10/25] libfuse: add a reply function to send FUSE_ATTR_* to the kernel Darrick J. Wong
2026-04-29 14:41 ` [PATCH 11/25] libfuse: connect high level fuse library to fuse_reply_attr_iflags Darrick J. Wong
2026-04-29 14:42 ` [PATCH 12/25] libfuse: support enabling exclusive mode for files Darrick J. Wong
2026-04-29 14:42 ` [PATCH 13/25] libfuse: support direct I/O through iomap Darrick J. Wong
2026-04-29 14:42 ` [PATCH 14/25] libfuse: don't allow hardlinking of iomap files in the upper level fuse library Darrick J. Wong
2026-04-29 14:42 ` [PATCH 15/25] libfuse: allow discovery of the kernel's iomap capabilities Darrick J. Wong
2026-04-29 14:43 ` [PATCH 16/25] libfuse: add lower level iomap_config implementation Darrick J. Wong
2026-05-15 18:55 ` Darrick J. Wong
2026-04-29 14:43 ` [PATCH 17/25] libfuse: add upper " Darrick J. Wong
2026-04-29 14:43 ` [PATCH 18/25] libfuse: add low level code to invalidate iomap block device ranges Darrick J. Wong
2026-04-29 14:44 ` [PATCH 19/25] libfuse: add upper-level API to invalidate parts of an iomap block device Darrick J. Wong
2026-04-29 14:44 ` [PATCH 20/25] libfuse: add atomic write support Darrick J. Wong
2026-04-29 14:44 ` [PATCH 21/25] libfuse: allow disabling of fs memory reclaim and write throttling Darrick J. Wong
2026-04-29 14:44 ` [PATCH 22/25] libfuse: create a helper to transform an open regular file into an open loopdev Darrick J. Wong
2026-05-15 19:02 ` Darrick J. Wong
2026-04-29 14:45 ` [PATCH 23/25] libfuse: add swapfile support for iomap files Darrick J. Wong
2026-04-29 14:45 ` [PATCH 24/25] libfuse: add lower-level filesystem freeze, thaw, and shutdown requests Darrick J. Wong
2026-04-29 14:45 ` [PATCH 25/25] libfuse: add upper-level filesystem freeze, thaw, and shutdown events Darrick J. Wong
2026-04-29 14:19 ` [PATCHSET v8 2/6] libfuse: allow servers to specify root node id Darrick J. Wong
2026-04-29 14:45 ` [PATCH 1/1] libfuse: allow root_nodeid mount option Darrick J. Wong
2026-04-29 14:19 ` [PATCHSET v8 3/6] libfuse: implement syncfs Darrick J. Wong
2026-04-29 14:46 ` [PATCH 1/2] libfuse: add strictatime/lazytime mount options Darrick J. Wong
2026-04-29 14:46 ` [PATCH 2/2] libfuse: set sync, immutable, and append when loading files Darrick J. Wong
2026-04-29 14:19 ` [PATCHSET v8 4/6] libfuse: add some service helper commands for iomap Darrick J. Wong
2026-04-29 14:46 ` [PATCH 1/3] mount_service: delegate iomap privilege from mount.service to fuse services Darrick J. Wong
2026-04-29 14:46 ` [PATCH 2/3] libfuse: enable setting iomap block device block size Darrick J. Wong
2026-04-29 14:47 ` [PATCH 3/3] mount_service: create loop devices for regular files Darrick J. Wong
2026-04-29 14:19 ` [PATCHSET v8 5/6] fuse: add sample iomap fuse servers Darrick J. Wong
2026-04-29 14:47 ` [PATCH 1/7] example/iomap_ll: create a simple iomap server Darrick J. Wong
2026-04-29 14:47 ` [PATCH 2/7] example/iomap_ll: track block state Darrick J. Wong
2026-04-29 14:47 ` [PATCH 3/7] example/iomap_ll: implement atomic writes Darrick J. Wong
2026-04-29 14:48 ` [PATCH 4/7] example/iomap_inline_ll: create a simple server to test inlinedata Darrick J. Wong
2026-04-29 14:48 ` [PATCH 5/7] example/iomap_ow_ll: create a simple iomap out of place write server Darrick J. Wong
2026-05-15 19:41 ` Darrick J. Wong [this message]
2026-04-29 14:48 ` [PATCH 6/7] example/iomap_ow_ll: implement atomic writes Darrick J. Wong
2026-04-29 14:48 ` [PATCH 7/7] example/iomap_service_ll: create a sample systemd service fuse server Darrick J. Wong
2026-04-29 14:20 ` [PATCHSET v8 6/6] libfuse: cache iomap mappings for even better file IO performance Darrick J. Wong
2026-04-29 14:49 ` [PATCH 1/9] libfuse: enable iomap cache management for lowlevel fuse Darrick J. Wong
2026-05-15 19:58 ` Darrick J. Wong
2026-04-29 14:49 ` [PATCH 2/9] libfuse: add upper-level iomap cache management Darrick J. Wong
2026-04-29 14:49 ` [PATCH 3/9] libfuse: allow constraining of iomap mapping cache size Darrick J. Wong
2026-04-29 14:50 ` [PATCH 4/9] libfuse: add upper-level iomap mapping cache constraint code Darrick J. Wong
2026-04-29 14:50 ` [PATCH 5/9] libfuse: enable iomap Darrick J. Wong
2026-04-29 14:50 ` [PATCH 6/9] example/iomap_ll: cache mappings for later Darrick J. Wong
2026-04-29 14:50 ` [PATCH 7/9] example/iomap_inline_ll: cache iomappings in the kernel Darrick J. Wong
2026-04-29 14:51 ` [PATCH 8/9] example/iomap_ow_ll: " Darrick J. Wong
2026-04-29 14:51 ` [PATCH 9/9] example/iomap_service_ll: " Darrick J. Wong
2026-04-29 14:20 ` [PATCHSET v8 1/6] libext2fs: refactoring for fuse2fs iomap support Darrick J. Wong
2026-04-29 14:51 ` [PATCH 1/5] libext2fs: invalidate cached blocks when freeing them Darrick J. Wong
2026-04-29 14:51 ` [PATCH 2/5] libext2fs: only flush affected blocks in unix_write_byte Darrick J. Wong
2026-04-29 14:52 ` [PATCH 3/5] libext2fs: allow unix_write_byte when the write would be aligned Darrick J. Wong
2026-04-29 14:52 ` [PATCH 4/5] libext2fs: allow clients to ask to write full superblocks Darrick J. Wong
2026-04-29 14:52 ` [PATCH 5/5] libext2fs: allow callers to disallow I/O to file data blocks Darrick J. Wong
2026-04-29 14:20 ` [PATCHSET v8 2/6] fuse2fs: use fuse iomap data paths for better file I/O performance Darrick J. Wong
2026-04-29 14:52 ` [PATCH 01/19] fuse2fs: implement bare minimum iomap for file mapping reporting Darrick J. Wong
2026-04-29 14:53 ` [PATCH 02/19] fuse2fs: add iomap= mount option Darrick J. Wong
2026-04-29 14:53 ` [PATCH 03/19] fuse2fs: implement iomap configuration Darrick J. Wong
2026-04-29 14:53 ` [PATCH 04/19] fuse2fs: register block devices for use with iomap Darrick J. Wong
2026-04-29 14:53 ` [PATCH 05/19] fuse2fs: implement directio file reads Darrick J. Wong
2026-04-29 14:54 ` [PATCH 06/19] fuse2fs: add extent dump function for debugging Darrick J. Wong
2026-04-29 14:54 ` [PATCH 07/19] fuse2fs: implement direct write support Darrick J. Wong
2026-04-29 14:54 ` [PATCH 08/19] fuse2fs: turn on iomap for pagecache IO Darrick J. Wong
2026-04-29 14:54 ` [PATCH 09/19] fuse2fs: don't zero bytes in punch hole Darrick J. Wong
2026-04-29 14:55 ` [PATCH 10/19] fuse2fs: don't do file data block IO when iomap is enabled Darrick J. Wong
2026-04-29 14:55 ` [PATCH 11/19] fuse2fs: try to create loop device when ext4 device is a regular file Darrick J. Wong
2026-04-29 14:55 ` [PATCH 12/19] fuse2fs: enable file IO to inline data files Darrick J. Wong
2026-04-29 14:56 ` [PATCH 13/19] fuse2fs: set iomap-related inode flags Darrick J. Wong
2026-04-29 14:56 ` [PATCH 14/19] fuse2fs: configure block device block size Darrick J. Wong
2026-04-29 14:56 ` [PATCH 15/19] fuse4fs: separate invalidation Darrick J. Wong
2026-04-29 14:56 ` [PATCH 16/19] fuse2fs: implement statx Darrick J. Wong
2026-04-29 14:57 ` [PATCH 17/19] fuse2fs: enable atomic writes Darrick J. Wong
2026-04-29 14:57 ` [PATCH 18/19] fuse4fs: disable fs reclaim and write throttling Darrick J. Wong
2026-04-29 14:57 ` [PATCH 19/19] fuse2fs: implement freeze and shutdown requests Darrick J. Wong
2026-04-29 14:20 ` [PATCHSET v8 3/6] fuse4fs: adapt iomap for fuse services Darrick J. Wong
2026-04-29 14:57 ` [PATCH 1/3] fuse4fs: configure iomap when running as a service Darrick J. Wong
2026-04-29 14:58 ` [PATCH 2/3] fuse4fs: set iomap backing device blocksize Darrick J. Wong
2026-04-29 14:58 ` [PATCH 3/3] fuse4fs: ask for loop devices when opening via fuservicemount Darrick J. Wong
2026-04-29 14:21 ` [PATCHSET v8 4/6] fuse4fs: specify the root node id Darrick J. Wong
2026-04-29 14:58 ` [PATCH 1/1] fuse4fs: don't use inode number translation when possible Darrick J. Wong
2026-04-29 14:21 ` [PATCHSET v8 5/6] fuse2fs: handle timestamps and ACLs correctly when iomap is enabled Darrick J. Wong
2026-04-29 14:58 ` [PATCH 01/10] fuse2fs: add strictatime/lazytime mount options Darrick J. Wong
2026-04-29 14:59 ` [PATCH 02/10] fuse2fs: skip permission checking on utimens when iomap is enabled Darrick J. Wong
2026-04-29 14:59 ` [PATCH 03/10] fuse2fs: let the kernel tell us about acl/mode updates Darrick J. Wong
2026-04-29 14:59 ` [PATCH 04/10] fuse2fs: better debugging for file mode updates Darrick J. Wong
2026-04-29 14:59 ` [PATCH 05/10] fuse2fs: debug timestamp updates Darrick J. Wong
2026-04-29 15:00 ` [PATCH 06/10] fuse2fs: use coarse timestamps for iomap mode Darrick J. Wong
2026-04-29 15:00 ` [PATCH 07/10] fuse2fs: add tracing for retrieving timestamps Darrick J. Wong
2026-04-29 15:00 ` [PATCH 08/10] fuse2fs: enable syncfs Darrick J. Wong
2026-04-29 15:00 ` [PATCH 09/10] fuse2fs: set sync, immutable, and append at file load time Darrick J. Wong
2026-04-29 15:01 ` [PATCH 10/10] fuse4fs: increase attribute timeout in iomap mode Darrick J. Wong
2026-04-29 14:21 ` [PATCHSET v8 6/6] fuse2fs: cache iomap mappings for even better file IO performance Darrick J. Wong
2026-04-29 15:01 ` [PATCH 1/4] fuse2fs: enable caching of iomaps Darrick J. Wong
2026-04-29 15:01 ` [PATCH 2/4] fuse2fs: constrain iomap mapping cache size Darrick J. Wong
2026-04-29 15:02 ` [PATCH 3/4] fuse4fs: upsert first file mapping to kernel on open Darrick J. Wong
2026-04-29 15:02 ` [PATCH 4/4] fuse2fs: enable iomap Darrick J. Wong
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=20260515194122.GY9544@frogsfrogsfrogs \
--to=djwong@kernel.org \
--cc=bernd@bsbernd.com \
--cc=fuse-devel@lists.linux.dev \
--cc=joannelkoong@gmail.com \
--cc=john@groves.net \
--cc=linux-fsdevel@vger.kernel.org \
--cc=miklos@szeredi.hu \
--cc=neal@gompa.dev \
/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.