s390 - dasd with devfs

s390 - dasd with devfs

Post by Bastian Blan » Wed, 26 Feb 2003 20:10:13



hi folks

this patch fixes s390 dasd with devfs

bastian

diff -ru linux-2.5.63.orig/drivers/s390/block/dasd.c linux-2.5.63/drivers/s390/block/dasd.c
--- linux-2.5.63.orig/drivers/s390/block/dasd.c 2003-02-24 20:05:31.000000000 +0100

        DBF_EVENT(DBF_EMERG, "%s", "debug area created");

-       if (devfs_mk_dir(NULL, "dasd", NULL)) {
+       if (!devfs_mk_dir(NULL, "dasd", NULL)) {
                DBF_EVENT(DBF_ALERT, "%s", "no devfs");
                rc = -ENOSYS;
                goto failed;

--
Men of peace usually are [brave].
                -- Spock, "The Savage Curtain", stardate 5906.5
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

s390 - dasd with devfs

Post by Bastian Blan » Wed, 26 Feb 2003 21:00:14



> this patch fixes s390 dasd with devfs

if forgot a fix and include an updated patch

bastian

diff -ur linux-2.5.63.orig/drivers/s390/block/dasd.c linux-2.5.63/drivers/s390/block/dasd.c
--- linux-2.5.63.orig/drivers/s390/block/dasd.c 2003-02-24 20:05:31.000000000 +0100

        DBF_EVENT(DBF_EMERG, "%s", "debug area created");

-       if (devfs_mk_dir(NULL, "dasd", NULL)) {
+       if (!devfs_mk_dir(NULL, "dasd", NULL)) {
                DBF_EVENT(DBF_ALERT, "%s", "no devfs");
                rc = -ENOSYS;
                goto failed;
diff -ur linux-2.5.63.orig/drivers/s390/block/dasd_genhd.c linux-2.5.63/drivers/s390/block/dasd_genhd.c
--- linux-2.5.63.orig/drivers/s390/block/dasd_genhd.c   2003-02-24 20:05:39.000000000 +0100

        gdp->major = mi->major;
        gdp->first_minor = index << DASD_PARTN_BITS;
        gdp->fops = &dasd_device_operations;
+       gdp->flags |= GENHD_FL_DEVFS;

        /*
         * Set device name.
--
You're dead, Jim.
                -- McCoy, "The Tholian Web", stardate unknown
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

s390 - dasd with devfs

Post by Martin Schwidefsk » Sat, 01 Mar 2003 11:50:10


Quote:> > this patch fixes s390 dasd with devfs

> if forgot a fix and include an updated patch

Added this version of the fix to our internal CVS.
It will be included in the next update.

Thanks & blue skies,
   Martin

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/