[PATCH] Device-Mapper 5/9

From: Kevin Corry (kevcorry_at_us.ibm.com)
Date: 04/12/04

  • Next message: Kevin Corry: "[PATCH] Device-Mapper 7/9"
    To: LKML <linux-kernel@vger.kernel.org>, Andrew Morton <akpm@osdl.org>
    Date:	Mon, 12 Apr 2004 09:18:48 -0500
    
    

    Log an error if the target has unknown target type, or zero length.

    --- diff/drivers/md/dm-table.c 2004-04-09 09:40:14.000000000 -0500
    +++ source/drivers/md/dm-table.c 2004-04-09 09:42:20.000000000 -0500
    @@ -663,12 +663,14 @@
     
             if (!len) {
                     tgt->error = "zero-length target";
    + DMERR(": %s\n", tgt->error);
                     return -EINVAL;
             }
     
             tgt->type = dm_get_target_type(type);
             if (!tgt->type) {
                     tgt->error = "unknown target type";
    + DMERR(": %s\n", tgt->error);
                     return -EINVAL;
             }
     
    @@ -705,7 +707,7 @@
             return 0;
     
      bad:
    - printk(KERN_ERR DM_NAME ": %s\n", tgt->error);
    + DMERR(": %s\n", tgt->error);
             dm_put_target_type(tgt->type);
             return r;
     }
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Kevin Corry: "[PATCH] Device-Mapper 7/9"

    Relevant Pages

    • Re: deadlocks caused by ext3/reiser dirty_inode calls during do_mmap_pgoff
      ... The patch tries to fix both reiserfs and generic_file_write. ... int status; ... * returns zero on success, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [RFC 2.6.11-rc2-mm2 7/7] mm: manual page migration -- sys_page_migrate
      ... Are the usual kill-like permissions sufficient? ... In the following routine, tighten up some vertical spacing, ... migrated on success, not zero. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: New Linux Development Model
      ... > I concur, ipw2200 is also fully functional here. ... Given that using recent firmware and drive software works and stock ... While an unsigned integer can never be negative, it can be less than zero ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH][3/6]Interface for copying the dump pages
      ... If you want to zero a userspace page, ... If it shouldn't be moved and really is isolated to the mem.c driver, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re:[MOUSE] Alias for /dev/psaux
      ... The extended psmouse detection code will try different things, ... thing in particular is that the Logitech magic ID matching sets the ... resolution to zero, while the IntelliMouse thing sets the rate to 80. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)