[PATCH] devfs-core: add writesize in mtd partition ioctl
Alexander Aring
alex.aring at googlemail.com
Tue Oct 23 05:00:00 EDT 2012
Add writesize in mtd partition MEMGETINFO ioctl.
Signed-off-by: Alexander Aring <alex.aring at gmail.com>
---
fs/devfs-core.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/fs/devfs-core.c b/fs/devfs-core.c
index 2788fe7..0d2f75a 100644
--- a/fs/devfs-core.c
+++ b/fs/devfs-core.c
@@ -136,6 +136,7 @@ static int partition_ioctl(struct cdev *cdev, int request, void *buf)
user->flags = cdev->mtd->flags;
user->size = cdev->mtd->size;
user->erasesize = cdev->mtd->erasesize;
+ user->writesize = cdev->mtd->writesize;
user->oobsize = cdev->mtd->oobsize;
user->mtd = cdev->mtd;
/* The below fields are obsolete */
--
1.8.0
More information about the barebox
mailing list