search for: iso_volume_descriptor

Displaying 2 results from an estimated 2 matches for "iso_volume_descriptor".

2006 Sep 13
0
[patch] add iso9660 detection to fstype
...uot;xfs_sb.h" #include "luks_fs.h" #include "lvm2_sb.h" +#include "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; +...
2004 Feb 04
3
[PATCH] Adding ocfs support to blkid
...+ u_char vol_id_len[2]; +}; + +#define ocfslabellen(o) ((uint)o.label_len[0] + (((uint) o.label_len[1]) << 8)) +#define ocfsmountlen(o) ((uint)o.mount_len[0] + (((uint) o.mount_len[1])<<8)) + +#define OCFS_MAGIC "OracleCFS" + #define ISODCL(from, to) (to - from + 1) struct iso_volume_descriptor { char type[ISODCL(1,1)]; /* 711 */