Re: [PATCH 03/10] FIX: Add error code for raid_disks set

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

 



On Thu, Dec 2, 2010 at 12:19 AM, Adam Kwolek <adam.kwolek@xxxxxxxxx> wrote:
> If error occurs mdadm exits with no information.
>

Unless I am missing another patch all return paths currently have an
error message?

...
        if (!ent) {
                fprintf(stderr, Name ": unable to read /proc/mdstat\n");
                return -1;
        }
...
       if (rv) {
                fprintf(stderr, Name
                        ": failed to initiate container reshape%s%s\n",
                        err ? ": " : "", err ? strerror(err) : "");
                return rv;
        }

        return changed;


...and 'changed' is never negative.

--
Dan
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux