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

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

 



Hi,

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

With the best regards,
Vyacheslav Dubeyko.
--
From: Vyacheslav Dubeyko <slava@xxxxxxxxxxx>
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.

Signed-off-by: Vyacheslav Dubeyko <slava@xxxxxxxxxxx>
---
diff --git a/include/nilfs.h b/include/nilfs.h
index cdb468e..0d9af19 100644
--- a/include/nilfs.h
+++ b/include/nilfs.h
@@ -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 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