Guest User

Untitled

a guest
May 2nd, 2014
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. Index: sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c
  2. ===================================================================
  3. --- sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c (wersja 248767)
  4. +++ sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c (kopia robocza)
  5. @@ -1837,7 +1837,18 @@
  6. &xattr_obj, sizeof (xattr_obj));
  7. if (error == 0 && xattr_obj) {
  8. error = zfs_zget(zfsvfs, xattr_obj, &xzp);
  9. - ASSERT3U(error, ==, 0);
  10. + if (error != 0) {
  11. + printf("%s: zfs_zget(%s, %ju) returned %d\n",
  12. + __func__, zfsvfs->z_vfs->mnt_stat.f_mntfromname,
  13. + (uintmax_t)xattr_obj, error);
  14. + zfs_dirent_unlock(dl);
  15. + VN_RELE(vp);
  16. + if (realnmp)
  17. + pn_free(realnmp);
  18. + dmu_tx_abort(tx);
  19. + ZFS_EXIT(zfsvfs);
  20. + return (error);
  21. + }
  22. dmu_tx_hold_sa(tx, zp->z_sa_hdl, B_TRUE);
  23. dmu_tx_hold_sa(tx, xzp->z_sa_hdl, B_FALSE);
  24. }
Advertisement
Add Comment
Please, Sign In to add comment