xiaoxiang781216 commented on a change in pull request #2861: URL: https://github.com/apache/incubator-nuttx/pull/2861#discussion_r577617833
########## File path: include/nuttx/fs/fs.h ########## @@ -206,11 +206,11 @@ struct file_operations #ifndef CONFIG_DISABLE_MOUNTPOINT struct 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 */ - size_t geo_nsectors; /* Number of sectors on the device */ - size_t geo_sectorsize; /* Size of one sector */ + 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 */ + uint32_t geo_nsectors; /* Number of sectors on the device */ + uint32_t geo_sectorsize; /* Size of one sector */ Review comment: @codebje if we just change these two fields, how can eZ80 read the file at the end of SD card if other FS functions still use off_t/size_t? Can we change size_t to 32bit on eZ80 instead? ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org