]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
loop.4: 'lo_flags' is nowadays "r/w"
authorMichael Kerrisk <mtk.manpages@gmail.com>
Wed, 6 May 2020 09:33:21 +0000 (11:33 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Wed, 6 May 2020 09:36:20 +0000 (11:36 +0200)
Since kernel commit 96c5865559cee0f9cbc5173f3c949f6ce3525581,
the 'lo_flags' field is modifiable via the LOOP_SET_STATUS and
LOOP_SET_STATUS64 ioctl() operations.

See https://bugzilla.kernel.org/show_bug.cgi?id=203417

Reported-by: Vlad <cvazir@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man4/loop.4

index 74858da7a6b50e680cca5d53709feb90ccc99e65..d95c38e771d9b6cbace46d6d57ae7315d85ad7cb 100644 (file)
@@ -89,7 +89,8 @@ struct loop_info {
     int           lo_offset;
     int           lo_encrypt_type;
     int           lo_encrypt_key_size;  /* ioctl w/o */
-    int           lo_flags;       /* ioctl r/o */
+    int           lo_flags;       /* ioctl r/w (r/o before
+                                     Linux 2.6.25) */
     char          lo_name[LO_NAME_SIZE];
     unsigned char lo_encrypt_key[LO_KEY_SIZE];
                                   /* ioctl w/o */
@@ -197,7 +198,8 @@ struct loop_info64 {
     uint32_t lo_number;           /* ioctl r/o */
     uint32_t lo_encrypt_type;
     uint32_t lo_encrypt_key_size; /* ioctl w/o */
-    uint32_t lo_flags;            /* ioctl r/o */
+    uint32_t lo_flags; i          /* ioctl r/w (r/o before
+                                     Linux 2.6.25) */
     uint8_t  lo_file_name[LO_NAME_SIZE];
     uint8_t  lo_crypt_name[LO_NAME_SIZE];
     uint8_t  lo_encrypt_key[LO_KEY_SIZE]; /* ioctl w/o */