Linux-man Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH v1 1/2] loop.4: Document LOOP_SET_DIRECT_IO
@ 2020-01-06  7:42 Yang Xu
  2020-01-06  7:42 ` [PATCH v1 2/2] loop.4: Document LOOP_SET_BLOCK_SIZE Yang Xu
  2020-01-21 20:41 ` [PATCH v1 1/2] loop.4: Document LOOP_SET_DIRECT_IO Michael Kerrisk (man-pages)
  0 siblings, 2 replies; 4+ messages in thread
From: Yang Xu @ 2020-01-06  7:42 UTC (permalink / raw)
  To: mtk.manpages; +Cc: linux-man, Yang Xu

Signed-off-by: Yang Xu <xuyang2018.jy@cn.fujitsu.com>
---
 man4/loop.4 | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/man4/loop.4 b/man4/loop.4
index a56586fe6..afb1d05c5 100644
--- a/man4/loop.4
+++ b/man4/loop.4
@@ -152,6 +152,13 @@ Resize a live loop device.
 One can change the size of the underlying backing store and then use this
 operation so that the loop driver learns about the new size.
 This operation takes no argument.
+.TP
+.BR LOOP_SET_DIRECT_IO " (since Linux 4.10)"
+.\" commit ab1cb278bc7027663adbfb0b81404f8398437e11
+Set DIRECT IO mode on the loop device. So it can be used to open backing
+file. The (third)
+.BR ioctl(2)
+argument is an unsigned long value. non-zero represents direct IO mode.
 .PP
 Since Linux 2.6, there are two new
 .BR ioctl (2)
-- 
2.18.0




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

* [PATCH v1 2/2] loop.4: Document LOOP_SET_BLOCK_SIZE
  2020-01-06  7:42 [PATCH v1 1/2] loop.4: Document LOOP_SET_DIRECT_IO Yang Xu
@ 2020-01-06  7:42 ` Yang Xu
  2020-01-21 20:41   ` Michael Kerrisk (man-pages)
  2020-01-21 20:41 ` [PATCH v1 1/2] loop.4: Document LOOP_SET_DIRECT_IO Michael Kerrisk (man-pages)
  1 sibling, 1 reply; 4+ messages in thread
From: Yang Xu @ 2020-01-06  7:42 UTC (permalink / raw)
  To: mtk.manpages; +Cc: linux-man, Yang Xu

Signed-off-by: Yang Xu <xuyang2018.jy@cn.fujitsu.com>
---
 man4/loop.4 | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/man4/loop.4 b/man4/loop.4
index afb1d05c5..9fd2b3eb4 100644
--- a/man4/loop.4
+++ b/man4/loop.4
@@ -159,6 +159,13 @@ Set DIRECT IO mode on the loop device. So it can be used to open backing
 file. The (third)
 .BR ioctl(2)
 argument is an unsigned long value. non-zero represents direct IO mode.
+.TP
+.BR LOOP_SET_BLOCK_SIZE " (since Linux 4.14)"
+.\" commit 89e4fdecb51cf5535867026274bc97de9480ade5
+Set the block size of the loop device. The (third)
+.BR ioctl(2)
+argument is an unsigned long value. This value must be 2 to the power of N
+and in range [512,pagesize]. Otherwise, it will get EINVAL error.
 .PP
 Since Linux 2.6, there are two new
 .BR ioctl (2)
-- 
2.18.0




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

* Re: [PATCH v1 1/2] loop.4: Document LOOP_SET_DIRECT_IO
  2020-01-06  7:42 [PATCH v1 1/2] loop.4: Document LOOP_SET_DIRECT_IO Yang Xu
  2020-01-06  7:42 ` [PATCH v1 2/2] loop.4: Document LOOP_SET_BLOCK_SIZE Yang Xu
@ 2020-01-21 20:41 ` Michael Kerrisk (man-pages)
  1 sibling, 0 replies; 4+ messages in thread
From: Michael Kerrisk (man-pages) @ 2020-01-21 20:41 UTC (permalink / raw)
  To: Yang Xu; +Cc: mtk.manpages, linux-man

On 1/6/20 8:42 AM, Yang Xu wrote:
> Signed-off-by: Yang Xu <xuyang2018.jy@cn.fujitsu.com>

Hello Yang Xu. Thanks. Patch applied.

Cheers,

Michael

> ---
>  man4/loop.4 | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/man4/loop.4 b/man4/loop.4
> index a56586fe6..afb1d05c5 100644
> --- a/man4/loop.4
> +++ b/man4/loop.4
> @@ -152,6 +152,13 @@ Resize a live loop device.
>  One can change the size of the underlying backing store and then use this
>  operation so that the loop driver learns about the new size.
>  This operation takes no argument.
> +.TP
> +.BR LOOP_SET_DIRECT_IO " (since Linux 4.10)"
> +.\" commit ab1cb278bc7027663adbfb0b81404f8398437e11
> +Set DIRECT IO mode on the loop device. So it can be used to open backing
> +file. The (third)
> +.BR ioctl(2)
> +argument is an unsigned long value. non-zero represents direct IO mode.
>  .PP
>  Since Linux 2.6, there are two new
>  .BR ioctl (2)
> 


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/

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

* Re: [PATCH v1 2/2] loop.4: Document LOOP_SET_BLOCK_SIZE
  2020-01-06  7:42 ` [PATCH v1 2/2] loop.4: Document LOOP_SET_BLOCK_SIZE Yang Xu
@ 2020-01-21 20:41   ` Michael Kerrisk (man-pages)
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Kerrisk (man-pages) @ 2020-01-21 20:41 UTC (permalink / raw)
  To: Yang Xu; +Cc: mtk.manpages, linux-man

On 1/6/20 8:42 AM, Yang Xu wrote:
> Signed-off-by: Yang Xu <xuyang2018.jy@cn.fujitsu.com>

Thanks, Yang Xu. Patch applied.

Cheers,

Michael

> ---
>  man4/loop.4 | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/man4/loop.4 b/man4/loop.4
> index afb1d05c5..9fd2b3eb4 100644
> --- a/man4/loop.4
> +++ b/man4/loop.4
> @@ -159,6 +159,13 @@ Set DIRECT IO mode on the loop device. So it can be used to open backing
>  file. The (third)
>  .BR ioctl(2)
>  argument is an unsigned long value. non-zero represents direct IO mode.
> +.TP
> +.BR LOOP_SET_BLOCK_SIZE " (since Linux 4.14)"
> +.\" commit 89e4fdecb51cf5535867026274bc97de9480ade5
> +Set the block size of the loop device. The (third)
> +.BR ioctl(2)
> +argument is an unsigned long value. This value must be 2 to the power of N
> +and in range [512,pagesize]. Otherwise, it will get EINVAL error.
>  .PP
>  Since Linux 2.6, there are two new
>  .BR ioctl (2)
> 


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/

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

end of thread, back to index

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-06  7:42 [PATCH v1 1/2] loop.4: Document LOOP_SET_DIRECT_IO Yang Xu
2020-01-06  7:42 ` [PATCH v1 2/2] loop.4: Document LOOP_SET_BLOCK_SIZE Yang Xu
2020-01-21 20:41   ` Michael Kerrisk (man-pages)
2020-01-21 20:41 ` [PATCH v1 1/2] loop.4: Document LOOP_SET_DIRECT_IO Michael Kerrisk (man-pages)

Linux-man Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-man/0 linux-man/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-man linux-man/ https://lore.kernel.org/linux-man \
		linux-man@vger.kernel.org
	public-inbox-index linux-man

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-man


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git