Commit Graph

37 Commits

Author SHA1 Message Date
12ae127e0b ioctl & subvolume: Handle BTRFS_ROOT_SUBVOL_RDONLY as well for searches 2024-10-02 17:26:54 +03:00
Riccardo Ferrazzo
0167142bde fix fs type detection on 32 bit platforms 2024-04-18 17:23:41 +03:00
Marcus Cobden
a1f570bd01 Allow non-root users to query btrfs volumes 2023-03-12 23:18:31 +02:00
Marcus Cobden
3097362dc0 Fix device stats not requested 2022-10-26 19:11:08 +03:00
Marcus Cobden
b3db0b2ded
Add GetDevInfo exposing BTRFS_IOC_DEV_INFO (#3)
* Add GetDevInfo exposing BTRFS_IOC_DEV_INFO

Co-authored-by: Marcus Cobden <leth@users.noreply.github.com>
2022-04-03 08:03:56 +00:00
Denys Smirnov
90a0320aae
Switch license to Apache 2 to be CNCF-friendly. 2021-06-29 19:57:49 +00:00
Akihiro Suda
ee67271a4c Fix "constant 2435016766 overflows int32" on GOARCH=arm
Fix #1

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2021-06-25 08:32:39 +00:00
Denys Smirnov
d917b30ff0 do not expose unexported objectid type to the user 2019-05-17 20:57:02 +03:00
Denys Smirnov
a46fd0364e cli: fix the package name 2019-05-17 20:56:02 +03:00
Denys Smirnov
e24c76dba4 expose method to get the subvolume id 2019-05-17 20:53:32 +03:00
Denys Smirnov
ae959341a5 support go modules 2019-04-26 17:22:05 +03:00
Denys Smirnov
694b569856 switch to dennwc/ioctl library 2018-10-21 21:02:44 +03:00
Denys Smirnov
75c27127c2 send: implement stream reader 2017-11-27 20:43:55 +02:00
Denys Smirnov
cdc1bf5c04 refactor send definitions 2017-11-13 14:31:53 +02:00
Denys Smirnov
3db12b2294 expose resize 2017-01-11 18:53:23 +02:00
Denys Smirnov
532eaaa4b7 send: recursive best parent search 2017-01-10 16:30:47 +02:00
Denys Smirnov
cf180d91dc send: fix diff int overflow 2017-01-09 17:53:50 +02:00
Denys Smirnov
00defaf3f2 expose subvolume search functions; switch subvolume info structure 2017-01-09 17:03:55 +02:00
Denys Smirnov
51976cacd4 expose balance ioc 2017-01-09 15:31:52 +02:00
Denys Smirnov
3b69894215 implement send for multiple snapshots 2017-01-08 16:13:47 +02:00
Denys Smirnov
54573d1c9d decode root_item; more tests; uuid search wip 2017-01-07 22:55:54 +02:00
Denys Smirnov
08f5a6b26a expose file clone ioctl; add test 2017-01-06 14:02:41 +02:00
Denys Smirnov
4ac498bb4d fix subvolume list 2016-10-20 21:11:39 +03:00
Denys Smirnov
94acb6ee4a add helper to check for zero uuid 2016-10-17 17:12:29 +03:00
Denys Smirnov
6f59d604fc implement usage stats 2016-10-06 14:26:05 +03:00
Denys Smirnov
3343324613 implement GetCompression; add tests 2016-10-05 16:45:57 +03:00
Denys Smirnov
b56d643295 some docs 2016-10-05 16:45:00 +03:00
Denys Smirnov
14de038f2f expose GetMounts as a sub-package 2016-10-05 14:21:14 +03:00
Denys Smirnov
8f48d3ebf5 refactor ListSubvolumes 2016-10-01 15:10:12 +03:00
Denys Smirnov
7eae92f571 fix fd leak 2016-10-01 14:44:34 +03:00
Denys Smirnov
41809caf7d SetFlags and SetCompression 2016-09-21 18:34:04 +03:00
Denys Smirnov
43632657e8 native Recv WIP 2016-09-21 15:31:08 +03:00
Denys Smirnov
6a4b966441 native Send implementation 2016-09-19 20:01:22 +03:00
Denys Smirnov
f03fa748e7 implement subvolumes list; regenerate headers; generate btrfs_tree.h 2016-09-16 20:09:14 +03:00
Denys Smirnov
b300237e77 Implement basic subvolume and snapshot commands. Exec-based send and receive.
* better code generator

* regenerate btrfs_tree.h constants

* implement subvolume create, delete and snapshot create commands

* exec-based snapshot send and receive
2016-09-15 20:39:46 +03:00
Denys Smirnov
2d0abe4795 Initial version. WIP. 2016-09-14 20:29:46 +03:00
Denys Smirnov
a88feaf631 Initial commit 2016-09-14 18:13:47 +03:00