Skip to contentSkip to conversation

nilfs-utils: fsck: add functionality of fsck.nilfs2 skeleton

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 7/7 nilfs-utils: fsck: add functionality of fsck.nilfs2 skeleton

Hi,

This patch adds functionality of fsck.nilfs2 skeleton that is capable to check signature magic and CRC checksum in superblock only.

With the best regards,
Vyacheslav Dubeyko.
--
From: Vyacheslav Dubeyko <[email protected]>
Subject: [PATCH v2 7/7] nilfs-utils: fsck: add functionality of fsck.nilfs2 skeleton

This patch adds functionality of fsck.nilfs2 skeleton that is capable to check signature magic and CRC checksum in superblock only.

---

sbin/fsck/Makefile.am new file +11 -0
new file mode 100644
index 0000000..c90e37a
@@ -0,0 +1,11 @@
+## Makefile.am
+
+AM_CFLAGS = -Wall
+AM_CPPFLAGS = -I$(top_srcdir)/include
+LDADD = $(top_builddir)/lib/libfsck.la $(top_builddir)/lib/libmountchk.la \
+	$(top_builddir)/lib/libcrc32.la $(top_builddir)/lib/libnilfs.la
+
+sbin_PROGRAMS = fsck.nilfs2
+
+fsck_nilfs2_SOURCES = fsck_nilfs2.c fsck_nilfs2.h \
+			nilfs_superblock.c nilfs_superblock.h
sbin/fsck/fsck_nilfs2.c new file +385 -0

385 lines not on this page · raw message

sbin/fsck/fsck_nilfs2.h new file +34 -0
new file mode 100644
index 0000000..b0c6278
@@ -0,0 +1,34 @@
+/*
+ * fsck_nilfs2.h - NILFS fsck declarations
+ *
+ * Copyright (C) 2012 Vyacheslav Dubeyko <[email protected]>
+ *
+ * This file is part of NILFS.
+ *
+ * NILFS is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * NILFS is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with NILFS; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+ *
+ * Written by Vyacheslav Dubeyko <[email protected]>
+ */
+
+#ifndef FSCK_NILFS2_H
+#define FSCK_NILFS2_H
+
+#include "nilfs.h"
+#include "fsck_messages.h"
+
+/* libmountchk function */
+extern int check_mount(const char *device);
+
+#endif /* FSCK_NILFS2_H */
sbin/fsck/nilfs_superblock.c new file +526 -0

526 lines not on this page · raw message

sbin/fsck/nilfs_superblock.h new file +48 -0

48 lines not on this page · raw message

--

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