]> git.neil.brown.name Git - lafs-utils.git/log
lafs-utils.git
15 years agoDiscard 'terminal' arg type.
NeilBrown [Sun, 13 Mar 2011 03:10:31 +0000 (14:10 +1100)]
Discard 'terminal' arg type.

At one stage during development, that 'tag' of a positional arg was
NULL so we couldn't used that to mark end-of-list, so we used
a special 'type' instead.
But now 'tag' is always non-NULL we can used tag==NULL to mark
end of list, so get rid of the 'terminal' type.

Fix some bugs too...

Signed-off-by: NeilBrown <neilb@suse.de>
15 years agoAdd 'choice' argument type.
NeilBrown [Sun, 13 Mar 2011 02:55:03 +0000 (13:55 +1100)]
Add 'choice' argument type.

A 'choice' must be selected from a set list of options.

Signed-off-by: NeilBrown <neilb@suse.de>
15 years agoAdd new "lafs" program
NeilBrown [Sat, 12 Mar 2011 07:58:32 +0000 (18:58 +1100)]
Add new "lafs" program

"lafs" is similar to "debugfs" for ext[234].

It allows a LaFS to be examined and modified.
Various commands can be enterred, or read from a file.

This preliminary check-in only provides the infrastructure
for reading and parsing commands together with support for
context sensitive completion and help using readline.

Commands implemented are:
  ?  help  exit quit

Naturally more will follow.

Signed-off-by: NeilBrown <neilb@suse.de>
15 years agomkfs: allow creation of a filesystem on a regular file.
NeilBrown [Wed, 2 Mar 2011 23:39:26 +0000 (10:39 +1100)]
mkfs: allow creation of a filesystem on a regular file.

Primarily for ease of testing.

Signed-off-by: NeilBrown <neilb@suse.de>
15 years agomkfs: provide minimal feedback when creating array.
NeilBrown [Wed, 2 Mar 2011 23:23:09 +0000 (10:23 +1100)]
mkfs: provide minimal feedback when creating array.

Rather then silence, report number and size of segments.

Signed-off-by: NeilBrown <neilb@suse.de>
15 years agomkfs: adjust segment size based on device size, and complain if it didn't work.
NeilBrown [Wed, 2 Mar 2011 23:17:47 +0000 (10:17 +1100)]
mkfs: adjust segment size based on device size, and complain if it didn't work.

Signed-off-by: NeilBrown <neilb@suse.de>
15 years agoAdd tracing control to liblafs
NeilBrown [Wed, 2 Mar 2011 23:02:31 +0000 (10:02 +1100)]
Add tracing control to liblafs

'printf' becomes 'trace' and can now be turned on/off by an
environment variable.

Signed-off-by: NeilBrown <neilb@suse.de>
15 years agomkfs: add accesstime file to new filesystem
NeilBrown [Wed, 2 Mar 2011 22:44:45 +0000 (09:44 +1100)]
mkfs: add accesstime file to new filesystem

But allow this to be suppressed with --no-atime-file

Signed-off-by: NeilBrown <neilb@suse.de>
15 years agoFix compilation on 32bit arch.
NeilBrown [Fri, 15 Oct 2010 02:46:57 +0000 (13:46 +1100)]
Fix compilation on 32bit arch.

Some printf warnings.

Signed-off-by: NeilBrown <neilb@suse.de>
15 years agoMake filesystem name field variable-length.
NeilBrown [Sun, 10 Oct 2010 23:59:10 +0000 (10:59 +1100)]
Make filesystem name field variable-length.

This mirrors similar change in kernel module code.

Signed-off-by: NeilBrown <neilb@suse.de>
15 years agoInitial checking of lafs-utils
NeilBrown [Fri, 1 Oct 2010 12:36:35 +0000 (22:36 +1000)]
Initial checking of lafs-utils

Basic mkfs.lafs works.

Signed-off-by: NeilBrown <neilb@suse.de>