> The bch driver supports an IOCTL called BIOC_GEOMETRY that will return
the geometry of the underlying block device.
Yes, I understand. But user application handle all files the same way using
path and
int stat(FAR const char *path, FAR struct stat *buf) function.
I've made a pull request
It looks like I overthink and the best and simple solution is just to use
for all block devices the block_operation function of inode to get geometry:
inode->u.i_bops->geometry
I miss that bchlib is already use this function to fill bchlib_s structure.
Will try this approach now.
The bch
It looks like I overthink and the best and simple solution is just to use
for all block devices the block_operation function of inode to get geometry:
inode->u.i_bops->geometry
I miss that bchlib is already use this function to fill bchlib_s structure.
Will try this approach now.
пн, 25 мая
Hi,
I wonder how to get size of character device that referenced mtd partition
block device? As I see bchlib_setup in drivers/bch/bchlib_setup.c fills
block geometry info to bchlib_s structure (number of sectors and sector
size) that then stored as i_private to inode.
This inode is part of the