#45 add btrfs sysfs allocations, features, checksum to --btrfsinfo
Closed: Fixed 2 years ago by ankursinha. Opened 3 years ago by chrismurphy.

1
2
3
4
5
#!/bin/bash
FSUUID=`findmnt -n -o UUID $(stat -c '%m' "/")`
grep -R . /sys/fs/btrfs/"$FSUUID"/allocation/ | sed "s/^.*allocation//"
grep -R . /sys/fs/btrfs/"$FSUUID"/features/ | sed "s/^.*features//"
cat /sys/fs/btrfs/"$FSUUID"/checksum 

Seems to pass the smell test so far. Not urgent.


@ngompa @dcavalca @salimma
There have been a couple of out of space cases (already resolved) but it would be nice to get extra debugging at the moment it occurs because any delay/reboot/workaround will mask the problem. This is "nice to have" not urgent.

Metadata Update from @ankursinha:
- Issue assigned to ankursinha

3 years ago

Metadata Update from @ankursinha:
- Issue tagged with: P: Medium, S: Triaged, T: Enhancement

3 years ago

I've added the above mentioned commands. Could you folks please test this out? I'm not on btrfs myself yet:

https://pagure.io/fpaste/blob/feat/issue-45/f/fpaste

Metadata Update from @ankursinha:
- Issue tagged with: S: Review needed

3 years ago

I'll cut a release next week on Wednesday if it looks OK. (Some folks on IRC did test it out and I think it's OK, but I know very little about btrfs).

Cheers,

Tested locally, works for me.

Thanks very much. Merging, and I'll cut a release + updates before the end of the week.

Metadata Update from @ankursinha:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

2 years ago

Login to comment on this ticket.

Metadata