mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-06-01 11:44:16 +03:00
OpenZFS 7301 - zpool export -f should be able to interrupt file freeing
Authored by: Alek Pinchuk <alek@nexenta.com> Reviewed by: Matthew Ahrens <mahrens@delphix.com> Reviewed by: Sanjay Nadkarni <sanjay.nadkarni@nexenta.com> Reviewed by: Saso Kiselkov <saso.kiselkov@nexenta.com> Reviewed by: John Kennedy <john.kennedy@delphix.com> Approved by: Gordon Ross <gordon.ross@nexenta.com> Reviewed-by: Tim Chase <tim@chase2k.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Ported-by: George Melikov <mail@gmelikov.ru> OpenZFS-issue: https://www.illumos.org/issues/7301 OpenZFS-commit: https://github.com/openzfs/openzfs/commit/eb72182 Closes #5680
This commit is contained in:
committed by
Brian Behlendorf
parent
cc9bb3e58e
commit
a08abc1bb3
@@ -644,8 +644,8 @@ zfs_rmnode(znode_t *zp)
|
||||
error = dmu_free_long_range(os, zp->z_id, 0, DMU_OBJECT_END);
|
||||
if (error) {
|
||||
/*
|
||||
* Not enough space. Leave the file in the unlinked
|
||||
* set.
|
||||
* Not enough space or we were interrupted by unmount.
|
||||
* Leave the file in the unlinked set.
|
||||
*/
|
||||
zfs_znode_dmu_fini(zp);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user