Skip to content

Commit

Permalink
Remove specific stuff for genext2fs.
Browse files Browse the repository at this point in the history
Actually project provide another utility.
  • Loading branch information
Frediano Ziglio committed Feb 10, 2014
1 parent 616b14d commit 32de662
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 49 deletions.
2 changes: 1 addition & 1 deletion Makefile.am
@@ -1,6 +1,6 @@
bin_PROGRAMS = fillextfs bin_PROGRAMS = fillextfs
fillextfs_SOURCES = fillextfs.c fillextfs_SOURCES = fillextfs.c
fillextfs_LDADD = -lext2fs fillextfs_LDADD = -lext2fs
man_MANS = genext2fs.8 man_MANS = fillextfs.8
EXTRA_DIST = $(man_MANS) test-gen.lib test-mount.sh test.sh device_table.txt m4/ac_func_scanf_can_malloc.m4 m4/ac_func_snprintf.m4 EXTRA_DIST = $(man_MANS) test-gen.lib test-mount.sh test.sh device_table.txt m4/ac_func_scanf_can_malloc.m4 m4/ac_func_snprintf.m4
TESTS = test.sh TESTS = test.sh
9 changes: 2 additions & 7 deletions README
@@ -1,10 +1,5 @@
genext2fs generates an ext2 filesystem as a normal (non-root) user. fillextfs populate an ext filesystem as a normal (non-root) user.
It does not require you to mount the image file to copy files on it, It does not require you to mount the image file to copy files on it,
nor does it require that you become the superuser to make device nodes. nor does it require that you become the superuser to make device nodes.


http://genext2fs.sourceforge.net/ See the included INSTALL file for instructions on installing fillextfs.

Please use the genext2fs-devel@lists.sourceforge.net mailing list to
contact the developers and/or report bugs.

See the included INSTALL file for instructions on installing genext2fs.
49 changes: 11 additions & 38 deletions genext2fs.8 → fillextfs.8
Expand Up @@ -2,7 +2,7 @@
.\" First parameter, NAME, should be all caps .\" First parameter, NAME, should be all caps
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
.\" other parameters are allowed: see man(7), man(1) .\" other parameters are allowed: see man(7), man(1)
.TH GENEXT2FS 8 "August 19, 2006" .TH GENEXT2FS 8 "October 15, 2013"
.\" Please adjust this date whenever revising the manpage. .\" Please adjust this date whenever revising the manpage.
.\" .\"
.\" Some roff macros, for reference: .\" Some roff macros, for reference:
Expand All @@ -16,30 +16,19 @@
.\" .sp <n> insert n+1 empty lines .\" .sp <n> insert n+1 empty lines
.\" for manpage-specific macros, see man(7) .\" for manpage-specific macros, see man(7)
.SH NAME .SH NAME
genext2fs \- ext2 filesystem generator for embedded systems fillextfs \- ext2 filesystem populator
.SH SYNOPSIS .SH SYNOPSIS
.B genext2fs .B fillextfs
.RI "[ options ] [ output\-image ]" .RI "[ options ] [ output\-image ]"
.SH DESCRIPTION .SH DESCRIPTION
\fBgenext2fs\fP generates an ext2 filesystem \fBfillextfs\fP popupate an ext2/3/4 filesystem
as a normal (non-root) user. It does not require you to mount as a normal (non-root) user. It does not require you to mount
the image file to copy files on it, nor does it require that the image file to copy files on it, nor does it require that
you become the superuser to make device nodes. you become the superuser to make device nodes.


The filesystem image is created in the file \fIoutput-image\fP. If not The filesystem image is created in the file \fIoutput-image\fP.
specified, it is sent to stdout.

By default, the maximum number of inodes in the filesystem is the minimum
number required to accommodate the initial contents.
In this way, a minimal filesystem (typically read-only) can be created with
minimal free inodes.
If required, free inodes can be added by passing the relevant options.
The filesystem image size in blocks can be minimised by trial and error.
.SH OPTIONS .SH OPTIONS
.TP .TP
.BI "\-x, \-\-starting\-image image"
Use this image as a starting point.
.TP
.BI "\-d, \-\-root directory[:path]" .BI "\-d, \-\-root directory[:path]"
Add the given directory and contents at a particular path (by default Add the given directory and contents at a particular path (by default
the root). the root).
Expand All @@ -54,27 +43,12 @@ Furthermore, you can use a single table entry to create many devices
with a range of minor numbers (see examples below). with a range of minor numbers (see examples below).
All specified inodes receive the mtime of \fBspec-file\fP itself. All specified inodes receive the mtime of \fBspec-file\fP itself.
.TP .TP
.BI "\-b, \-\-size\-in\-blocks blocks"
Size of the image in blocks.
.TP
.BI "\-N, \-\-number\-of\-inodes inodes"
Maximum number of inodes.
.TP
.BI "\-i, \-\-bytes\-per\-inode ratio"
Used to calculate the maximum number of inodes from the available blocks.
.TP
.BI "\-m, \-\-reserved\-percentage"
Number of reserved blocks as a percentage of size. Reserving 0 blocks will prevent creation of the "lost+found" directory.
.TP
.BI "\-g, \-\-block\-map path" .BI "\-g, \-\-block\-map path"
Generate a block map file for this path. Generate a block map file for this path.
.TP .TP
.BI "\-e, \-\-fill\-value value" .BI "\-e, \-\-fill\-value value"
Fill unallocated blocks with value. Fill unallocated blocks with value.
.TP .TP
.BI "\-z, \-\-allow\-holes"
Make files with holes.
.TP
.BI "\-f, \-\-faketime" .BI "\-f, \-\-faketime"
Use a timestamp of 0 for inode and filesystem creation, instead of the present. Useful for testing. Use a timestamp of 0 for inode and filesystem creation, instead of the present. Useful for testing.
.TP .TP
Expand All @@ -93,30 +67,29 @@ Squash permissions of inodes added using the -d option. Analogous to
Print resulting filesystem structure. Print resulting filesystem structure.
.TP .TP
.BI "\-V, \-\-version" .BI "\-V, \-\-version"
Print genext2fs version. Print fillextfs version.
.TP .TP
.BI "\-h, \-\-help" .BI "\-h, \-\-help"
Display help. Display help.
.SH EXAMPLES .SH EXAMPLES


.EX .EX
.B .B
genext2fs -b 1440 -d src /dev/fd0 fillextfs -d src image.img
.EE .EE


All files in the All files in the
.I src .I src
directory will be written to directory will be written to
.B /dev/fd0 .B image.img
as a new ext2 filesystem image. You can then mount the floppy as which should be formatter as a ext2/3/4 filesystem image.
usual.


.EX .EX
.B .B
genext2fs -b 1024 -d src -D device_table.txt flashdisk.img fillextfs -d src -D device_table.txt flashdisk.img
.EE .EE


This example builds a filesystem from all the files in This example fill a filesystem from all the files in
.I src, .I src,
then device nodes are created based on the contents of the file then device nodes are created based on the contents of the file
.I device_table.txt. .I device_table.txt.
Expand Down
5 changes: 2 additions & 3 deletions fillextfs.c
Expand Up @@ -1561,7 +1561,7 @@ populate_fs(filesystem *fs, char **dopt, int didx, int squash_uids, int squash_p
static void static void
showversion(void) showversion(void)
{ {
printf("genext2fs " VERSION "\n"); printf("fillextfs " VERSION "\n");
} }


static void static void
Expand All @@ -1579,8 +1579,7 @@ showhelp(void)
" -P, --squash-perms Squash permissions on all files.\n" " -P, --squash-perms Squash permissions on all files.\n"
" -h, --help\n" " -h, --help\n"
" -V, --version\n" " -V, --version\n"
" -v, --verbose\n\n" " -v, --verbose\n", app_name);
"Report bugs to genext2fs-devel@lists.sourceforge.net\n", app_name);
} }


#define MAX_DOPT 128 #define MAX_DOPT 128
Expand Down

0 comments on commit 32de662

Please sign in to comment.