All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH 1/1] Fix tst_mkfs_ doc
@ 2022-01-26 16:47 Petr Vorel
  2022-02-01 11:58 ` Cyril Hrubis
  0 siblings, 1 reply; 5+ messages in thread
From: Petr Vorel @ 2022-01-26 16:47 UTC (permalink / raw)
  To: ltp

Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
 include/old/test.h | 3 ++-
 include/tst_mkfs.h | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/include/old/test.h b/include/old/test.h
index 2ae7dba71f..87287a8e7e 100644
--- a/include/old/test.h
+++ b/include/old/test.h
@@ -193,7 +193,8 @@ int self_exec(const char *argv0, const char *fmt, ...);
  * @dev: path to a device
  * @fs_type: filesystem type
  * @fs_opts: NULL or NULL terminated array of mkfs options
- * @extra_opt: extra mkfs option which is passed after the device name
+ * @extra_opts: NULL or NULL terminated array of extra mkfs options which is
+ * passed after the device name.
  */
 #define tst_mkfs(cleanup, dev, fs_type, fs_opts, extra_opts) \
 	tst_mkfs_(__FILE__, __LINE__, cleanup, dev, fs_type, \
diff --git a/include/tst_mkfs.h b/include/tst_mkfs.h
index b89bf812f6..c2d777facd 100644
--- a/include/tst_mkfs.h
+++ b/include/tst_mkfs.h
@@ -9,7 +9,8 @@
  * @dev: path to a device
  * @fs_type: filesystem type
  * @fs_opts: NULL or NULL terminated array of extra mkfs options
- * @extra_opts: NULL or NULL terminated array of extra mkfs options
+ * @extra_opts: NULL or NULL terminated array of extra mkfs options which is
+ * passed after the device name.
  */
 void tst_mkfs_(const char *file, const int lineno, void (cleanup_fn)(void),
 	       const char *dev, const char *fs_type,
-- 
2.34.1


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [LTP] [PATCH 1/1] Fix tst_mkfs_ doc
  2022-01-26 16:47 [LTP] [PATCH 1/1] Fix tst_mkfs_ doc Petr Vorel
@ 2022-02-01 11:58 ` Cyril Hrubis
  2022-02-01 15:28   ` Petr Vorel
  0 siblings, 1 reply; 5+ messages in thread
From: Cyril Hrubis @ 2022-02-01 11:58 UTC (permalink / raw)
  To: Petr Vorel; +Cc: ltp

Hi!
> diff --git a/include/old/test.h b/include/old/test.h
> index 2ae7dba71f..87287a8e7e 100644
> --- a/include/old/test.h
> +++ b/include/old/test.h
> @@ -193,7 +193,8 @@ int self_exec(const char *argv0, const char *fmt, ...);
>   * @dev: path to a device
>   * @fs_type: filesystem type
>   * @fs_opts: NULL or NULL terminated array of mkfs options
> - * @extra_opt: extra mkfs option which is passed after the device name
> + * @extra_opts: NULL or NULL terminated array of extra mkfs options which is
                                                                             ^
									     are
> + * passed after the device name.
>   */
>  #define tst_mkfs(cleanup, dev, fs_type, fs_opts, extra_opts) \
>  	tst_mkfs_(__FILE__, __LINE__, cleanup, dev, fs_type, \
> diff --git a/include/tst_mkfs.h b/include/tst_mkfs.h
> index b89bf812f6..c2d777facd 100644
> --- a/include/tst_mkfs.h
> +++ b/include/tst_mkfs.h
> @@ -9,7 +9,8 @@
>   * @dev: path to a device
>   * @fs_type: filesystem type
>   * @fs_opts: NULL or NULL terminated array of extra mkfs options
> - * @extra_opts: NULL or NULL terminated array of extra mkfs options
> + * @extra_opts: NULL or NULL terminated array of extra mkfs options which is
                                                                             ^
									     are
> + * passed after the device name.
>   */
>  void tst_mkfs_(const char *file, const int lineno, void (cleanup_fn)(void),
>  	       const char *dev, const char *fs_type,

With the minor mistake fixed:

Reviewed-by: Cyril Hrubis <chrubis@suse.cz>

-- 
Cyril Hrubis
chrubis@suse.cz

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [LTP] [PATCH 1/1] Fix tst_mkfs_ doc
  2022-02-01 11:58 ` Cyril Hrubis
@ 2022-02-01 15:28   ` Petr Vorel
  2022-02-01 16:06     ` Richard Palethorpe
  0 siblings, 1 reply; 5+ messages in thread
From: Petr Vorel @ 2022-02-01 15:28 UTC (permalink / raw)
  To: Cyril Hrubis; +Cc: Richard Palethorpe, ltp

Hi Cyril,

> >   * @fs_opts: NULL or NULL terminated array of mkfs options
> > - * @extra_opt: extra mkfs option which is passed after the device name
> > + * @extra_opts: NULL or NULL terminated array of extra mkfs options which is
>                                                                              ^
> 									     are
I wasn't sure about the grammar, I thought the NULL *is* passed or
the NULL terminated array *is* passed. But not really sure.

Kind regards,
Petr

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [LTP] [PATCH 1/1] Fix tst_mkfs_ doc
  2022-02-01 15:28   ` Petr Vorel
@ 2022-02-01 16:06     ` Richard Palethorpe
  2022-02-01 17:24       ` Petr Vorel
  0 siblings, 1 reply; 5+ messages in thread
From: Richard Palethorpe @ 2022-02-01 16:06 UTC (permalink / raw)
  To: Petr Vorel; +Cc: ltp

Hello,

Petr Vorel <pvorel@suse.cz> writes:

> Hi Cyril,
>
>> >   * @fs_opts: NULL or NULL terminated array of mkfs options
>> > - * @extra_opt: extra mkfs option which is passed after the device name
>> > + * @extra_opts: NULL or NULL terminated array of extra mkfs options which is
>>                                                                              ^
>> 									     are
> I wasn't sure about the grammar, I thought the NULL *is* passed or
> the NULL terminated array *is* passed. But not really sure.
>
> Kind regards,
> Petr

*are* sounds more natural to me. Probably due to the order of specifying
the array (singular) then its contents (plural). If you wrote something
like "The extra mkfs options NULL terminated array is ...", then it
would be more natural to use *is*.

-- 
Thank you,
Richard.

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [LTP] [PATCH 1/1] Fix tst_mkfs_ doc
  2022-02-01 16:06     ` Richard Palethorpe
@ 2022-02-01 17:24       ` Petr Vorel
  0 siblings, 0 replies; 5+ messages in thread
From: Petr Vorel @ 2022-02-01 17:24 UTC (permalink / raw)
  To: Richard Palethorpe; +Cc: ltp

Hi Richie,
> Hello,

> Petr Vorel <pvorel@suse.cz> writes:

> > Hi Cyril,

> >> >   * @fs_opts: NULL or NULL terminated array of mkfs options
> >> > - * @extra_opt: extra mkfs option which is passed after the device name
> >> > + * @extra_opts: NULL or NULL terminated array of extra mkfs options which is
> >>                                                                              ^
> >> 									     are
> > I wasn't sure about the grammar, I thought the NULL *is* passed or
> > the NULL terminated array *is* passed. But not really sure.

> > Kind regards,
> > Petr

> *are* sounds more natural to me. Probably due to the order of specifying
> the array (singular) then its contents (plural). If you wrote something
> like "The extra mkfs options NULL terminated array is ...", then it
> would be more natural to use *is*.
Thanks for the explanation, merged with are.

Kind regards,
Petr

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-02-01 17:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-26 16:47 [LTP] [PATCH 1/1] Fix tst_mkfs_ doc Petr Vorel
2022-02-01 11:58 ` Cyril Hrubis
2022-02-01 15:28   ` Petr Vorel
2022-02-01 16:06     ` Richard Palethorpe
2022-02-01 17:24       ` Petr Vorel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.