Re: [PATCH RESEND] dm-raid: Do not call BUG() in __rdev_sectors()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 06/30/2017 09:33 AM, Johannes Thumshirn wrote:
On Thu, Jun 29, 2017 at 04:09:38PM +0200, Heinz Mauelshagen wrote:
Hi Hannes,

thanks for your patch.

BUG() is intentional there to catch what I've already fixed with patch

" [PATCH] dm raid: fix oops on upgrading to extended superblock
format"

on 06/23/2017.

IOW: returning 0 is never right and would hide bugs like that one fixed.
OTOH panicing systems to catch errors which could've been mitigted is
never right as well. Not a single time. Never. BUG() and BUG_ON() are not
for error handling.

Point taken. We'll change that.



--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel



[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux