search for: ocfs_volume_head

Displaying 1 result from an estimated 1 matches for "ocfs_volume_head".

Did you mean: ocfs_volume_header
2004 Feb 04
3
[PATCH] Adding ocfs support to blkid
...probe.c Wed Feb 4 00:21:03 2004 @@ -312,6 +312,36 @@ return 1; } +static int probe_ocfs(int fd __BLKID_ATTR((unused)), + blkid_cache cache __BLKID_ATTR((unused)), + blkid_dev dev, + struct blkid_magic *id __BLKID_ATTR((unused)), + unsigned char *buf) +{ + struct ocfs_volume_header ovh; + struct ocfs_volume_label ovl; + + if (lseek(fd, 0, SEEK_SET) != 0) + return -1; + + if (read(fd, (char *) &ovh, sizeof(ovh)) != sizeof(ovh)) + return -1; + + if (strncmp(ovh.signature, OCFS_MAGIC, sizeof(OCFS_MAGIC)) != 0) + return -1; + + if (lseek(fd, 512, SEEK_SET) != 512) + re...