aboutsummaryrefslogtreecommitdiff
path: root/mkfs.jffs2.c
AgeCommit message (Collapse)Author
2007-12-20mkfs.jffs2: Set mkfs.jffs2 page size runtime instead of fixedRicard Wanderlof
This patch reads the default PAGE_SIZE from sysconf(), i.e. the system mkfs.jffs2 is running on, instead of just setting it to 4096 (which of course is valid for most systems but not all). This is useful if mkfs.jffs2 is running on the target system, e.g. to create a backup image during firmware upgrade, so that the page size does not have to be set explicitly using a command line parameter. The --pagesize option is supported just as before. If the user has not set the page size explicitly with --pagesize, and the system page size is anything other than 4096, warn the user that an unusual page size is being used, since this behavior is different from before. Signed-off-by Ricard Wanderlöf <ricardw@axis.com> . Signed-off-by: Josh Boyer <jwboyer@gmail.com>
2007-12-14mkfs.jffs2.c: use rbtrees for hardlink trackingDavid Woodhouse
I just couldn't live with myself. Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2007-12-14mkfs.jffs2.c: detect hardlinksDavid Woodhouse
... with the stupidest possible algorithm for storing them and looking them up. Optimising that is simple enough, but left as an exercise for the user. This is userspace, after all. It's not as if I care. Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2007-12-14mkfs.jffs2: use separate ino field in struct filesystem_entry for jffs2 ino#David Woodhouse
...because when we support hard links we'll want to preserve the original inode numbers... Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2007-08-03Increment mkfs.jffs2 version numberv1.1.0Josh Boyer
Several change have gone into mkfs.jffs2 since we switch from CVS, but the version number never got incremented. Bump the version number up so people can distinguish between older and newer versions. Signed-off-by: Josh Boyer <jwboyer@gmail.com>
2006-11-15Patch from KaiGai Kohei to enable building without xattr supportKaiGai Kohei
Signed-off-by: Josh Boyer <jwboyer@gmail.com>
2006-10-09Fixup whitespaceJosh Boyer
Signed-off-by: Josh Boyer <jwboyer@gmail.com>
2006-09-18Report compressed file sizes (including node headers) in mkfs.jffs2 stats.Daniel P. Berrange
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2006-08-07Add xseqno into jffs2_raw_xref on mkfs.jffs2KaiGai Kohei
Signed-off-by: KaiGai Kohei <kaigai@ak.jp.nec.com> Signed-off-by: Josh Boyer <jwboyer@gmail.com>
2006-05-14Remove XATTR struct typedefsDavid Woodhouse
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2006-05-06Add XATTR support to mkfs.jffs2David Woodhouse
Since this is optional, it might as well go in immediately.
2006-04-11Fix cbuf free properly.David Woodhouse
Noted by Dan Berrange. Signed-off-by: Josh Boyer <jwboyer@gmail.com>
2006-04-11Fix memory leak in write_regular_file()David Woodhouse
Signed-off-by: Josh Boyer <jwboyer@gmail.com>
2006-04-11- Update utils to build from in tree include filesJosh Boyer
- Revert any ebh stuff for now Signed-off-by: Josh Boyer <jwboyer@gmail.com>
2006-04-11Initial commitDavid Woodhouse