Qcow2 fsck reminder / tip

This is a tip / reminder on how to fsck a qcow2:

# modprobe nbd max_part=8
# qemu-nbd --connect=/dev/nbd0 image.qcow2
# fdisk -l /dev/nbd0
Disk /dev/nbd0: 20 GiB, 21474836480 bytes, 41943040 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x55269efa

Device      Boot Start      End  Sectors Size Id Type
/dev/nbd0p1 *     2048 41940735 41938688  20G 83 Linux
# fsck.ext4 -f /dev/nbd0p1 
e2fsck 1.46.2 (28-Feb-2021)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/nbd0p1: 151949/1310720 files (0.2% non-contiguous), 2491304/5242336 blocks
# qemu-nbd --disconnect /dev/nbd0