Let's store in a bool whether a LoopDevice object was created via
loop_device_open() or loop_device_make().
.timestamp_not_before = timestamp,
.sector_size = c->block_size,
.device_size = device_size,
+ .created = true,
};
*ret = TAKE_PTR(d);
.timestamp_not_before = USEC_INFINITY,
.sector_size = sector_size,
.device_size = device_size,
+ .created = false,
};
*ret = d;
sd_device *dev;
char *backing_file;
bool relinquished;
+ bool created; /* If we created the device */
dev_t backing_devno; /* The backing file's dev_t */
ino_t backing_inode; /* The backing file's ino_t */
uint64_t diskseq; /* Block device sequence number, monothonically incremented by the kernel on create/attach, or 0 if we don't know */