Lines Matching defs:xattr
2227 /* Overwrite "length" xattr. */
2271 /* Set internal xattr */
2278 /* try to get public xattr with same name */
2303 /* try to get internal xattr through public call */
2321 char *xattr;
2329 xattr = calloc(xattr_length, sizeof(char));
2330 SPDK_CU_ASSERT_FATAL(xattr != NULL);
2331 rc = spdk_blob_set_xattr(blob, "large_xattr", xattr, xattr_length);
2332 free(xattr);
2581 /* Set SNAPSHOT_PENDING_REMOVAL xattr */
2605 /* SNAPSHOT_PENDING_REMOVAL xattr should be removed during load */
2609 /* Set SNAPSHOT_PENDING_REMOVAL xattr again */
2621 /* Remove parent_id from blob by removing BLOB_SNAPSHOT xattr */
3651 /* Set a fairly large xattr on both blobs to eat up
3813 /* Put xattr that fits exactly single page.
3815 * First is flags and smaller xattr, second the large xattr,
3820 char *xattr = calloc(xattr_length, sizeof(char));
3821 SPDK_CU_ASSERT_FATAL(xattr != NULL);
3822 rc = spdk_blob_set_xattr(blob, "large_xattr", xattr, xattr_length);
3823 free(xattr);
4079 /* Set the xattr to check if flags are serialized
4259 char *xattr;
4299 /* Try xattr exceeding maximum length of descriptor in single page */
4302 xattr = calloc(xattr_length, sizeof(char));
4303 SPDK_CU_ASSERT_FATAL(xattr != NULL);
4304 rc = spdk_blob_set_xattr(blob, "large_xattr", xattr, xattr_length);
4305 free(xattr);
5228 /* Just save the blobid as an xattr for testing purposes. */
7901 char *xattr;
7918 * This should be consistent after removing xattr. */
7923 /* Add xattr with maximum length of descriptor to exceed single metadata page. */
7926 xattr = calloc(xattr_length, sizeof(char));
7927 SPDK_CU_ASSERT_FATAL(xattr != NULL);
7929 rc = spdk_blob_set_xattr(blob, "large_xattr", xattr, xattr_length);
7935 /* Save the amount of md pages used after adding the large xattr */
7940 /* Add xattr to a blob and sync it. While sync is occurring, remove the xattr and sync again.
7942 * Expectation is that after second sync completes no xattr is saved in metadata. */
7946 rc = spdk_blob_set_xattr(blob, "large_xattr", xattr, xattr_length);
7953 * Verify that blob takes up enough of md_pages to store the xattr. */
7968 /* Reload bs and re-open blob to verify that xattr was not persisted. */
7981 rc = spdk_blob_get_xattr_value(blob, "large_xattr", (const void **)&xattr, &xattr_length);
7990 free(xattr);