-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Illumos #4950 files sometimes can't be removed from a full filesystem #2784
Conversation
3a7a298
to
8be2e1f
Compare
…esystem Reviewed by: Adam Leventhal <adam.leventhal@delphix.com> Reviewed by: George Wilson <george.wilson@delphix.com> Reviewed by: Sebastien Roy <sebastien.roy@delphix.com> Reviewed by: Boris Protopopov <bprotopopov@hotmail.com> Approved by: Dan McDonald <danmcd@omniti.com> Ported-by: Richard Yao <richard.yao@clusterhq.com> Porting notes: 1. ZoL currently does not log discards to zvols, so the portion of this patch that modifies the discard logging to mark it as freeing space has been discarded. 2. may_delete_now had been removed from zfs_remove() in ZoL. It has been reintroduced. 3. We do not try to emulate vnodes, so the following lines are not valid on Linux: mutex_enter(&vp->v_lock); may_delete_now = vp->v_count == 1 && !vn_has_cached_data(vp); mutex_exit(&vp->v_lock); This has been replaced with: mutex_enter(&zp->z_lock); may_delete_now = atomic_read(&ip->i_count) == 1 && !(zp->z_is_mapped); mutex_exit(&zp->z_lock);
…esystem openzfs#2784 Reviewed by: Adam Leventhal adam.leventhal@delphix.com Reviewed by: George Wilson george.wilson@delphix.com Reviewed by: Sebastien Roy sebastien.roy@delphix.com Reviewed by: Boris Protopopov bprotopopov@hotmail.com Approved by: Dan McDonald danmcd@omniti.com Ported-by: Richard Yao richard.yao@clusterhq.com Porting notes: 1. ZoL currently does not log discards to zvols, so the portion of this patch that modifies the discard logging to mark it as freeing space has been discarded. may_delete_now had been removed from zfs_remove() in ZoL. It has been reintroduced.
marks the transaction as a net free, helpful if the pool is low on free space
…esystem openzfs#2784 Reviewed by: Adam Leventhal adam.leventhal@delphix.com Reviewed by: George Wilson george.wilson@delphix.com Reviewed by: Sebastien Roy sebastien.roy@delphix.com Reviewed by: Boris Protopopov bprotopopov@hotmail.com Approved by: Dan McDonald danmcd@omniti.com Ported-by: Richard Yao richard.yao@clusterhq.com Porting notes: 1. ZoL currently does not log discards to zvols, so the portion of this patch that modifies the discard logging to mark it as freeing space has been discarded. may_delete_now had been removed from zfs_remove() in ZoL. It has been reintroduced. https://illumos.org/issues/4950
…esystem openzfs#2784 Reviewed by: Adam Leventhal adam.leventhal@delphix.com Reviewed by: George Wilson george.wilson@delphix.com Reviewed by: Sebastien Roy sebastien.roy@delphix.com Reviewed by: Boris Protopopov bprotopopov@hotmail.com Approved by: Dan McDonald danmcd@omniti.com Ported-by: Richard Yao richard.yao@clusterhq.com Porting notes: 1. ZoL currently does not log discards to zvols, so the portion of this patch that modifies the discard logging to mark it as freeing space has been discarded. may_delete_now had been removed from zfs_remove() in ZoL. It has been reintroduced. https://illumos.org/issues/4950
…esystem openzfs#2784 Reviewed by: Adam Leventhal adam.leventhal@delphix.com Reviewed by: George Wilson george.wilson@delphix.com Reviewed by: Sebastien Roy sebastien.roy@delphix.com Reviewed by: Boris Protopopov bprotopopov@hotmail.com Approved by: Dan McDonald danmcd@omniti.com Ported-by: Richard Yao richard.yao@clusterhq.com Porting notes: 1. ZoL currently does not log discards to zvols, so the portion of this patch that modifies the discard logging to mark it as freeing space has been discarded. may_delete_now had been removed from zfs_remove() in ZoL. It has been reintroduced. https://illumos.org/issues/4950
…esystem openzfs#2784 Reviewed by: Adam Leventhal adam.leventhal@delphix.com Reviewed by: George Wilson george.wilson@delphix.com Reviewed by: Sebastien Roy sebastien.roy@delphix.com Reviewed by: Boris Protopopov bprotopopov@hotmail.com Approved by: Dan McDonald danmcd@omniti.com Ported-by: Richard Yao richard.yao@clusterhq.com Porting notes: 1. ZoL currently does not log discards to zvols, so the portion of this patch that modifies the discard logging to mark it as freeing space has been discarded. may_delete_now had been removed from zfs_remove() in ZoL. It has been reintroduced. https://illumos.org/issues/4950
@ryao refreshing this patch so that we'd be back in sync with illumos would be very helpful. This addresses a real user visible issue. |
#3629 [buildbot, cherry-pick to master] Illumos #4950 files sometimes can't be removed from a full filesystem (#2784) so that the newer buildbots + new tree can test it. This is the updated commit I'm using, so why not use the opportunity and make an updated pull-request out of it =) The only merge conflict was updated copyright comment |
Closing. Replaced by #3629. |
Reviewed by: Adam Leventhal adam.leventhal@delphix.com
Reviewed by: George Wilson george.wilson@delphix.com
Reviewed by: Sebastien Roy sebastien.roy@delphix.com
Reviewed by: Boris Protopopov bprotopopov@hotmail.com
Approved by: Dan McDonald danmcd@omniti.com
Ported-by: Richard Yao richard.yao@clusterhq.com
Porting notes:
modifies the discard logging to mark it as freeing space has been discarded.
reintroduced.