Lines Matching full:log

23 /* Disk format stuff - taken from Linux drivers/md/dm-log-writes.c */
61 * The mutable state of the driver, consisting of the current log sector
62 * and the number of log entries.
93 .name = "log-append",
95 .help = "Append to an existing log",
98 .name = "log-sector-size",
100 .help = "Log sector size",
103 .name = "log-super-update-interval",
105 .help = "Log superblock update interval (# of write requests)",
125 static uint64_t blk_log_writes_find_cur_log_sector(BdrvChild *log, in blk_log_writes_find_cur_log_sector() argument
136 int read_ret = bdrv_pread(log, cur_sector << sector_bits, in blk_log_writes_find_cur_log_sector()
140 "Failed to read log entry %"PRIu64, cur_idx); in blk_log_writes_find_cur_log_sector()
145 error_setg(errp, "Invalid flags 0x%"PRIx64" in log entry %"PRIu64, in blk_log_writes_find_cur_log_sector()
189 /* Open the log file */ in blk_log_writes_open()
190 s->log_file = bdrv_open_child(NULL, options, "log", bs, &child_of_bds, in blk_log_writes_open()
200 log_append = qemu_opt_get_bool(opts, "log-append", false); in blk_log_writes_open()
205 if (qemu_opt_find(opts, "log-sector-size")) { in blk_log_writes_open()
207 error_setg(errp, "log-append and log-sector-size are mutually " in blk_log_writes_open()
212 /* Read log superblock or fake one for an empty log */ in blk_log_writes_open()
221 error_setg_errno(errp, -ret, "Could not read log superblock"); in blk_log_writes_open()
228 error_setg(errp, "Invalid log superblock magic"); in blk_log_writes_open()
234 error_setg(errp, "Unsupported log version %"PRIu64, in blk_log_writes_open()
256 log_sector_size = qemu_opt_get_size(opts, "log-sector-size", in blk_log_writes_open()
266 error_setg(errp, "Invalid log sector size %"PRIu64, log_sector_size); in blk_log_writes_open()
272 s->update_interval = qemu_opt_get_number(opts, "log-super-update-interval", in blk_log_writes_open()
276 error_setg(errp, "Invalid log superblock update interval %"PRIu64, in blk_log_writes_open()
373 * log entry may have to be written in two parts, and the state of the in blk_log_writes_co_do_log()
391 * Write the log entry. Note that if this is a "write zeroes" operation, in blk_log_writes_co_do_log()
588 "log-append",
589 "log-sector-size",