diff options
author | Matteo Croce <mcroce@microsoft.com> | 2021-07-13 01:05:28 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-08-02 21:37:28 +0200 |
commit | 13927b31b13f3c6556221eff3487247bd3c7a245 (patch) | |
tree | 41e7a6dd8a1acd054f7edfea42b451c2a279568e /block/disk-events.c | |
parent | block: add ioctl to read the disk sequence number (diff) | |
download | linux-13927b31b13f3c6556221eff3487247bd3c7a245.tar.xz linux-13927b31b13f3c6556221eff3487247bd3c7a245.zip |
block: export diskseq in sysfs
Add a new sysfs handle to export the new diskseq value.
Place it in <sysfs>/block/<disk>/diskseq and document it.
$ grep . /sys/class/block/*/diskseq
/sys/class/block/loop0/diskseq:13
/sys/class/block/loop1/diskseq:14
/sys/class/block/loop2/diskseq:5
/sys/class/block/loop3/diskseq:6
/sys/class/block/ram0/diskseq:1
/sys/class/block/ram1/diskseq:2
/sys/class/block/vda/diskseq:7
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Matteo Croce <mcroce@microsoft.com>
Tested-by: Luca Boccassi <bluca@debian.org>
Link: https://lore.kernel.org/r/20210712230530.29323-5-mcroce@linux.microsoft.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/disk-events.c')
0 files changed, 0 insertions, 0 deletions