[PATCH v2] mtd: cmdlinepart: fix the wrong partitions number when truncating occurs

Artem Bityutskiy dedekind1 at gmail.com
Wed Aug 29 04:16:05 EDT 2012


On Sun, 2012-08-26 at 09:06 +0300, Shmulik Ladkani wrote:
> root	100m at 0
> kernel	100m at 100m
> rootfs	800m at 200m (truncated)
> user	0 at 1g (truncated)
> rest	0 at 1g

Who would benefit from having those 2 0-sized partitions and how? How
many users/scripts would be confused by this (these 2 ghost partitions
would be visible in /proc/mtd and sysfs)? How much RAM would we spend
for creating sysfs files and directories for these ghost partitions
(note, one sysfs file costs a couple KiB I thing, because 'sizeof
(struct inode)').

While you suggestion is clever, do we really benefit from this?

-- 
Best Regards,
Artem Bityutskiy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/linux-mtd/attachments/20120829/be524221/attachment-0001.sig>


More information about the linux-mtd mailing list