Is it possible to implement my specific partition table on linux? [on hold]











up vote
-1
down vote

favorite












EDITION



Ok sorry if my question is confusing.



I am using Ubuntu with Linux sources: linux-4.15.0



In my project, I have a specific device, the partitioning of this device is not editable and it requires a custom partition tables which need to be located at
the end of the device with custom partition structures.



I searched the Linux kernel how to put my partition table so that linux can, when it detects my device, put me in /dev/sbd1 ... according to the number of present partitions.



I would like to create regions for these partitions. But when I search where I can parse my specific partition, I notice that I have to modify the kernel
sources(/block/partitions/check.c " *static int (*check_part)(struct parsed_partitions*)*").
There is no means to register a new partition parser callback as the array is statically defined against kernel configuration.
I do not want to change the kernel sources (adding my partition table parser and modifying the array)... I would like to provide instead a mechanism to detect this specific partition tables using a loadable module. (so that the kernel sources are not directly impacted)



I hope I should not add my custom block device driver ...



So, is it possible to implement my specific partition table ?



Thank you










share|improve this question









New contributor




Margaux K is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











put on hold as off-topic by Rui F Ribeiro, Jeff Schaller, Christopher, RalfFriedl, n.st Dec 4 at 23:29



  • This question does not appear to be about Unix or Linux within the scope defined in the help center.

If this question can be reworded to fit the rules in the help center, please edit the question.









  • 2




    This is all a bit confusing… Why does your filesystem have its own partition table? What exactly are you trying to implement (file system/partitioning scheme/device driver/multiple of the above) and what/who are you developing this for?
    – n.st
    Dec 4 at 23:29















up vote
-1
down vote

favorite












EDITION



Ok sorry if my question is confusing.



I am using Ubuntu with Linux sources: linux-4.15.0



In my project, I have a specific device, the partitioning of this device is not editable and it requires a custom partition tables which need to be located at
the end of the device with custom partition structures.



I searched the Linux kernel how to put my partition table so that linux can, when it detects my device, put me in /dev/sbd1 ... according to the number of present partitions.



I would like to create regions for these partitions. But when I search where I can parse my specific partition, I notice that I have to modify the kernel
sources(/block/partitions/check.c " *static int (*check_part)(struct parsed_partitions*)*").
There is no means to register a new partition parser callback as the array is statically defined against kernel configuration.
I do not want to change the kernel sources (adding my partition table parser and modifying the array)... I would like to provide instead a mechanism to detect this specific partition tables using a loadable module. (so that the kernel sources are not directly impacted)



I hope I should not add my custom block device driver ...



So, is it possible to implement my specific partition table ?



Thank you










share|improve this question









New contributor




Margaux K is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











put on hold as off-topic by Rui F Ribeiro, Jeff Schaller, Christopher, RalfFriedl, n.st Dec 4 at 23:29



  • This question does not appear to be about Unix or Linux within the scope defined in the help center.

If this question can be reworded to fit the rules in the help center, please edit the question.









  • 2




    This is all a bit confusing… Why does your filesystem have its own partition table? What exactly are you trying to implement (file system/partitioning scheme/device driver/multiple of the above) and what/who are you developing this for?
    – n.st
    Dec 4 at 23:29













up vote
-1
down vote

favorite









up vote
-1
down vote

favorite











EDITION



Ok sorry if my question is confusing.



I am using Ubuntu with Linux sources: linux-4.15.0



In my project, I have a specific device, the partitioning of this device is not editable and it requires a custom partition tables which need to be located at
the end of the device with custom partition structures.



I searched the Linux kernel how to put my partition table so that linux can, when it detects my device, put me in /dev/sbd1 ... according to the number of present partitions.



I would like to create regions for these partitions. But when I search where I can parse my specific partition, I notice that I have to modify the kernel
sources(/block/partitions/check.c " *static int (*check_part)(struct parsed_partitions*)*").
There is no means to register a new partition parser callback as the array is statically defined against kernel configuration.
I do not want to change the kernel sources (adding my partition table parser and modifying the array)... I would like to provide instead a mechanism to detect this specific partition tables using a loadable module. (so that the kernel sources are not directly impacted)



I hope I should not add my custom block device driver ...



So, is it possible to implement my specific partition table ?



Thank you










share|improve this question









New contributor




Margaux K is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











EDITION



Ok sorry if my question is confusing.



I am using Ubuntu with Linux sources: linux-4.15.0



In my project, I have a specific device, the partitioning of this device is not editable and it requires a custom partition tables which need to be located at
the end of the device with custom partition structures.



I searched the Linux kernel how to put my partition table so that linux can, when it detects my device, put me in /dev/sbd1 ... according to the number of present partitions.



I would like to create regions for these partitions. But when I search where I can parse my specific partition, I notice that I have to modify the kernel
sources(/block/partitions/check.c " *static int (*check_part)(struct parsed_partitions*)*").
There is no means to register a new partition parser callback as the array is statically defined against kernel configuration.
I do not want to change the kernel sources (adding my partition table parser and modifying the array)... I would like to provide instead a mechanism to detect this specific partition tables using a loadable module. (so that the kernel sources are not directly impacted)



I hope I should not add my custom block device driver ...



So, is it possible to implement my specific partition table ?



Thank you







kernel-modules partition-table






share|improve this question









New contributor




Margaux K is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Margaux K is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 2 days ago





















New contributor




Margaux K is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Dec 4 at 16:09









Margaux K

11




11




New contributor




Margaux K is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Margaux K is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Margaux K is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




put on hold as off-topic by Rui F Ribeiro, Jeff Schaller, Christopher, RalfFriedl, n.st Dec 4 at 23:29



  • This question does not appear to be about Unix or Linux within the scope defined in the help center.

If this question can be reworded to fit the rules in the help center, please edit the question.




put on hold as off-topic by Rui F Ribeiro, Jeff Schaller, Christopher, RalfFriedl, n.st Dec 4 at 23:29



  • This question does not appear to be about Unix or Linux within the scope defined in the help center.

If this question can be reworded to fit the rules in the help center, please edit the question.








  • 2




    This is all a bit confusing… Why does your filesystem have its own partition table? What exactly are you trying to implement (file system/partitioning scheme/device driver/multiple of the above) and what/who are you developing this for?
    – n.st
    Dec 4 at 23:29














  • 2




    This is all a bit confusing… Why does your filesystem have its own partition table? What exactly are you trying to implement (file system/partitioning scheme/device driver/multiple of the above) and what/who are you developing this for?
    – n.st
    Dec 4 at 23:29








2




2




This is all a bit confusing… Why does your filesystem have its own partition table? What exactly are you trying to implement (file system/partitioning scheme/device driver/multiple of the above) and what/who are you developing this for?
– n.st
Dec 4 at 23:29




This is all a bit confusing… Why does your filesystem have its own partition table? What exactly are you trying to implement (file system/partitioning scheme/device driver/multiple of the above) and what/who are you developing this for?
– n.st
Dec 4 at 23:29















active

oldest

votes






















active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes

Popular posts from this blog

サソリ

広島県道265号伴広島線

Setup Asymptote in Texstudio