Skip to contentSkip to conversation

nilfs-utils: fsck: add several constants and functions declaration in nilfs.h

PATCH Superseded [email protected] 1 participant 1 message Aug 3, 2012 NILFS2 filesystem

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 4/7 nilfs-utils: fsck: add several constants and functions declaration in nilfs.h

Hi,

This patch adds several constants and functions declaration in nilfs.h.

With the best regards,
Vyacheslav Dubeyko.
--
From: Vyacheslav Dubeyko <[email protected]>
Subject: [PATCH v2 4/7] nilfs-utils: fsck: add several constants and functions declaration in nilfs.h

This patch adds several constants and functions declaration in nilfs.h.

---

include/nilfs.h +10 -0
index cdb468e..0d9af19 100644
@@ -87,6 +87,16 @@ typedef __u64 sector_t;      // XXX: __u64 ??
 typedef sector_t nilfs_blkoff_t;
 typedef __u64 nilfs_cno_t;
 
+#ifndef NILFS_FALSE
+#      define  NILFS_FALSE   (0)
+#endif
+
+#ifndef NILFS_TRUE
+#      define  NILFS_TRUE    (1)
+#endif
+
+#define DEFAULT_SECTOR_SIZE 512
+
 #define NILFS_FSTYPE   "nilfs2"
 
 #define NILFS_CNO_MIN  ((nilfs_cno_t)1)
@@ -285,6 +295,11 @@ struct nilfs_super_block *nilfs_sb_read(int devfd);
 int nilfs_sb_write(int devfd, struct nilfs_super_block *sbp, int 

mask);

int nilfs_read_sb(struct nilfs *);
+int nilfs_sb_read_unchecked(int devfd,
+ struct nilfs_super_block *sbp1,
+ struct nilfs_super_block *sbp2);
+int nilfs_sb_is_valid(struct nilfs_super_block *sbp, int check_crc,
+ int *err_code, int *err_severity);

ssize_t nilfs_get_segment(struct nilfs *, unsigned long, void **); int nilfs_put_segment(struct nilfs *, void *);
--

--
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