Lines Matching refs:err
277 ErrorLog("vnode_getattr err %d\n", error);
444 int err = 0;
456 err = ENOMEM;
466 err = vn_getxattr(vp, DECMPFS_XATTR_NAME, NULL, &attr_size, XATTR_NOSECURITY, decmpfs_ctx);
467 if (err != 0)
471 err = EINVAL;
478 err = ENOMEM;
486 err = vn_getxattr(vp, DECMPFS_XATTR_NAME, attr_uio, &read_size, XATTR_NOSECURITY, decmpfs_ctx);
487 if (err != 0)
490 err = EINVAL;
503 err = EINVAL;
510 err = ERANGE;
513 err = EINVAL;
519 if (err && (err != ERANGE)) {
520 DebugLog("err %d\n", err);
526 return err;
589 errno_t err = decmpfs_fetch_compressed_header(vp, cp, &hdr, 0);
590 if (err) {
594 err = 0;
603 err = validate(vp, decmpfs_ctx, hdr);
606 err = EIO;
609 err = 0;
615 if (err) {
616 DebugLog("decmpfs_validate_compressed_file ret %d, vp->v_flag %d\n", err, vp->v_flag);
619 return err;
990 int err = 0;
996 err = 0;
1001 err = EINVAL;
1010 err = 0;
1017 err = fetch(vp, decmpfs_ctx, hdr, offset, size, nvec, vec, bytes_read);
1019 if (err == 0) {
1031 err = ENOTSUP;
1036 return err;
1064 int err = 0;
1089 err = decmpfs_fetch_compressed_header(vp, cp, &hdr, 0);
1090 if (err != 0) {
1098 err = ENOTSUP;
1132 err = 0;
1135 err = decmpfs_fetch_uncompressed_data(vp, cp, hdr, uplPos, uplSize, 1, &vec, &did_read);
1137 if (err) {
1138 DebugLog("decmpfs_fetch_uncompressed_data err %d\n", err);
1177 if (err)
1178 ErrorLog("err %d\n", err);
1180 return err;
1190 int err = 0;
1224 err = cluster_copy_ubc_data(vp, uio, &countInt, 0);
1225 if (err != 0)
1241 err = decmpfs_fetch_compressed_header(vp, cp, &hdr, 0);
1242 if (err != 0) {
1246 err = ENOTSUP;
1310 err = EINVAL;
1319 err = EINVAL;
1326 err = EINVAL;
1334 err = decmpfs_fetch_uncompressed_data(vp, cp, hdr, curUplPos, curUplSize, 1, &vec, &did_read);
1335 if (err) {
1336 ErrorLog("decmpfs_fetch_uncompressed_data err %d\n", err);
1370 err = EINVAL;
1379 err = cluster_copy_upl_data(uio, upl, uplOff, &io_resid);
1382 if (err) {
1383 ErrorLog("cluster_copy_upl_data err %d\n", err);
1391 if (err) {
1405 if (err) {/* something went wrong */
1406 ErrorLog("err %d\n", err);
1407 return err;
1427 int err = decmpfs_fetch_compressed_header(vp, cp, &hdr, 0);
1428 if (err) {
1429 ErrorLog("decmpfs_fetch_compressed_header err %d\n", err);
1434 err = free_data(vp, decmpfs_ctx, hdr);
1437 err = 0;
1441 if (err != 0) {
1442 ErrorLog("decompressor err %d\n", err);
1447 err = vn_removexattr(vp, DECMPFS_XATTR_NAME, 0, decmpfs_ctx);
1448 if (err != 0) {
1454 return err;
1462 int err = 0;
1468 err = vnode_getattr(vp, &va, decmpfs_ctx);
1470 if (err != 0) {
1471 ErrorLog("vnode_getattr err %d\n", err);
1477 err = vnode_setattr(vp, &va, decmpfs_ctx);
1478 if (err != 0) {
1479 ErrorLog("vnode_setattr err %d\n", err);
1482 return err;
1490 int err = 0;
1514 err = 0;
1540 err = EINVAL;
1545 err = decmpfs_fetch_compressed_header(vp, cp, &hdr, 0);
1546 if (err != 0) {
1565 err = ENOMEM;
1571 err = ENOMEM;
1589 err = decmpfs_fetch_uncompressed_data(vp, cp, hdr, offset, vec.size, 1, &vec, &bytes_read);
1590 if (err != 0) {
1591 ErrorLog("decmpfs_fetch_uncompressed_data err %d\n", err);
1601 err = uio_addiov(uio_w, CAST_USER_ADDR_T(data), bytes_read);
1602 if (err != 0) {
1603 ErrorLog("uio_addiov err %d\n", err);
1604 err = ENOMEM;
1608 err = VNOP_WRITE(vp, uio_w, 0, decmpfs_ctx);
1609 if (err != 0) {
1611 ErrorLog("VNOP_WRITE err %d\n", err);
1618 if (err == 0) {
1621 err = EINVAL;
1626 if (err == 0) {
1628 err = VNOP_FSYNC(vp, MNT_WAIT, decmpfs_ctx);
1629 if (err != 0) {
1630 ErrorLog("VNOP_FSYNC err %d\n", err);
1635 if (err != 0) {
1637 ErrorLog("aborting decompress, err %d\n", err);
1641 ErrorLog("vnode_setsize err %d\n", error);
1653 err = decmpfs_free_compressed_data(vp, cp);
1654 if (err != 0) {
1655 ErrorLog("decmpfs_free_compressed_data err %d\n", err);
1662 err = 0;
1681 if (err != 0) {
1700 return err;
1712 int err = 0;
1715 err = EINVAL;
1719 return err;
1725 int err = 0;
1730 err = EINVAL;
1750 if ((bytes_read) && (err == 0))
1754 return err;