slava | 3 Aug 2012 15:58

[PATCH v2 6/7] nilfs-utils: fsck: add nilfs_sb_read_unchecked() and modify nilfs_sb_is_valid() functions

Hi,

This patch adds nilfs_sb_read_unchecked() function for reading 
superblocks without checking. Moreover, it modifies nilfs_sb_is_valid() 
function with the purpose of making full superblock check in the future.

With the best regards,
Vyacheslav Dubeyko.
--
 From: Vyacheslav Dubeyko <slava@...>
Subject: [PATCH v2 6/7] nilfs-utils: fsck: add 
nilfs_sb_read_unchecked() and modify nilfs_sb_is_valid() functions

This patch adds nilfs_sb_read_unchecked() function for reading 
superblocks without checking. Moreover, it modifies nilfs_sb_is_valid() 
function with the purpose of making full superblock check in the future.

Signed-off-by: Vyacheslav Dubeyko <slava@...>
---
diff --git a/lib/sb.c b/lib/sb.c
index 94bccaf..15190ca 100644
--- a/lib/sb.c
+++ b/lib/sb.c
 <at>  <at>  -30,6 +30,8  <at>  <at> 
  #include <stdlib.h>
  #endif	/* HAVE_STDLIB_H */

+#include <stddef.h>
+
  #if HAVE_STRING_H
(Continue reading)


Gmane