85 Commits

Author SHA1 Message Date
Ben McClelland 70f8b6bdfa Merge pull request #12 from versity/ben/punch-hole
add PunchHole() to convert offline range to sparse
2026-04-13 17:08:39 -07:00
Ben McClelland 0ec206ad67 add PunchHole() to convert offline range to sparse
PunchHole is a limited and specific version of hole punching.  It's an
archive layer operation that only converts unmapped offline extents
into sparse extents.  It is intended to be used when restoring sparse
files after the initial creation set the entire file size offline.

The offset and len fields are in units of bytes and must be aligned
to the small (4KiB) block size.  All regions of offline extents
covered by the region will be converted into sparse online extents,
including regions that straddle the boundaries of the region.  Any
existing sparse extents in the region are ignored.

The data_version must match the inode or EINVAL is returned.  The
data_version is not modified by this operation.
2026-04-13 17:07:31 -07:00
Ben McClelland 95fd765b76 Merge pull request #11 from versity/ben/index_entry
fix index key to new uint8 size
2024-06-25 15:18:33 -07:00
Ben McClelland 76a7e1175a fix index key to new uint8 size 2024-06-25 15:13:45 -07:00
Ben McClelland 1253270250 Merge pull request #10 from versity/ben/retention
add inode_attr_x interface for retention and projectid
2024-06-23 09:36:14 -07:00
Ben McClelland c2e96b492d add inode_attr_x interface for retention and projectid 2024-06-23 09:35:09 -07:00
Ben McClelland 3c0a420788 Merge pull request #9 from versity/ben/xattr_index
add xattr index query interfaces
2024-06-14 15:47:17 -07:00
Ben McClelland 0fc6aac397 add xattr index query interfaces 2024-06-14 15:46:25 -07:00
Ben McClelland 38eb2f5f7d Merge pull request #8 from versity/ben/quota_string
add StringNoLimit to quota rule
2024-03-25 15:31:34 -07:00
Ben McClelland e1b096734d add StringNoLimit to quota rule
The StringNoLimit() prints all quota rul attributes except the limit
allowing the caller to post process the limit and print their own
version.
2024-03-25 15:29:55 -07:00
Ben McClelland 7c2a3149ce Merge pull request #7 from versity/ben/quota_format
fix quota string format alignment
2024-03-14 08:54:06 -07:00
Ben McClelland 6a751f2f86 fix quota string format alignment 2024-03-14 08:53:29 -07:00
Ben McClelland 629e93bbcf Merge pull request #6 from versity/ben/quota_format
add format cleanup for rule printing
2024-03-04 10:31:17 -08:00
Ben McClelland 8fe8b17408 add format cleanup for rule printing 2024-03-04 10:30:02 -08:00
Ben McClelland e895083b81 fix missing flags when retrieving quota rules 2024-02-13 15:52:03 -08:00
Ben McClelland bd545cc828 Merge pull request #5 from versity/ben/quota
add new quota interface calls
2024-02-05 11:21:38 -08:00
Ben McClelland cbeff6d5f9 add new quota interface calls 2024-02-05 11:19:56 -08:00
Ben McClelland 0bb26b6971 Merge pull request #3 from versity/ben/get-referring-entries
fix dirent struct size in parseDent
2023-09-11 16:37:35 -07:00
Ben McClelland 5175c57fa4 fix dirent struct size in parseDent 2023-09-11 16:36:51 -07:00
Ben McClelland 98bb17d4df Merge pull request #2 from versity/ben/get-referring-entries
add support for get-referring-entries
2023-08-28 14:35:21 -07:00
Ben McClelland f019a234ab add support for get-referring-entries
scoutfs now adds a new ioctl to get the parent id and some extra
info given an inode within the filesystem. This is less expensive
than the full path resolution for an inode, so can speed up cases
when the parent is all thats needed.
2023-08-28 13:59:13 -07:00
Ben McClelland 0474b14343 Merge pull request #1 from versity/ben/fix_times
SetAttrMore: fix nsec time from UnixNano() to the correct Nanosecond()
2023-06-06 16:27:54 -07:00
Ben McClelland 680bc1e793 SetAttrMore: fix nsec time from UnixNano() to the correct Nanosecond() 2023-06-06 16:27:10 -07:00
Ben McClelland ded343dffd fix incorrect size block alignment for release 2022-12-15 10:21:35 -08:00
Ben McClelland 4eb0ad8d2b add String to InodesEntry 2022-10-24 20:39:31 -07:00
Ben McClelland 49f2a3597b add Increment to InodesEntry 2022-10-24 20:36:06 -07:00
Ben McClelland 5a348c37eb query: add ability to update last entry 2022-04-26 10:09:02 -07:00
Ben McClelland 5512e10b57 add release blocks 2022-02-28 21:29:00 -08:00
Ben McClelland 7ad9abbb27 scoutfs: update ioctl/struct defs for scoutfs v1 format 2021-11-03 19:32:02 -07:00
Ben McClelland 7603944156 totl: fix read of undefined totl id 2021-10-15 14:55:21 -07:00
Ben McClelland 777740e7e1 add query totals by group 2021-10-04 13:09:09 -07:00
Ben McClelland 0cca7e27f0 totl: use zero value for no matching xattrs 2021-09-15 21:01:26 -07:00
Ben McClelland 98a3a2a304 add read xattr totals 2021-09-15 18:59:15 -07:00
Ben McClelland bbcd7e330f update statmore and setattermore for crtime 2021-09-14 09:29:49 -07:00
Ben McClelland 9647f2c881 add StageMoveAt for sparse staging 2021-09-01 10:54:40 -07:00
Ben McClelland e890a706e8 update scoutfsdefs for scoutfs commit 53f11f547972343bcf329e50dbef082abac1500a 2021-07-08 15:00:20 -07:00
Ben McClelland 3e6a5807e2 update moveblocks and add stagemove to allow staging from tmpfiles 2021-04-12 18:20:20 -07:00
Ben McClelland 19e8fa0681 update for latest sysfs quorm info 2021-03-02 16:48:55 -07:00
Ben McClelland 2093b4721d add go module 2021-03-02 16:48:32 -07:00
Ben McClelland fb70bf1304 scoutfs: release size based on file size 2021-01-26 14:15:06 -07:00
Ben McClelland 469f6a5b7c scoutfs: update release/stage for new ioctl structs 2021-01-26 13:46:28 -07:00
Ben McClelland c19fddb618 add scoutfs move_blocks 2021-01-15 11:53:40 -07:00
Ben McClelland bd2ba82da4 scoutfs df: fix typo 2020-10-28 14:13:59 -07:00
Ben McClelland f1ca1aee0a add scoutfs df 2020-10-28 13:59:01 -07:00
Ben McClelland b07e33f98a new statfs more struct version 2020-10-21 18:26:18 -07:00
Ben McClelland cbd4717308 fix search query needing last ino 2020-08-26 15:30:24 -07:00
Ben McClelland 9980caea5d update for changes in new scoutfs search xattrs 2020-08-25 14:40:15 -07:00
Ben McClelland 2d1dcd50b4 exmples: fix listxattr example for buf reuse change 2020-08-25 09:43:23 -07:00
Ben McClelland ce557256f7 fix data waiters example for single pass 2020-06-09 14:31:02 -07:00
Ben McClelland 25da776633 SendDataWaitErr: send errors to task data waiters 2020-06-09 14:27:11 -07:00