[PATCH v2 0/7] nilfs-utils: fsck: add skeleton of fsck.nilfs2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

This patch set adds skeleton of fsck.nilfs2 utility into nilfs-utils package. Currently, fsck.nilfs2 only try to check presence of primary and secondary superblocks. It checks magic signature and CRC checksum in superblock.

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 |    2 +-
 include/nilfs.h     |   15 ++++
 lib/Makefile.am     |    8 ++-
 lib/ismounted.c     |   15 ++++-
lib/sb.c | 197 ++++++++++++++++++++++++++++++++++++++++++++++++---
 sbin/Makefile.am    |    2 +-
 7 files changed, 226 insertions(+), 16 deletions(-)

 include/fsck_messages.def    |   80 +++++++
 include/fsck_messages.h      |  126 ++++++++++
 include/fsck_raw_ops.h       |   55 +++++
 lib/fsck_messages.c          |  274 ++++++++++++++++++++++
lib/fsck_raw_ops.c | 473 +++++++++++++++++++++++++++++++++++++
 sbin/fsck/Makefile.am        |   11 +
 sbin/fsck/fsck_nilfs2.c      |  385 ++++++++++++++++++++++++++++++
 sbin/fsck/fsck_nilfs2.h      |   34 +++
sbin/fsck/nilfs_superblock.c | 526 ++++++++++++++++++++++++++++++++++++++++++
 sbin/fsck/nilfs_superblock.h |   48 ++++
 10 files changed, 2012 insertions(+), 0 deletions(-)

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


[Index of Archives]     [Linux Filesystem Development]     [Linux BTRFS]     [Linux CIFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux