diff options
| author | Miklos Szeredi <mszeredi@redhat.com> | 2026-09-21 13:12:23 +0200 |
|---|---|---|
| committer | Miklos Szeredi <mszeredi@redhat.com> | 2026-10-19 14:56:24 +0200 |
| commit | dfc68b6c99f094e06f720b57cf4ee3d0ae5dbe8f (patch) | |
| tree | ec94e94d3b83417611bd9a3b7ae03f61c61f0b4d /include/uapi/linux | |
| parent | e8bc74b6ed1b107f67ee7c362e9f6c1b035e2fe9 (diff) | |
| download | linux-next-dfc68b6c99f094e06f720b57cf4ee3d0ae5dbe8f.tar.gz linux-next-dfc68b6c99f094e06f720b57cf4ee3d0ae5dbe8f.zip | |
fuse: add support for striped backing
Add the FUSE_BACKING_MAP_CYCLIC flag for FUSE_NOTIFY_BACKING_MAP
notifications to enable creating striped maps.
This is just a set of regular extents that repeats after the end of the
last extent using a striping pattern (i.e. on the target backings the
stripes have a contiguous footprint).
Two additional limits apply compared to non-cyclic extent map population:
- the size of the extents (chunk size) must be equal
- the extents must start from zero offset and follow each other without
gaps.
Originally-by: John Groves <john@groves.net>
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'include/uapi/linux')
| -rw-r--r-- | include/uapi/linux/fuse.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/uapi/linux/fuse.h b/include/uapi/linux/fuse.h index 43a92d834cd3..616430a2973c 100644 --- a/include/uapi/linux/fuse.h +++ b/include/uapi/linux/fuse.h @@ -255,7 +255,8 @@ * - add FUSE_DEV_IOC_BACKING_CREATE, struct fuse_backing_create_in * - add FUSE_NOTIFY_BACKING_REMOVE, struct fuse_notify_backing_remove_out * - add backing_id_64 to fuse_open_out - * - add FUSE_NOTIFY_BACKING_MAP, fuse_notify_backing_map_out, fuse_extent, FUSE_BACKING_MAP_CREATE + * - add FUSE_NOTIFY_BACKING_MAP, fuse_notify_backing_map_out, fuse_extent + * - add FUSE_BACKING_MAP_CREATE, FUSE_BACKING_MAP_CYCLIC */ #ifndef _LINUX_FUSE_H @@ -1219,8 +1220,10 @@ struct fuse_notify_backing_remove_out { * notify_map flags * * FUSE_BACKING_MAP_CREATE: create backing with the supplied ID + * FUSE_BACKING_MAP_CYCLIC: map repeats after last extent */ #define FUSE_BACKING_MAP_CREATE (1 << 0) +#define FUSE_BACKING_MAP_CYCLIC (1 << 1) struct fuse_notify_backing_map_out { uint64_t backing_id; |
