• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/src/router/squashfs-4.2/

Lines Matching refs:xattr

26  * Common xattr read code shared between mksquashfs and unsquashfs
45 #include "xattr.h"
132 * construct the xattr_list entry from the fs xattr, including
135 static int read_xattr_entry(struct xattr_list *xattr,
150 xattr->full_name = malloc(len + entry->size + 1);
151 if(xattr->full_name == NULL) {
155 memcpy(xattr->full_name, prefix_table[i].prefix, len);
156 memcpy(xattr->full_name + len, name, entry->size);
157 xattr->full_name[len + entry->size] = '\0';
158 xattr->name = xattr->full_name + len;
159 xattr->size = entry->size;
160 xattr->type = type;
167 * Read and decompress the xattr id table and the xattr metadata.
182 * Read xattr id table, containing start of xattr metadata and the
193 * Allocate and read the index to the xattr id table metadata
214 * Allocate enough space for the uncompressed xattr id table, and
220 ERROR("Failed to allocate xattr id table\n");
228 TRACE("Read xattr id table block %d, from 0x%llx, length "
231 ERROR("Failed to read xattr id table block %d, "
239 * Read and decompress the xattr metadata
241 * Note the first xattr id table metadata block is immediately after
242 * the last xattr metadata block, so we can use index[0] to work out
243 * the end of the xattr metadata
251 ERROR("Failed to realloc xattr data\n");
265 TRACE("Read xattr block %d, length %d\n", i, length);
267 ERROR("Failed to read xattr block %d\n", i);
272 /* swap if necessary the xattr id entries */
292 * Construct and return the list of xattr name:value pairs for the passed xattr
306 start = SQUASHFS_XATTR_BLK(xattr_ids[i].xattr) + xattr_table_start;
307 offset = SQUASHFS_XATTR_OFFSET(xattr_ids[i].xattr);
332 TRACE("get_xattr: xattr %d, type %d, size %d, name %s\n", j,
336 long long xattr;
340 SQUASHFS_SWAP_LONG_LONGS(&xattr, xptr, 1);
341 xptr += sizeof(xattr);
342 start = SQUASHFS_XATTR_BLK(xattr) + xattr_table_start;
343 offset = SQUASHFS_XATTR_OFFSET(xattr);
353 TRACE("get_xattr: xattr %d, vsize %d\n", j, val.vsize);