Ummm:
-- stuff ASCII digits into u64 (or u32, or whatever)
-- if (still more digits)
-- printk("partition too big to mount!\n")
-- return error
How hard is that?
> trailing garbage,
Don't write garbage into your partition table.
> encouragement of assumptions about the maximum size...
> is that a %d or a %llu or what?
See above. Use leading '-' for negative numbers. ASCII has no
2's complement ambiguity issues.
miket
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/