aboutsummaryrefslogtreecommitdiffstats
path: root/bcache-super-show.8
diff options
context:
space:
mode:
authorColy Li <colyli@suse.de>2023-02-17 21:08:10 +0800
committerColy Li <colyli@suse.de>2023-02-17 21:08:10 +0800
commita5e3753516bd39c431def86c8dfec8a9cea1ddd4 (patch)
treea6334f3a4ab3d17c7fdaee0f2d4d70a4c037c2ff /bcache-super-show.8
parent2499ff2dd78f236c7809016be5dfff836454396b (diff)
downloadbcache-tools-master.tar.gz
bcache-tools: improve is_zoned_device()HEADmaster
To check whether a block device is zoned or not, is_zoned_device() returns true when /sys/block/<device>/queue/chunk_sectors is not zero. Now there are devices which are not zoned devices but has non-zero chunk-sectors values. For such situation, the more accurate method is to read file /sys/block/<device>/queue/zoned. If the content is not string "none", this device is not a zoned device. Otherwise (e.g. "host-aware" or "host- managed"), it is a zoned device. For elder kernel if the above sysfs file doesn't exist, get_zone_size() is still called by is_zoned_device() for compatibility. Signed-off-by: Coly Li <colyli@suse.de>
Diffstat (limited to 'bcache-super-show.8')
0 files changed, 0 insertions, 0 deletions