1 /* SPDX-License-Identifier: LGPL-2.1-or-later */ 2 #pragma once 3 4 #include <linux/loop.h> 5 6 #ifndef LOOP_CONFIGURE 7 struct loop_config { 8 __u32 fd; 9 __u32 block_size; 10 struct loop_info64 info; 11 __u64 __reserved[8]; 12 }; 13 14 #define LOOP_CONFIGURE 0x4C0A 15 #endif 16 17 #ifndef LOOP_SET_STATUS_SETTABLE_FLAGS 18 #define LOOP_SET_STATUS_SETTABLE_FLAGS (LO_FLAGS_AUTOCLEAR | LO_FLAGS_PARTSCAN) 19 #endif 20