Skip to contentSkip to conversation

devfs-core: add writesize in mtd partition ioctl

PATCH In review Alexander Aring 2 participants 2 messages Oct 23, 2012 – Oct 24, 2012 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 devfs-core: add writesize in mtd partition ioctl

Add writesize in mtd partition MEMGETINFO ioctl.

---
 fs/devfs-core.c | 1 +
 1 file changed, 1 insertion(+)
fs/devfs-core.c +1 -0
index 2788fe7..0d2f75a 100644
@@ -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 */
Signature · 7 lines
1.8.0


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#1 lore raw
Quoted 3 lines · Alexander Aring

Add writesize in mtd partition MEMGETINFO ioctl.

Just checked, we already have this one.

Sascha

Quoted 25 lines
---
 fs/devfs-core.c | 1 +
 1 file changed, 1 insertion(+)
fs/devfs-core.c +1 -0
index 2788fe7..0d2f75a 100644
@@ -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 */
Signature · 7 lines
1.8.0


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox