Displaying 2 results from an estimated 2 matches for "nilfs_super_block".
2008 Mar 03
0
[PATCH] nilfs2 support for fstype
...uashfs_fs.h"
 #include "gfs2_fs.h"
 #include "ocfs2_fs.h"
+#include "nilfs_fs.h"
 
 /*
  * Slightly cleaned up version of jfs_superblock to
@@ -326,6 +327,19 @@
 	return 0;
 }
 
+static int nilfs2_image(const void *buf, unsigned long long *bytes)
+{
+	const struct nilfs_super_block *sb =
+	    (const struct nilfs_super_block *)buf;
+
+	if (sb->s_magic == __cpu_to_le16(NILFS_SUPER_MAGIC) &&
+	    sb->s_rev_level == __cpu_to_le32(2)) {
+		*bytes = (unsigned long long)__le64_to_cpu(sb->s_dev_size);
+		return 1;
+	}
+	return 0;
+}
+
 struct imagetype {
 	off_t bl...
2008 Mar 25
2
bunch of small fixes
hello hpa,
nothing particular stands out,
just syncing with latest Debian upload and subsequent patch emails.
please review merge or nack.
thanks :)
maks
git pull git://git.debian.org/~maks/klibc.git maks
for the changes:
Aaron Griffin (1):
      [klibc] kinit: skip md assembly if mdX exists
Colin Watson (1):
      [klibc] mount/umount FUSE support
Harald Jenny (1):
      [klibc] fstype: