You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2021/08/11 14:02:29 UTC
[GitHub] [incubator-nuttx] xiaoxiang781216 edited a comment on pull request #4320: fs: Add model field to geometry and mtd_geometry_s
xiaoxiang781216 edited a comment on pull request #4320:
URL: https://github.com/apache/incubator-nuttx/pull/4320#issuecomment-896853457
> I agree that the model information may be useful, but is it correct to add it to geometry?
Some exist fields is already not relate to geometry:):
```
bool geo_available; /* true: The device is available */
bool geo_mediachanged; /* true: The media has changed since last query */
bool geo_writeenabled; /* true: It is okay to write to this device */
```
> It will be a bit strange for it to be there while the struct is named `geometry`.
>
> On the long run, I think the geometry struct could be refactored to be more than simply geometry details, and carry general low level details of the MTD.
>
> So, if that's the idea, for compatibility purposes this refactor could be done in two phases:
>
> 1. Add all the MTD low-level info into the geometry structure (e.g. erase state, model, technology) -> compatibility maintained.
It's a reasonable approach.
> 2. Rename the geometry struct and its interfaces (e.g. ioctl commands) -> breaking change.
Could be too.
--
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: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org