2.6 partition support driver methods

From: Mukund JB. (mukundjb_at_esntechnologies.co.in)
Date: 08/03/05

  • Next message: Andi Kleen: "Re: [PATCH 00/14] GFS"
    Date:	Wed, 3 Aug 2005 19:53:01 +0530
    To: "linux-kernel-Mailing-list" <linux-kernel@vger.kernel.org>
    
    

    Dear all,

    I have a driver implemented to support single partition in 2.6 kernels.
    I have a requirement of supporting multiple partitions in my block driver to support flash media devices.
    I have modified the alloc_disk(1) to alloc_dosk(16) to support a MAX of 16 partitions. This way I have conveyed it to the kernel that 16 is my max n/o partitions. I also made a call to add_disk().

    Do I need to handle any thing in the request function to handle read/writes to the device partitions?
    Please suggest me the required implementation that I may be missing?

    Regards,
    Mukund Jampala
     

    -
    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: Andi Kleen: "Re: [PATCH 00/14] GFS"

    Relevant Pages

    • Re: SCSI DVD-RAM partitions
      ... > While adding support for partitions on sr is trivial it has a huge ... in order to support partitions. ... DVD-RAM media / SCSI removable devices": ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: SCSI DVD-RAM partitions
      ... >>While adding support for partitions on sr is trivial it has a huge ... > in order to support partitions. ... > having the partitions work out of the box in the expected way. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • disable partitioning!
      ... I want to know how to indicate to the filesystem that our block driver does not support partitions. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: SCSI DVD-RAM partitions
      ... > nodes (or at least directly mountable without the losetup hack)? ... While adding support for partitions on sr is trivial it has a huge ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Kernel panic while boot, possibilities to get box up again
      ... sure, we will need them sooner or later, and I only want to reboot once. ... the support what's up. ... would it be possible to keep the partitions ... I'm sure you're familiar with your mount points and sizes you give your ...
      (freebsd-questions)