Displaying 4 results from an estimated 4 matches for "physical_".
Did you mean:
physical
2020 Feb 10
2
Re: [RFC] lib: allow to specify physical/logical block size for disks
...itioned on a system with "4K native" sector
> > size support.
>
> Do you have a small test case for this?
>
> > In order to fix the issue we need to allow users to specify desired
> > physical and/or logical block size per drive basis.
>
> It seems like physical_block_size / logical_block_size in qemu are
> completely undocumented. However I did some experiments with patching
> libguestfs and examining the qemu and parted code. Here are my
> observations:
>
> (1) Setting only physical_block_size = 4096 seems to do nothing.
The guest sees...
2020 Feb 10
0
Re: [RFC] lib: allow to specify physical/logical block size for disks
...ive" sector
> > > size support.
> >
> > Do you have a small test case for this?
> >
> > > In order to fix the issue we need to allow users to specify desired
> > > physical and/or logical block size per drive basis.
> >
> > It seems like physical_block_size / logical_block_size in qemu are
> > completely undocumented. However I did some experiments with patching
> > libguestfs and examining the qemu and parted code. Here are my
> > observations:
> >
> > (1) Setting only physical_block_size = 4096 seems to do n...
2020 Feb 11
2
[PATCH v2] lib: add support for disks with 4096 bytes sector size
...(from guestfs_config). */
diff --git a/lib/launch-direct.c b/lib/launch-direct.c
index ae6ca093b..0f4bbf15f 100644
--- a/lib/launch-direct.c
+++ b/lib/launch-direct.c
@@ -273,6 +273,27 @@ add_drive_standard_params (guestfs_h *g, struct backend_direct_data *data,
return -1;
}
+/**
+ * Add the physical_block_size and logical_block_size elements of the C<-device>
+ * parameter.
+ */
+static int
+add_device_blocksize_params (guestfs_h *g, struct qemuopts *qopts,
+ struct drive *drv)
+{
+ if (drv->blocksize) {
+ append_list_format ("physical_block_size=%d&q...
2020 Feb 10
1
[PATCH] lib: allow to specify physical/logical block size for disks
...(from guestfs_config). */
diff --git a/lib/launch-direct.c b/lib/launch-direct.c
index ae6ca093b..0f4bbf15f 100644
--- a/lib/launch-direct.c
+++ b/lib/launch-direct.c
@@ -273,6 +273,27 @@ add_drive_standard_params (guestfs_h *g, struct backend_direct_data *data,
return -1;
}
+/**
+ * Add the physical_block_size and logical_block_size elements of the C<-device>
+ * parameter.
+ */
+static int
+add_device_blocksize_params (guestfs_h *g, struct qemuopts *qopts,
+ struct drive *drv)
+{
+ if (drv->blocksize) {
+ append_list_format ("physical_block_size=%d&q...