Displaying 1 result from an estimated 1 matches for "iso_hs_volume_descriptor".
2006 Sep 13
0
[patch] add iso9660 detection to fstype
...uot;iso9660_sb.h"
/*
* Slightly cleaned up version of jfs_superblock to
@@ -221,6 +222,21 @@
return 0;
}
+static int iso_image(const void *buf, unsigned long long *blocks)
+{
+ const struct iso_volume_descriptor *isovd =
+ (const struct iso_volume_descriptor *)buf;
+ const struct iso_hs_volume_descriptor *isohsvd =
+ (const struct iso_hs_volume_descriptor *)buf;
+
+ if (!memcmp(isovd->id, ISO_MAGIC, ISO_MAGIC_L) ||
+ !memcmp(isohsvd->id, ISO_HS_MAGIC, ISO_HS_MAGIC_L)) {
+ *blocks = 0;
+ return 1;
+ }
+ return 0;
+}
+
struct imagetype {
off_t block;
const char name[12];
@@ -250,...