xiaoxiang781216 commented on pull request #4333:
URL: https://github.com/apache/incubator-nuttx/pull/4333#issuecomment-898207606


   > > The problem is where to put the fallback code.
   > 
   > But currently there is no fallback to the `*IOC_GEOMETRY` commands either. 
Isn't it mandatory for every MTD and block device to implement this command? 
`BIOC_PARTINFO` could follow the same approach. After all, any MTD or block 
device can be partitioned.
   > 
   
   Yes, it's another solution. But there are many block/mtd driver to update.
   
   > > Yes, many place need change MTDIOC_GEOMETRY(block_operations::geometry) 
to BIOC_PARTINFO.
   > 
   
   Once this first item is done, it's easy to revert the geometry hook in 
partition driver and query the info through BIOC_PARTINFO.
   
   > Yes. This will probably be the solution for majority of use cases. The 
application is hardly interested in the physical characteristics of the device.
   
   Yes, I think so.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to