Displaying 4 results from an estimated 4 matches for "blkpbszget".
2020 Feb 10
2
Re: [RFC] lib: allow to specify physical/logical block size for disks
...ed. I think we need to ask an expert
> or look at the qemu / kernel code to find out exactly what
> each setting really does.
Here are what they do stand for:
physical_block_size: The physical block size the disk will report to
the guest OS. For Linux this would be the value returned by the
BLKPBSZGET ioctl and describes the disk's hardware sector size which
can be relevant for the alignment of disk data. We don't have an API
to get this one.
logical_block_size: The logical block size the disk will report to the
guest OS. For Linux this would be the value returned by the BLKSSZGET
ioctl...
2020 Feb 10
0
Re: [RFC] lib: allow to specify physical/logical block size for disks
On Mon, Feb 10, 2020 at 02:22:01PM +0200, Nikolay Ivanets wrote:
> Here are what they do stand for:
> physical_block_size: The physical block size the disk will report to
> the guest OS. For Linux this would be the value returned by the
> BLKPBSZGET ioctl and describes the disk's hardware sector size which
> can be relevant for the alignment of disk data. We don't have an API
> to get this one.
>
> logical_block_size: The logical block size the disk will report to the
> guest OS. For Linux this would be the value return...
2020 Feb 10
1
[PATCH] lib: allow to specify physical/logical block size for disks
...9,28 @@ of the same area of disk.
The default is false.
+=item C<blocksize>
+
+The integer parameter C<blocksize> allows specifying both physical and logical
+block size the disk will report to the libguestfs appliance.
+
+Physical block size would be the value returned by the C<BLKPBSZGET> ioctl and
+describes the disk's hardware sector size which can be relevant for the
+alignment of disk data.
+
+Logical block size would be the value returned by the C<BLKSSZGET> ioctl and
+describes the smallest units for disk I/O. (C<guestfs_blockdev_getss> API call
+will retu...
2020 Feb 07
8
[RFC] lib: allow to specify physical/logical block size for disks
From: Nikolay Ivanets <stenavin@gmail.com>
I faced with situation where libguestfs cannot recognize partitions on a
disk image which was partitioned on a system with "4K native" sector
size support.
In order to fix the issue we need to allow users to specify desired
physical and/or logical block size per drive basis.
It is definitely not a complete patch but rather a way to