I'm running Kernel 2.2.14 with the ReiserFS and crypto patches.
I'm trying to use raidtools-0.90 to build a raid5 set.

The configuration file is fine, as this works on another similarly
configured machine (with 2.2.12 and no ReiserFS).

I'm getting (after adding some extra debugging to mkraid.c) errno == 22
after ioctls at ~ line 56:

#if 0
    printcfg(cfg);
#endif
    file = open(cfg->md_name,O_RDONLY);
    if (!file)
    {
            fprintf(stderr, "open returned errno as %d on line %d.\n",
errno, __LINE__);
        return 1;
    }
    ret = ioctl(file, SET_ARRAY_INFO, (unsigned long)&cfg->array.param);

    if (ret)
    {   /* Getting errno == 22 here ^^^^ */
            fprintf(stderr, "ioctl returned errno with %d on line
%d.\n", errno, __LINE__)          >;
            close(file);
        return 1;
    }

Any thoughts?  And where can I find err # 22 ... or is it not defined
yet?

--
Michael T. Babcock

Reply via email to