MCPcopy Create free account
hub / github.com/F-Stack/f-stack / textdump_dump_version

Function textdump_dump_version

freebsd/ddb/db_textdump.c:407–425  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

405}
406
407static void
408textdump_dump_version(struct dumperinfo *di)
409{
410 u_int len;
411
412 /*
413 * Write out tar header -- at most one block of version information.
414 */
415 len = min(strlen(version), TEXTDUMP_BLOCKSIZE);
416 textdump_mkustar(textdump_block_buffer, TAR_VERSION_FILENAME, len);
417 (void)textdump_writenextblock(di, textdump_block_buffer);
418
419 /*
420 * Zero pad the version string and write out block.
421 */
422 bzero(textdump_block_buffer, sizeof(textdump_block_buffer));
423 bcopy(version, textdump_block_buffer, len);
424 (void)textdump_writenextblock(di, textdump_block_buffer);
425}
426
427/*
428 * Commit text dump to disk.

Callers 1

textdump_dumpsysFunction · 0.85

Calls 4

minFunction · 0.85
textdump_mkustarFunction · 0.85
textdump_writenextblockFunction · 0.85
bzeroFunction · 0.85

Tested by

no test coverage detected