Skip to content

nilfs-utils: fsck: add fsck.nilfs2 utility into nilfs-utils package

Vyacheslav Dubeyko linux-nilfs 1 version New

Get series with b4
b4 am 1352712857.2555.35.camel@slavad-ubuntu

Versions newest first

  1. v4 Latest15 patches 0 repliesNew

Changes in v4 from the cover letter

* Every message is associated with subsystem.
* It was introduced complex error and it was implemented output of complex error number with segment and log numbers.
* Functionality of primary and secondary superblocks comparing was added.
* Preliminary vision of architecture of checking functionality was implemented.
* Functionality of segment summary header checking was implemented.
* Some bugs in superblock checking functionality were fixed.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15nilfs-utils: fsck: add necessary constants and function declarationsinclude/nilfs.h include/nilfs2_fs.h sbin/mkfs/mkfs.c+60 -10 replies
2/15nilfs-utils: fsck: add libnilfsmessages.la library into nilfs-utils packageinclude/nilfs_messages.def include/nilfs_messages.h lib/nilfs_messages.c+902 -00 replies
3/15nilfs-utils: fsck: add libfsck.la library into nilfs-utils packageinclude/fsck_raw_ops.h lib/fsck_raw_ops.c+522 -00 replies
4/15nilfs-utils: fsck: modify check_mount() function with the purpose of adding opportunity of RO mount checkinglib/ismounted.c+14 -10 replies
5/15nilfs-utils: fsck: add fsck_nilfs2.h file with fsck's constant declarationsinclude/fsck_nilfs2.h+148 -00 replies
6/15nilfs-utils: fsck: NILFS superblock check implementationlib/sb.c+1419 -100 replies
7/15nilfs-utils: fsck: NILFS segment summary header check implementationlib/segment.c+509 -00 replies
8/15nilfs-utils: fsck: add fsck internal declarationssbin/fsck/fsck_common.h+119 -00 replies
9/15nilfs-utils: fsck: add functionality of superblock checkingsbin/fsck/nilfs_superblock.c sbin/fsck/nilfs_superblock.h+895 -00 replies
10/15nilfs-utils: fsck: add skeleton of functionality for segments checkingsbin/fsck/nilfs_segment.c sbin/fsck/nilfs_segment.h+989 -00 replies
11/15nilfs-utils: fsck: add skeleton of functionality for checkpoints checkingsbin/fsck/nilfs_checkpoint.c sbin/fsck/nilfs_checkpoint.h+204 -00 replies
12/15nilfs-utils: fsck: add skeleton of functionality for file system hierarchy checkingsbin/fsck/nilfs_fs_hierarchy.c sbin/fsck/nilfs_fs_hierarchy.h+111 -00 replies
13/15nilfs-utils: fsck: add skeleton of functionality for volume checking on final phasesbin/fsck/nilfs_volume_check.c sbin/fsck/nilfs_volume_check.h+116 -00 replies
14/15nilfs-utils: fsck: add common logic of fsck.nilfs2sbin/fsck/fsck_nilfs2.c+734 -00 replies
15/15nilfs-utils: fsck: integrate fsck.nilfs2 utility into nilfs-utils packageconfigure.ac include/Makefile.am lib/Makefile.am +3 more+82 -60 replies

Reviews trailers per patch

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

Read the v4 thread

Cover letter [PATCH v4 00/15] nilfs-utils: fsck: add fsck.nilfs2 utility into nilfs-utils package

Hi,

This patch set adds fsck.nilfs2 utility into nilfs-utils package. Currently, fsck.nilfs2 checks primary and secondary superblocks and segment summary headers of segments' logs.

v3->v4
* Every message is associated with subsystem.
* It was introduced complex error and it was implemented output of complex error number with segment and log numbers.
* Functionality of primary and secondary superblocks comparing was added.
* Preliminary vision of architecture of checking functionality was implemented.
* Functionality of segment summary header checking was implemented.
* Some bugs in superblock checking functionality were fixed.

v2->v3
* It was implemented functionality of NILFS superblock correctness checking.
* Message printing primitives are generalized into single library (libnilfsmessages.la).
* Error definition is associated with definition of error id, error severity and error message.
* It was introduced conception of detected errors database in the form of set of checking flags bitmaps. The checking flags bitmap defines what should be checked (for example, in superblock) and, then, it keeps information about detected corrupted items after check execution.

v1->v2
* Coding style was reworked (checkpatch.pl script).
* libfsck.la library was added (print routines + raw ops with disk).
* nilfs.h - several constants and function declarations was added.
* ismounted.c - check_mount() function is reworked for checking on RO mount.
* sb.c - nilfs_sb_is_valid() function is reworked; nilfs_sb_read_unchecked() was added.
* fsck_message.h, fsck_message.def, fsck_raw_ops.h are moved into include folder.
* fsck_message.c, fsck_raw_ops.c are moved into lib folder.
* Superblocks are read by means of library function nilfs_sb_read_unchecked().
* Superblocks are checked by means of library function nilfs_sb_is_valid().
* fsck_debug() identifies reported function by means of __func__ macro.

With the best regards,
Vyacheslav Dubeyko.
--

 configure.ac                   |    3 +-
 include/Makefile.am            |    3 +-
 include/fsck_nilfs2.h          |  148 +++++
 include/fsck_raw_ops.h         |   55 ++
 include/nilfs.h                |   55 ++
 include/nilfs2_fs.h            |    5 +
 include/nilfs_messages.def     |  180 +++++
 include/nilfs_messages.h       |  248 +++++++
 lib/Makefile.am                |   18 +-
 lib/fsck_raw_ops.c             |  467 +++++++++++++
 lib/ismounted.c                |   15 +-
 lib/nilfs_messages.c           |  474 +++++++++++++
 lib/sb.c                       | 1429 +++++++++++++++++++++++++++++++++++++++-
 lib/segment.c                  |  509 ++++++++++++++
 sbin/Makefile.am               |    2 +-
 sbin/fsck/ChangeLog.fsck       |   44 ++
 sbin/fsck/Makefile.am          |   18 +
 sbin/fsck/fsck_common.h        |  119 ++++
 sbin/fsck/fsck_nilfs2.c        |  734 +++++++++++++++++++++
 sbin/fsck/nilfs_checkpoint.c   |  154 +++++
 sbin/fsck/nilfs_checkpoint.h   |   50 ++
 sbin/fsck/nilfs_fs_hierarchy.c |   73 ++
 sbin/fsck/nilfs_fs_hierarchy.h |   38 ++
 sbin/fsck/nilfs_segment.c      |  934 ++++++++++++++++++++++++++
 sbin/fsck/nilfs_segment.h      |   55 ++
 sbin/fsck/nilfs_superblock.c   |  851 ++++++++++++++++++++++++
 sbin/fsck/nilfs_superblock.h   |   44 ++
 sbin/fsck/nilfs_volume_check.c |   71 ++
 sbin/fsck/nilfs_volume_check.h |   45 ++
 sbin/mkfs/mkfs.c               |    1 -
 30 files changed, 6824 insertions(+), 18 deletions(-)

--
To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html