Skip to contentSkip to conversation

device-parts: editorial: Fix metadata type name

PATCH In review Parav Pandit 3 participants 10 messages Sep 7, 2024 – Sep 11, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 device-parts: editorial: Fix metadata type name

The description is for the type VIRTIO_ADMIN_CMD_DEV_PARTS_METADATA_TYPE_LIST; however, it referred to a non-existent definition. Correct it.

Branch: virtio-1.4

Fixes aa4f6f069ab3 ("admin: Add admin commands for device parts")
---
 admin-cmds-device-parts.tex | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
admin-cmds-device-parts.tex +2 -2
index 27d8251..3a16692 100644
@@ -152,10 +152,10 @@ \subsubsection{Device parts}\label{sec:Basic Facilities of a Virtio Device / Dev
 device responds with \field{hdr_list_count.count}. The
 \field{hdr_list_count.count} indicates an count of
 \field{struct virtio_dev_part_hdr} metadata entries that the device can
-provide when the \field{type} is set to VIRTIO_ADMIN_CMD_DEV_PARTS_METADATA_TYPE_HDR
+provide when the \field{type} is set to VIRTIO_ADMIN_CMD_DEV_PARTS_METADATA_TYPE_LIST
 in a subsequent VIRTIO_ADMIN_CMD_DEV_PARTS_METADATA_GET command.
 
-When \field{type} is set to VIRTIO_ADMIN_CMD_DEV_PARTS_METADATA_TYPE_HDR,
+When \field{type} is set to VIRTIO_ADMIN_CMD_DEV_PARTS_METADATA_TYPE_LIST,
 the device responds with \field{hdr_list}. \field{hdr_list}
 indicates the device parts metadata.
 
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 31 lines · Parav Pandit

The description is for the type VIRTIO_ADMIN_CMD_DEV_PARTS_METADATA_TYPE_LIST; however, it referred to a non-existent definition. Correct it.

Branch: virtio-1.4

Fixes aa4f6f069ab3 ("admin: Add admin commands for device parts")
---
 admin-cmds-device-parts.tex | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
admin-cmds-device-parts.tex +2 -2
index 27d8251..3a16692 100644
@@ -152,10 +152,10 @@ \subsubsection{Device parts}\label{sec:Basic Facilities of a Virtio Device / Dev
 device responds with \field{hdr_list_count.count}. The
 \field{hdr_list_count.count} indicates an count of
 \field{struct virtio_dev_part_hdr} metadata entries that the device can
-provide when the \field{type} is set to VIRTIO_ADMIN_CMD_DEV_PARTS_METADATA_TYPE_HDR
+provide when the \field{type} is set to VIRTIO_ADMIN_CMD_DEV_PARTS_METADATA_TYPE_LIST
 in a subsequent VIRTIO_ADMIN_CMD_DEV_PARTS_METADATA_GET command.
 
-When \field{type} is set to VIRTIO_ADMIN_CMD_DEV_PARTS_METADATA_TYPE_HDR,
+When \field{type} is set to VIRTIO_ADMIN_CMD_DEV_PARTS_METADATA_TYPE_LIST,
 the device responds with \field{hdr_list}. \field{hdr_list}
 indicates the device parts metadata.
 
Signature · 1 line
2.34.1

In previous patches, I see the pattern \field{type} field. I wonder if you would like to do the same here for consistency but I do not have a strong opinion about this. Otherwise,

Thanks, Matias.

#2 lore raw
Quoted 39 lines

From: Matias Ezequiel Vara Larsen <[email protected]>
Sent: Monday, September 9, 2024 7:48 PM

Quoted 21 lines · Parav Pandit

The description is for the type VIRTIO_ADMIN_CMD_DEV_PARTS_METADATA_TYPE_LIST; however, it referred to a non-existent definition. Correct it.

Branch: virtio-1.4

Fixes aa4f6f069ab3 ("admin: Add admin commands for device parts")
---
 admin-cmds-device-parts.tex | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
admin-cmds-device-parts.tex +0 -0
index 27d8251..3a16692 100644
@@ -152,10 +152,10 @@ \subsubsection{Device parts}\label{sec:Basic

Facilities of a Virtio Device / Dev device responds with \field{hdr_list_count.count}. The \field{hdr_list_count.count} indicates an count of \field{struct virtio_dev_part_hdr} metadata entries that the device can -provide when the \field{type} is set to VIRTIO_ADMIN_CMD_DEV_PARTS_METADATA_TYPE_HDR

admin-cmds-device-parts.tex

Quoted 3 lines
admin-cmds-device-parts.tex +2 -0
+provide when the \field{type} is set to
+VIRTIO_ADMIN_CMD_DEV_PARTS_METADATA_TYPE_LIST
 in a subsequent VIRTIO_ADMIN_CMD_DEV_PARTS_METADATA_GET

command.

Quoted 8 lines

-When \field{type} is set to
VIRTIO_ADMIN_CMD_DEV_PARTS_METADATA_TYPE_HDR,

admin-cmds-device-parts.tex +2 -0
+When \field{type} is set to
+VIRTIO_ADMIN_CMD_DEV_PARTS_METADATA_TYPE_LIST,
 the device responds with \field{hdr_list}. \field{hdr_list}

indicates the device parts metadata.

Quoted 8 lines
Quoted 4 lines

--
2.34.1

In previous patches, I see the pattern \field{type} field. I wonder if you would like to do the same here for consistency but I do not have a strong opinion about this. Otherwise,

True, maybe I can remove 'field' word from some places in general language improvement separate patch. Will look.

Quoted 3 lines

Thanks, Matias.

Thanks.

#3 lore raw
Quoted 47 lines · Parav Pandit
Quoted 39 lines

From: Matias Ezequiel Vara Larsen <[email protected]>
Sent: Monday, September 9, 2024 7:48 PM

Quoted 21 lines · Parav Pandit

The description is for the type VIRTIO_ADMIN_CMD_DEV_PARTS_METADATA_TYPE_LIST; however, it referred to a non-existent definition. Correct it.

Branch: virtio-1.4

Fixes aa4f6f069ab3 ("admin: Add admin commands for device parts")
---
 admin-cmds-device-parts.tex | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
admin-cmds-device-parts.tex +0 -0
index 27d8251..3a16692 100644
@@ -152,10 +152,10 @@ \subsubsection{Device parts}\label{sec:Basic

Facilities of a Virtio Device / Dev device responds with \field{hdr_list_count.count}. The \field{hdr_list_count.count} indicates an count of \field{struct virtio_dev_part_hdr} metadata entries that the device can -provide when the \field{type} is set to VIRTIO_ADMIN_CMD_DEV_PARTS_METADATA_TYPE_HDR

admin-cmds-device-parts.tex

Quoted 3 lines
admin-cmds-device-parts.tex +2 -0
+provide when the \field{type} is set to
+VIRTIO_ADMIN_CMD_DEV_PARTS_METADATA_TYPE_LIST
 in a subsequent VIRTIO_ADMIN_CMD_DEV_PARTS_METADATA_GET

command.

Quoted 8 lines

-When \field{type} is set to
VIRTIO_ADMIN_CMD_DEV_PARTS_METADATA_TYPE_HDR,

admin-cmds-device-parts.tex +2 -0
+When \field{type} is set to
+VIRTIO_ADMIN_CMD_DEV_PARTS_METADATA_TYPE_LIST,
 the device responds with \field{hdr_list}. \field{hdr_list}

indicates the device parts metadata.

Quoted 8 lines
Quoted 4 lines

--
2.34.1

In previous patches, I see the pattern \field{type} field. I wonder if you would like to do the same here for consistency but I do not have a strong opinion about this. Otherwise,

Quoted 2 lines

True, maybe I can remove 'field' word from some places in general language improvement separate patch. Will look.

It just typesets it as italic ATM. Worth doing to avoid confusion, as some fields are plain english words.

Quoted 5 lines
Quoted 3 lines

Thanks, Matias.

Thanks.

#4 lore raw
Quoted 53 lines

From: Michael S. Tsirkin <[email protected]>
Sent: Tuesday, September 10, 2024 10:18 PM

Quoted 47 lines · Parav Pandit
Quoted 47 lines

From: Matias Ezequiel Vara Larsen <[email protected]>
Sent: Monday, September 9, 2024 7:48 PM

Quoted 21 lines · Parav Pandit

The description is for the type VIRTIO_ADMIN_CMD_DEV_PARTS_METADATA_TYPE_LIST; however, it referred to a non-existent definition. Correct it.

Branch: virtio-1.4

Fixes aa4f6f069ab3 ("admin: Add admin commands for device parts")
---
 admin-cmds-device-parts.tex | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
(quoted diff) +0 -0

b/admin-cmds-device-parts.tex index 27d8251..3a16692 100644

admin-cmds-device-parts.tex +0 -0
@@ -152,10 +152,10 @@ \subsubsection{Device parts}\label{sec:Basic

Facilities of a Virtio Device / Dev device responds with \field{hdr_list_count.count}. The \field{hdr_list_count.count} indicates an count of \field{struct virtio_dev_part_hdr} metadata entries that the device can -provide when the \field{type} is set to VIRTIO_ADMIN_CMD_DEV_PARTS_METADATA_TYPE_HDR

admin-cmds-device-parts.tex

Quoted 3 lines
admin-cmds-device-parts.tex +2 -0
+provide when the \field{type} is set to
+VIRTIO_ADMIN_CMD_DEV_PARTS_METADATA_TYPE_LIST
 in a subsequent VIRTIO_ADMIN_CMD_DEV_PARTS_METADATA_GET

command.

Quoted 8 lines

-When \field{type} is set to
VIRTIO_ADMIN_CMD_DEV_PARTS_METADATA_TYPE_HDR,

admin-cmds-device-parts.tex +2 -0
+When \field{type} is set to
+VIRTIO_ADMIN_CMD_DEV_PARTS_METADATA_TYPE_LIST,
 the device responds with \field{hdr_list}. \field{hdr_list}

indicates the device parts metadata.

Quoted 4 lines

--
2.34.1

In previous patches, I see the pattern \field{type} field. I wonder if you would like to do the same here for consistency but I do not have a strong opinion about this. Otherwise,

Quoted 8 lines
Quoted 1 line

True, maybe I can remove 'field' word from some places in general

language improvement separate patch.

Quoted 1 line

Will look.

It just typesets it as italic ATM. Worth doing to avoid confusion, as some fields are plain english words.

Do you mean to add word 'field' wherever missing as Matias suggested?

If so, no strong opinion to me, I will run a separate patch for such improvements without fixes tag.

Quoted 6 lines
Quoted 6 lines
Quoted 4 lines

Thanks, Matias.

Thanks.

#5 lore raw
Quoted 54 lines · Parav Pandit
Quoted 54 lines

From: Michael S. Tsirkin <[email protected]>
Sent: Tuesday, September 10, 2024 10:18 PM

Quoted 48 lines · Parav Pandit
Quoted 39 lines

From: Matias Ezequiel Vara Larsen <[email protected]>
Sent: Monday, September 9, 2024 7:48 PM

Quoted 21 lines · Parav Pandit

The description is for the type VIRTIO_ADMIN_CMD_DEV_PARTS_METADATA_TYPE_LIST; however, it referred to a non-existent definition. Correct it.

Branch: virtio-1.4

Fixes aa4f6f069ab3 ("admin: Add admin commands for device parts")
---
 admin-cmds-device-parts.tex | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
(quoted diff) +0 -0

b/admin-cmds-device-parts.tex index 27d8251..3a16692 100644

admin-cmds-device-parts.tex +0 -0
@@ -152,10 +152,10 @@ \subsubsection{Device parts}\label{sec:Basic

Facilities of a Virtio Device / Dev device responds with \field{hdr_list_count.count}. The \field{hdr_list_count.count} indicates an count of \field{struct virtio_dev_part_hdr} metadata entries that the device can -provide when the \field{type} is set to VIRTIO_ADMIN_CMD_DEV_PARTS_METADATA_TYPE_HDR

admin-cmds-device-parts.tex

Quoted 3 lines
admin-cmds-device-parts.tex +2 -0
+provide when the \field{type} is set to
+VIRTIO_ADMIN_CMD_DEV_PARTS_METADATA_TYPE_LIST
 in a subsequent VIRTIO_ADMIN_CMD_DEV_PARTS_METADATA_GET

command.

Quoted 8 lines

-When \field{type} is set to
VIRTIO_ADMIN_CMD_DEV_PARTS_METADATA_TYPE_HDR,

admin-cmds-device-parts.tex +2 -0
+When \field{type} is set to
+VIRTIO_ADMIN_CMD_DEV_PARTS_METADATA_TYPE_LIST,
 the device responds with \field{hdr_list}. \field{hdr_list}

indicates the device parts metadata.

Quoted 8 lines
Quoted 4 lines

--
2.34.1

In previous patches, I see the pattern \field{type} field. I wonder if you would like to do the same here for consistency but I do not have a strong opinion about this. Otherwise,

True, maybe I can remove 'field' word from some places in general

Quoted 8 lines
Quoted 7 lines

language improvement separate patch.

Quoted 1 line

Will look.

It just typesets it as italic ATM. Worth doing to avoid confusion, as some fields are plain english words.

Do you mean to add word 'field' wherever missing as Matias suggested?

If it's a field in a struct, it should be in italics, yes. I didn't get which field Matias refers to, exactly.

Quoted 8 lines

If so, no strong opinion to me, I will run a separate patch for such improvements without fixes tag.

Quoted 6 lines
Quoted 6 lines
Quoted 4 lines

Thanks, Matias.

Thanks.

#6 lore raw
Quoted 66 lines

From: Michael S. Tsirkin <[email protected]>
Sent: Wednesday, September 11, 2024 12:05 AM

Quoted 60 lines · Parav Pandit
Quoted 60 lines

From: Michael S. Tsirkin <[email protected]>
Sent: Tuesday, September 10, 2024 10:18 PM

Quoted 49 lines · Parav Pandit
Quoted 41 lines

From: Matias Ezequiel Vara Larsen <[email protected]>
Sent: Monday, September 9, 2024 7:48 PM

Quoted 23 lines · Parav Pandit

The description is for the type VIRTIO_ADMIN_CMD_DEV_PARTS_METADATA_TYPE_LIST; however, it referred to a non-existent definition. Correct it.

Branch: virtio-1.4

Fixes aa4f6f069ab3 ("admin: Add admin commands for device

parts")

---
 admin-cmds-device-parts.tex | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
(quoted diff) +0 -0

b/admin-cmds-device-parts.tex index 27d8251..3a16692 100644

admin-cmds-device-parts.tex +0 -0
@@ -152,10 +152,10 @@ \subsubsection{Device

parts}\label{sec:Basic Facilities of a Virtio Device / Dev device responds with \field{hdr_list_count.count}. The \field{hdr_list_count.count} indicates an count of \field{struct virtio_dev_part_hdr} metadata entries that the device can -provide when the \field{type} is set to VIRTIO_ADMIN_CMD_DEV_PARTS_METADATA_TYPE_HDR

admin-cmds-device-parts.tex

Quoted 3 lines
admin-cmds-device-parts.tex +2 -0
+provide when the \field{type} is set to
+VIRTIO_ADMIN_CMD_DEV_PARTS_METADATA_TYPE_LIST
 in a subsequent VIRTIO_ADMIN_CMD_DEV_PARTS_METADATA_GET

command.

Quoted 8 lines

-When \field{type} is set to
VIRTIO_ADMIN_CMD_DEV_PARTS_METADATA_TYPE_HDR,

admin-cmds-device-parts.tex +2 -0
+When \field{type} is set to
+VIRTIO_ADMIN_CMD_DEV_PARTS_METADATA_TYPE_LIST,
 the device responds with \field{hdr_list}. \field{hdr_list}

indicates the device parts metadata.

Quoted 8 lines
Quoted 4 lines

--
2.34.1

In previous patches, I see the pattern \field{type} field. I wonder if you would like to do the same here for consistency but I do not have a strong opinion about this. Otherwise,

Quoted 1 line

True, maybe I can remove 'field' word from some places in general

language improvement separate patch.

Quoted 1 line

Will look.

Quoted 7 lines
Quoted 4 lines
Quoted 3 lines

It just typesets it as italic ATM. Worth doing to avoid confusion, as some fields are plain english words.

Do you mean to add word 'field' wherever missing as Matias suggested?

If it's a field in a struct, it should be in italics, yes.

It is already in italics.

The question was : should be written as,

Option_A: \field{type} field indicates so-n-so...
or
Option_B: \field{type} indicates so-n-soo..

Quoted 12 lines

I didn't get which field
Matias refers to, exactly.

Quoted 1 line

If so, no strong opinion to me, I will run a separate patch for such

improvements without fixes tag.

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 5 lines

Thanks, Matias.

Thanks.

#7 lore raw
Quoted 72 lines · Parav Pandit
Quoted 72 lines

From: Michael S. Tsirkin <[email protected]>
Sent: Wednesday, September 11, 2024 12:05 AM

Quoted 64 lines · Parav Pandit
Quoted 55 lines

From: Michael S. Tsirkin <[email protected]>
Sent: Tuesday, September 10, 2024 10:18 PM

Quoted 49 lines · Parav Pandit
Quoted 49 lines

From: Matias Ezequiel Vara Larsen <[email protected]>
Sent: Monday, September 9, 2024 7:48 PM

Quoted 23 lines · Parav Pandit

The description is for the type VIRTIO_ADMIN_CMD_DEV_PARTS_METADATA_TYPE_LIST; however, it referred to a non-existent definition. Correct it.

Branch: virtio-1.4

Fixes aa4f6f069ab3 ("admin: Add admin commands for device

parts")

---
 admin-cmds-device-parts.tex | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
(quoted diff) +0 -0

b/admin-cmds-device-parts.tex index 27d8251..3a16692 100644

admin-cmds-device-parts.tex +0 -0
@@ -152,10 +152,10 @@ \subsubsection{Device

parts}\label{sec:Basic Facilities of a Virtio Device / Dev device responds with \field{hdr_list_count.count}. The \field{hdr_list_count.count} indicates an count of \field{struct virtio_dev_part_hdr} metadata entries that the device can -provide when the \field{type} is set to VIRTIO_ADMIN_CMD_DEV_PARTS_METADATA_TYPE_HDR

admin-cmds-device-parts.tex

Quoted 3 lines
admin-cmds-device-parts.tex +2 -0
+provide when the \field{type} is set to
+VIRTIO_ADMIN_CMD_DEV_PARTS_METADATA_TYPE_LIST
 in a subsequent VIRTIO_ADMIN_CMD_DEV_PARTS_METADATA_GET

command.

Quoted 8 lines

-When \field{type} is set to
VIRTIO_ADMIN_CMD_DEV_PARTS_METADATA_TYPE_HDR,

admin-cmds-device-parts.tex +2 -0
+When \field{type} is set to
+VIRTIO_ADMIN_CMD_DEV_PARTS_METADATA_TYPE_LIST,
 the device responds with \field{hdr_list}. \field{hdr_list}

indicates the device parts metadata.

Quoted 4 lines

--
2.34.1

In previous patches, I see the pattern \field{type} field. I wonder if you would like to do the same here for consistency but I do not have a strong opinion about this. Otherwise,

Quoted 8 lines
Quoted 1 line

True, maybe I can remove 'field' word from some places in general

language improvement separate patch.

Quoted 1 line

Will look.

It just typesets it as italic ATM. Worth doing to avoid confusion, as some fields are plain english words.

Do you mean to add word 'field' wherever missing as Matias suggested?

Quoted 8 lines
Quoted 1 line

If it's a field in a struct, it should be in italics, yes.

It is already in italics.

The question was : should be written as,

Option_A: \field{type} field indicates so-n-so...
or
Option_B: \field{type} indicates so-n-soo..

Ah.

I don't really feel adding "field" adds much, because of italics and because one can see it's a field from the name. So, brevity wins.

Quoted 12 lines
Quoted 12 lines

I didn't get which field
Matias refers to, exactly.

Quoted 1 line

If so, no strong opinion to me, I will run a separate patch for such

improvements without fixes tag.

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 5 lines

Thanks, Matias.

Thanks.

#8 lore raw
Quoted 4 lines

From: Michael S. Tsirkin <[email protected]>
Sent: Wednesday, September 11, 2024 1:51 AM

[..]

Quoted 8 lines
Quoted 7 lines

It is already in italics.

The question was : should be written as,

Option_A: \field{type} field indicates so-n-so...
or
Option_B: \field{type} indicates so-n-soo..

Quoted 5 lines

Ah.

I don't really feel adding "field" adds much, because of italics and because one can see it's a field from the name.
So, brevity wins.

Ok. Got it.
The current patch is discussion does not have word 'field'. So current patch is good as-is.
Thanks.

#9 lore raw
Quoted 16 lines · Parav Pandit
Quoted 4 lines

From: Michael S. Tsirkin <[email protected]>
Sent: Wednesday, September 11, 2024 1:51 AM

[..]

Quoted 10 lines
Quoted 7 lines

It is already in italics.

The question was : should be written as,

Option_A: \field{type} field indicates so-n-so...
or
Option_B: \field{type} indicates so-n-soo..

Ah.

Quoted 8 lines
Quoted 3 lines

I don't really feel adding "field" adds much, because of italics and because one can see it's a field from the name.
So, brevity wins.

Ok. Got it.
The current patch is discussion does not have word 'field'. So current patch is good as-is.
Thanks.

Agreed.