Lines Matching refs:attr_size
442 size_t attr_size = 0;
460 hdr->attr_size = sizeof(decmpfs_disk_header);
466 err = vn_getxattr(vp, DECMPFS_XATTR_NAME, NULL, &attr_size, XATTR_NOSECURITY, decmpfs_ctx);
470 if (attr_size < sizeof(decmpfs_disk_header) || attr_size > MAX_DECMPFS_XATTR_SIZE) {
475 /* allocation includes space for the extra attr_size field of a compressed_header */
476 MALLOC(data, char *, attr_size + sizeof(hdr->attr_size), M_TEMP, M_WAITOK);
482 /* read the xattr into our buffer, skipping over the attr_size field at the beginning */
484 uio_addiov(attr_uio, CAST_USER_ADDR_T(data + sizeof(hdr->attr_size)), attr_size);
489 if (read_size != attr_size) {
494 hdr->attr_size = attr_size;
742 if (hdr->attr_size == sizeof(decmpfs_disk_header)) {
1714 if (hdr->uncompressed_size + sizeof(decmpfs_disk_header) != (uint64_t)hdr->attr_size) {
1729 if (hdr->uncompressed_size + sizeof(decmpfs_disk_header) != (uint64_t)hdr->attr_size) {