]>
git.neil.brown.name Git - lafs-utils.git/log
summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
NeilBrown [Sat, 19 Mar 2011 07:51:40 +0000 (18:51 +1100)]
add mount command
new command for 'lafs' and lafs_mount in library.
Doesn't load the root inode yet, just locates it.
Signed-off-by: NeilBrown <neilb@suse.de>
NeilBrown [Sat, 19 Mar 2011 03:56:40 +0000 (14:56 +1100)]
lafs: save device name in load_dev
Signed-off-by: NeilBrown <neilb@suse.de>
NeilBrown [Sat, 19 Mar 2011 03:32:59 +0000 (14:32 +1100)]
lafs: add "show device" and associated library routines.
"show device" can show a loaded device, or can show the device block
from an arbitrary location on a device.
Signed-off-by: NeilBrown <neilb@suse.de>
NeilBrown [Fri, 18 Mar 2011 05:34:08 +0000 (16:34 +1100)]
lafs: allow "--tag value" as well as "--tag=value"
... as fingers seem like this pattern too.
Signed-off-by: NeilBrown <neilb@suse.de>
NeilBrown [Fri, 18 Mar 2011 05:24:28 +0000 (16:24 +1100)]
Add 'load_dev' command and matching library functions.
These will load the device blocks from a file, then load the
best state block, making sure everything is compatible.
Signed-off-by; NeilBrown <neilb@suse.de>
NeilBrown [Tue, 15 Mar 2011 09:28:30 +0000 (20:28 +1100)]
lafs: make 'statesize' a choice.
It must be a power of 2, so it can easily be a 'choice'.
Signed-off-by: NeilBrown <neilb@suse.de>
NeilBrown [Mon, 14 Mar 2011 01:22:17 +0000 (12:22 +1100)]
Get lafs_add_device to add free segments to the list.
This allows a full mkfs to complete.
Also fix a bug in lafs_add_inode. A subsequent call to
lafs_get_inode would re-initialise the block.
Signed-off-by: NeilBrown <neilb@suse.de>
NeilBrown [Mon, 14 Mar 2011 01:22:17 +0000 (12:22 +1100)]
lafs: add write_checkpoint
Signed-off-by: NeilBrown <neilb@suse.de>
NeilBrown [Mon, 14 Mar 2011 01:22:17 +0000 (12:22 +1100)]
lafs: add write_state command
Signed-off-by: NeilBrown <neilb@suse.de>
NeilBrown [Mon, 14 Mar 2011 01:22:17 +0000 (12:22 +1100)]
lafs: add write_dev command
I probably want to make this "write dev" at some stage, so there will
also be "write state" and "write checkpoint"
Signed-off-by: NeilBrown <neilb@suse.de>
NeilBrown [Mon, 14 Mar 2011 01:21:55 +0000 (12:21 +1100)]
lafs: Add creation of special inodes to newfs/add_device
Also add "lafs_get_inode" to library.
Signed-off-by: NeilBrown <neilb@suse.de>
NeilBrown [Sun, 13 Mar 2011 23:12:20 +0000 (10:12 +1100)]
lafs: add 'add_device' command
Signed-off-by: NeilBrown <neilb@suse.de>
NeilBrown [Sun, 13 Mar 2011 22:46:19 +0000 (09:46 +1100)]
Split out size parsing into separate file
So we have common code for understanding 'K,M,G' suffix.
Signed-off-by: NeilBrown <neilb@suse.de>
NeilBrown [Sun, 13 Mar 2011 22:46:17 +0000 (09:46 +1100)]
Split open_device out of mkfs.lafs
'lafs' will need this, so make it a separate file.
Not in liblafs as it isn't really that generic.
Signed-off-by: NeilBrown <neilb@suse.de>
NeilBrown [Sun, 13 Mar 2011 06:13:37 +0000 (17:13 +1100)]
mkfs.lafs should give an error on size-zero devices.
size==0 sometimes means we have already printed a message..
Signed-off-by: NeilBrown <neilb@suse.de>
NeilBrown [Sun, 13 Mar 2011 06:13:35 +0000 (17:13 +1100)]
Add lafs_validate_geometry for mkfs.
Split this out of mkfs and put it in library for 'lafs' to use.
Signed-off-by: NeilBrown <neilb@suse.de>
NeilBrown [Sun, 13 Mar 2011 03:39:07 +0000 (14:39 +1100)]
Add 'reset' and 'newfs' commands.
Also fix 'runfile' so it sees EOF, and add 'verbose' state.
Signed-off-by: NeilBrown <neilb@suse.de>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>