Skip to content

reiser4: node41 layout support

Edward Shishkin reiserfs-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2reiser4: node41 layout supportfs/reiser4/Makefile fs/reiser4/jnode.c fs/reiser4/plugin/disk_format/disk_format40.c +10 more+329 -680 replies
2/2reiser4progs: node41 layout supportconfigure.in include/reiser4/format.h include/reiser4/plugin.h +18 more+902 -1885 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] reiser4: node41 layout support

Hi all,

The following patches introduce a new node format(plugin): node41. The new node layout (node41) contains a 32-bit field. This is the single difference from the old node format (node40).

The new field will be for meta-data checksums. Currently it is filled with zeros.

This is an important example of how to add a plugin to reiser4. Earlier file system developers used to design disk layouts "once and forever". Any change in disk layouts of such poorly designed file systems led to compatibility issues and ugly workarounds. With reiser4 we don't have such problems.

Low-level interface to access the new field

1) in reiser4:

nh41_get_csum(node41_header *head);
nh41_set_csum(node41_header *head, __u32 val);

2) in reiser4progs:

nh41_get_csum(reiser4_node_t *node); nh41_set_csum(reiser4_node_t *node, uint32_t val);

How to test the new feature:
WARNING: don't use it for important data for now!!!

. format a reiser4 partition with mkfs option "-o node=node41"; . mount as usual;
. use as usual: all previously implemented functionality has to
work with the new node41 plugin;
. umount;
. debugfs.reiser4 -t /dev/xxx prints a new field CSUM for nodes
of the new format (0 for now);
. fsck has to check/repair file systems with node41 layouts
properly.

Please, report if any problems,

Thanks,
Edward.