[ENBD] /proc/nbdinfo

Peter T. Breuer ptb at it.uc3m.es
Wed Jan 7 08:37:30 MST 2004


"Also sprach Peter T. Breuer:"
> It's "reset=1".

BTW, you can probably get rid of the "=1" if you change the bit in
getarg() that says

    if (*buffer != '=') {
        return -1;
    }


to


    if (*buffer != '=') {
        // no =, assume =1 is intended
        if (*buffer == '\n' || !*buffer) {
            *i = 1;
            return 1;
        }
        // if got funny trailing chars, error
        return -1;
    }

and cross your fingers.

Peter


More information about the ENBD mailing list