Re: [PULL v2 02/16] block/file-posix: introduce helper functions for sysfs attributes

2023-06-02 Thread Sam Li
Matthew Rosato 于2023年6月3日周六 02:41写道: > > On 6/2/23 2:18 PM, Sam Li wrote: > > Matthew Rosato 于2023年6月1日周四 02:21写道: > >> > >> On 5/15/23 12:04 PM, Stefan Hajnoczi wrote: > >>> From: Sam Li > >>> > >>> Use get_sysfs_str_val() to get the string value of device > >>> zoned model. Then get_sysfs_zone

Re: [PULL v2 02/16] block/file-posix: introduce helper functions for sysfs attributes

2023-06-02 Thread Matthew Rosato
On 6/2/23 2:18 PM, Sam Li wrote: > Matthew Rosato 于2023年6月1日周四 02:21写道: >> >> On 5/15/23 12:04 PM, Stefan Hajnoczi wrote: >>> From: Sam Li >>> >>> Use get_sysfs_str_val() to get the string value of device >>> zoned model. Then get_sysfs_zoned_model() can convert it to >>> BlockZoneModel type of Q

Re: [PULL v2 02/16] block/file-posix: introduce helper functions for sysfs attributes

2023-06-02 Thread Sam Li
Matthew Rosato 于2023年6月1日周四 02:21写道: > > On 5/15/23 12:04 PM, Stefan Hajnoczi wrote: > > From: Sam Li > > > > Use get_sysfs_str_val() to get the string value of device > > zoned model. Then get_sysfs_zoned_model() can convert it to > > BlockZoneModel type of QEMU. > > > > Use get_sysfs_long_val()

Re: [PULL v2 02/16] block/file-posix: introduce helper functions for sysfs attributes

2023-05-31 Thread Matthew Rosato
On 5/15/23 12:04 PM, Stefan Hajnoczi wrote: > From: Sam Li > > Use get_sysfs_str_val() to get the string value of device > zoned model. Then get_sysfs_zoned_model() can convert it to > BlockZoneModel type of QEMU. > > Use get_sysfs_long_val() to get the long value of zoned device > information.

[PULL v2 02/16] block/file-posix: introduce helper functions for sysfs attributes

2023-05-15 Thread Stefan Hajnoczi
From: Sam Li Use get_sysfs_str_val() to get the string value of device zoned model. Then get_sysfs_zoned_model() can convert it to BlockZoneModel type of QEMU. Use get_sysfs_long_val() to get the long value of zoned device information. Signed-off-by: Sam Li Reviewed-by: Hannes Reinecke Review