util-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] losetup: restore -f/loopdev alternative
@ 2022-01-06 10:03 Stephen Kitt
  2022-01-06 10:48 ` Karel Zak
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Kitt @ 2022-01-06 10:03 UTC (permalink / raw)
  To: util-linux; +Cc: Stephen Kitt

-f and loopdev are exclusive; the old man page made this explicit, but
this was lost in the Asciidoc transition in commit 6d5b69483a58
("Asciidoc: Import sys-utils man pages, part 1").

This patch restores the lost pipe, so that the disjunction is
explicit:

        losetup ... [--show] -f|loopdev file
                               ^

Signed-off-by: Stephen Kitt <steve@sk2.org>
---
 sys-utils/losetup.8.adoc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-utils/losetup.8.adoc b/sys-utils/losetup.8.adoc
index 2a2577f0d..52df95bd6 100644
--- a/sys-utils/losetup.8.adoc
+++ b/sys-utils/losetup.8.adoc
@@ -30,7 +30,7 @@ Detach all associated loop devices:
 
 Set up a loop device:
 
-*losetup* [*-o* _offset_] [*--sizelimit* _size_] [*--sector-size* _size_] [*-Pr*] [*--show*] *-f* _loopdev file_
+*losetup* [*-o* _offset_] [*--sizelimit* _size_] [*--sector-size* _size_] [*-Pr*] [*--show*] *-f*|_loopdev file_
 
 Resize a loop device:
 

base-commit: 22abf6df385b524acd78542fd8a3452ee1492002
-- 
2.30.2


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

* Re: [PATCH] losetup: restore -f/loopdev alternative
  2022-01-06 10:03 [PATCH] losetup: restore -f/loopdev alternative Stephen Kitt
@ 2022-01-06 10:48 ` Karel Zak
  2022-01-06 10:56   ` Stephen Kitt
  0 siblings, 1 reply; 3+ messages in thread
From: Karel Zak @ 2022-01-06 10:48 UTC (permalink / raw)
  To: Stephen Kitt; +Cc: util-linux

On Thu, Jan 06, 2022 at 11:03:07AM +0100, Stephen Kitt wrote:
>  sys-utils/losetup.8.adoc | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/sys-utils/losetup.8.adoc b/sys-utils/losetup.8.adoc
> index 2a2577f0d..52df95bd6 100644
> --- a/sys-utils/losetup.8.adoc
> +++ b/sys-utils/losetup.8.adoc
> @@ -30,7 +30,7 @@ Detach all associated loop devices:
>  
>  Set up a loop device:
>  
> -*losetup* [*-o* _offset_] [*--sizelimit* _size_] [*--sector-size* _size_] [*-Pr*] [*--show*] *-f* _loopdev file_
> +*losetup* [*-o* _offset_] [*--sizelimit* _size_] [*--sector-size* _size_] [*-Pr*] [*--show*] *-f*|_loopdev file_

Ah, I've just applied https://github.com/util-linux/util-linux/pull/1556
with the same issue.

 Karel

-- 
 Karel Zak  <kzak@redhat.com>
 http://karelzak.blogspot.com


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

* Re: [PATCH] losetup: restore -f/loopdev alternative
  2022-01-06 10:48 ` Karel Zak
@ 2022-01-06 10:56   ` Stephen Kitt
  0 siblings, 0 replies; 3+ messages in thread
From: Stephen Kitt @ 2022-01-06 10:56 UTC (permalink / raw)
  To: Karel Zak; +Cc: util-linux

Le 06/01/2022 11:48, Karel Zak a écrit :
> On Thu, Jan 06, 2022 at 11:03:07AM +0100, Stephen Kitt wrote:
>>  sys-utils/losetup.8.adoc | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>> 
>> diff --git a/sys-utils/losetup.8.adoc b/sys-utils/losetup.8.adoc
>> index 2a2577f0d..52df95bd6 100644
>> --- a/sys-utils/losetup.8.adoc
>> +++ b/sys-utils/losetup.8.adoc
>> @@ -30,7 +30,7 @@ Detach all associated loop devices:
>> 
>>  Set up a loop device:
>> 
>> -*losetup* [*-o* _offset_] [*--sizelimit* _size_] [*--sector-size* 
>> _size_] [*-Pr*] [*--show*] *-f* _loopdev file_
>> +*losetup* [*-o* _offset_] [*--sizelimit* _size_] [*--sector-size* 
>> _size_] [*-Pr*] [*--show*] *-f*|_loopdev file_
> 
> Ah, I've just applied 
> https://github.com/util-linux/util-linux/pull/1556
> with the same issue.

Cool, as long as it's fixed :-)

Regards,

Stephen

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

end of thread, other threads:[~2022-01-06 10:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-06 10:03 [PATCH] losetup: restore -f/loopdev alternative Stephen Kitt
2022-01-06 10:48 ` Karel Zak
2022-01-06 10:56   ` Stephen Kitt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).