diff options
| author | Qu Wenruo <[email protected]> | 2024-12-18 06:30:56 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2024-12-23 21:06:44 +0000 |
| commit | fca432e73db2bec0fdbfbf6d98d3ebcd5388a977 (patch) | |
| tree | c14e6802b1a4dc6a553a3bb19cbd187c209e9859 /tools/net/ynl/pyynl/cli.py | |
| parent | btrfs: fix transaction atomicity bug when enabling simple quotas (diff) | |
| download | kernel-fca432e73db2bec0fdbfbf6d98d3ebcd5388a977.tar.gz kernel-fca432e73db2bec0fdbfbf6d98d3ebcd5388a977.zip | |
btrfs: sysfs: fix direct super block member reads
The following sysfs entries are reading super block member directly,
which can have a different endian and cause wrong values:
- sys/fs/btrfs/<uuid>/nodesize
- sys/fs/btrfs/<uuid>/sectorsize
- sys/fs/btrfs/<uuid>/clone_alignment
Thankfully those values (nodesize and sectorsize) are always aligned
inside the btrfs_super_block, so it won't trigger unaligned read errors,
just endian problems.
Fix them by using the native cached members instead.
Fixes: df93589a1737 ("btrfs: export more from FS_INFO to sysfs")
CC: [email protected]
Reviewed-by: Naohiro Aota <[email protected]>
Reviewed-by: Johannes Thumshirn <[email protected]>
Signed-off-by: Qu Wenruo <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/net/ynl/pyynl/cli.py')
0 files changed, 0 insertions, 0 deletions
