Home
last modified time | relevance | path

Searched refs:tar_hdr (Results 1 – 4 of 4) sorted by relevance

/illumos-gate/usr/src/cmd/ndmpd/tlm/
H A Dtlm_backup_reader.c156 tlm_tar_hdr_t *tar_hdr; in output_acl_header() local
162 tar_hdr = (tlm_tar_hdr_t *)get_write_buffer(RECORDSIZE, in output_acl_header()
164 if (!tar_hdr) in output_acl_header()
167 tar_hdr->th_linkflag = LF_ACL; in output_acl_header()
173 (void) strlcpy(tar_hdr->th_name, "UFSACL", TLM_NAME_SIZE); in output_acl_header()
174 (void) snprintf(tar_hdr->th_size, sizeof (tar_hdr->th_size), "%011o ", in output_acl_header()
176 (void) snprintf(tar_hdr->th_mode, sizeof (tar_hdr->th_mode), "%06o ", in output_acl_header()
178 (void) snprintf(tar_hdr->th_uid, sizeof (tar_hdr->th_uid), "%06o ", 0); in output_acl_header()
179 (void) snprintf(tar_hdr->th_gid, sizeof (tar_hdr->th_gid), "%06o ", 0); in output_acl_header()
180 (void) snprintf(tar_hdr->th_mtime, sizeof (tar_hdr->th_mtime), in output_acl_header()
[all …]
H A Dtlm_restore_writer.c360 tlm_tar_hdr_t *tar_hdr; in tar_getdir() local
398 tar_hdr = &fake_tar_hdr; in tar_getdir()
399 tar_hdr->th_linkflag = last_action; in tar_getdir()
404 tar_hdr = (tlm_tar_hdr_t *)get_read_buffer(want, in tar_getdir()
407 if (tar_hdr == NULL) { in tar_getdir()
433 chk_rv = tlm_vfy_tar_checksum(tar_hdr); in tar_getdir()
461 if (tar_hdr->th_linkflag != LF_MULTIVOL && in tar_getdir()
462 tar_hdr->th_linkflag != LF_VOLHDR) { in tar_getdir()
463 if (tar_hdr->th_linkflag != LF_HUMONGUS) { in tar_getdir()
465 oct_atoi(tar_hdr->th_mode); in tar_getdir()
[all …]
H A Dtlm_lib.c306 tlm_vfy_tar_checksum(tlm_tar_hdr_t *tar_hdr) in tlm_vfy_tar_checksum() argument
308 int chksum = oct_atoi(tar_hdr->th_chksum); in tlm_vfy_tar_checksum()
309 uchar_t *p = (uchar_t *)tar_hdr; in tlm_vfy_tar_checksum()
333 sum -= 0xFF & tar_hdr->th_chksum[i]; in tlm_vfy_tar_checksum()
/illumos-gate/usr/src/head/
H A Darchives.h131 struct tar_hdr { struct