~kilobyte/btrfs-progs

Btrfs progs v6.6.3

Signed-off-by: David Sterba <dsterba@suse.com>
d11bd4cb — David Sterba 1 year, 30 days ago
btrfs-progs: update CHANGES for 6.6.3

Signed-off-by: David Sterba <dsterba@suse.com>
eaa54973 — David Sterba 1 year, 1 month ago
btrfs-progs: scrub limit: add option to apply the limit to all devices

Signed-off-by: David Sterba <dsterba@suse.com>
30d1a2d3 — David Sterba 1 year, 1 month ago
btrfs-progs: scrub limit: allow to set the limit

Add new options to set the per-device limit (requires root privileges as
it writes to the sysfs files).

Signed-off-by: David Sterba <dsterba@suse.com>
87dba20d — David Sterba 1 year, 1 month ago
btrfs-progs: change all sysfs helpers to return errno

To be consistent with the rest of the code the sysfs helper should
return the -errno instead of passing -1 from various syscalls. Update
callers that relied on -1 as the invalid file descriptor.

Signed-off-by: David Sterba <dsterba@suse.com>
4576029d — David Sterba 1 year, 1 month ago
btrfs-progs: add write helpers for sysfs files

Add convenience wrappers for writing a buffer or u64 to toplevel or FSID
file in sysfs.

Signed-off-by: David Sterba <dsterba@suse.com>
b3b38751 — David Disseldorp 1 year, 1 month ago
btrfs-progs: scrub status: improve Rate reporting for sub-second durations

Scrubs which complete in under one second may carry a duration rounded
down to zero. This subsequently results in a bytes_per_sec value of
zero, which corresponds to the Rate metric output, causing intermittent
tests/btrfs/282 failures.

This change ensures that Rate reflects any sub-second bytes processed.
Time left and ETA metrics are also affected by this change, in that they
increase to account for (sub-second) bytes_per_sec.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Disseldorp <ddiss@suse.de>
Signed-off-by: David Sterba <dsterba@suse.com>
7f869161 — David Sterba 1 year, 1 month ago
btrfs-progs: docs: update scrub io limiting

[ci skip]

Issue: #402
Signed-off-by: David Sterba <dsterba@suse.com>
9a044fa0 — David Sterba 1 year, 1 month ago
btrfs-progs: scrub start: print device limit if set

Print one message per scrubbed device and also print the limit if set:

  $ btrfs scrub start /mnt
  scrub started on /mnt, fsid 9ee93131-f680-4d6c-8ca4-a194506e3081 (pid=27257)
  Starting scrub on devid 1 (limit 100.00MiB/s)

Signed-off-by: David Sterba <dsterba@suse.com>
6e96df64 — David Sterba 1 year, 1 month ago
btrfs-progs: tests: add case for scrub limit

Signed-off-by: David Sterba <dsterba@suse.com>
fbf21145 — David Sterba 1 year, 1 month ago
btrfs-progs: srcub: new subcommand limit

Add new command to read the scrub limits set via the sysfs file (no root
access needed).

Example output:

  $ btrfs scrub limit /mnt
  UUID: 57a05502-9e81-4b21-ad9d-0fc31863ed11
  Id  Limit            Path
  --  -----  --------------
   1      -  /dev/nvme0n1p1
   2      -  /dev/nvme0n1p2
   3      -  /dev/nvme0n1p3
   4      -  /dev/nvme2n1p4
   5      -  /dev/nvme0n1p5
   6      -  /dev/nvme0n1p6

Signed-off-by: David Sterba <dsterba@suse.com>
deffef9c — David Sterba 1 year, 1 month ago
btrfs-progs: README: add compatibility

[ci skip]

Signed-off-by: David Sterba <dsterba@suse.com>
b5909e62 — David Sterba 1 year, 1 month ago
btrfs-progs: use statvfs() in print_filesystem_usage_overall

The statfs(2) syscall is deprecated by LSB in favor of statvfs(2),
however we can't replace all uses because we still need the
statfs::f_type to determine the filesystem by magic numer.

Signed-off-by: David Sterba <dsterba@suse.com>
71ad6f2f — David Sterba 1 year, 1 month ago
btrfs-progs: subvol sync: check if the filesystem is writable

The subvolume cleaning is done by polling but it's possible that the
filesystem turns to read-only (as reported), either due to an error
intentionally. In that case the waiting would be indefinite without an
obvious reason.

To fix that check if the filesystem is still writable in each iteration.

Issue: #535
Link: https://github.com/btrfs/fstests/issues/40
Signed-off-by: David Sterba <dsterba@suse.com>
7e4a235d — David Sterba 1 year, 1 month ago
btrfs-progs: scrub status: print device speed limit in status if set

When there's a speed limit set for a device via
/sysfs/fs/btrfs/FSID/devinfo/scrub_speed_max, show it in the scrub status
output like below:

  $ btrfs scrub status -d /mnt
  ...
  Rate:              47.98MiB/s (limit 60MiB/s)
  ...

If the limit is 0 this means unlimited and is not printed.

For a single device filesystem the limit is printed even without '-d' as
it's clear which device limit applies. For multi-device filesysetms,
without any limits nothing is printed, if there at least one device
limit set then the following is printed:

  Rate:             36.37MiB/s (some device limits set)

More details with the -d option.

Issue: #531
Signed-off-by: David Sterba <dsterba@suse.com>
f8711016 — David Sterba 1 year, 1 month ago
btrfs-progs: receive: properly report lack of zstd support

If zstd is not compiled in then a stream fails with a generic error
message:

ERROR: unknown compression: 2

Where BTRFS_ENCODED_IO_COMPRESSION_ZSTD is 2 and there's a case for that
but behind the '#if COMPRESSION_ZSTD'.

Signed-off-by: David Sterba <dsterba@suse.com>
9aafb384 — David Sterba 1 year, 1 month ago
btrfs-progs: docs: cross references, ioctl updates

[ci skip]

Signed-off-by: David Sterba <dsterba@suse.com>
478a295b — David Sterba 1 year, 1 month ago
btrfs-progs: docs: document label ioctls

[ci skip]

Signed-off-by: David Sterba <dsterba@suse.com>
f9ebee68 — David Sterba 1 year, 1 month ago
btrfs-progs: ci: install RTD sphinx theme for devel workflow

With the recent updates to documentation build the theme must be now
installed as a package. Disable building documentation in all workflows
that do functional tests.

Signed-off-by: David Sterba <dsterba@suse.com>
c1ce48ed — David Sterba 1 year, 1 month ago
btrfs-progs: docs: document device add and remove ioctls

[ci skip]

Signed-off-by: David Sterba <dsterba@suse.com>
Next