[PATCH 0/4] Add FSLASTBLOCK tag and blkid with btrfs test

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



As discussed in [1] it would be useful to have FSLASTBLOCK tag
(size of the area occupied by filesystem). These few patches:
- add interface to set FSLASTBLOCK
- implement FSLASTBLOCK for ext2/3/4/jbd, xfs and btrfs
- add BTRFS image for blkid test
- update expected output for blkid tests to check FSLASTBLOCK

The BTRFS image is default 'mkfs.btrfs btrfs.img' (115M in size;
looks to be minimum required size)

[1]: https://bugzilla.redhat.com/show_bug.cgi?id=2064810

Andrey Albershteyn (4):
  libblkid: add FSLASTBLOCK field interface showing area occupied by fs
  libblkid: add FSLASTBLOCK implementation for xfs, ext and btrfs
  blkid: add image for btrfs testing
  blkid: add tests for FSLASTBLOCK tag

 libblkid/samples/superblocks.c         |   3 ++-
 libblkid/src/blkid.h.in                |  23 ++++++++++++-----------
 libblkid/src/superblocks/btrfs.c       |   5 +++++
 libblkid/src/superblocks/ext.c         |   5 +++++
 libblkid/src/superblocks/superblocks.c |  13 +++++++++++++
 libblkid/src/superblocks/superblocks.h |   1 +
 libblkid/src/superblocks/xfs.c         |   1 +
 misc-utils/blkid.c                     |   2 +-
 tests/expected/blkid/low-probe-btrfs   |   8 ++++++++
 tests/expected/blkid/low-probe-ext2    |   1 +
 tests/expected/blkid/low-probe-ext3    |   1 +
 tests/expected/blkid/low-probe-jbd     |   1 +
 tests/expected/blkid/low-probe-xfs     |   1 +
 tests/expected/blkid/low-probe-xfs-v5  |   1 +
 tests/ts/blkid/images-fs/btrfs.img     | Bin 0 -> 120586240 bytes
 15 files changed, 53 insertions(+), 13 deletions(-)
 create mode 100644 tests/expected/blkid/low-probe-btrfs
 create mode 100644 tests/ts/blkid/images-fs/btrfs.img

-- 
2.27.0




[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux