1 #include <lunaix/fs/probe_boot.h>
2 #include <lunaix/mm/valloc.h>
3 #include <lunaix/syslog.h>
5 #include "iso9660/iso9660.h"
9 #define LUNAIX_ID 0x414e554cUL // "LUNA"
14 struct device_meta* block_cat = device_getbyname(NULL, "block", 5);
19 struct iso_vol_primary* volp = valloc(ISO9660_BLKSZ);
21 struct device* dev = NULL;
22 struct device_meta *pos, *n;
23 llist_for_each(pos, n, &block_cat->children, siblings)
25 dev = resolve_device(pos);
31 dev->ops.read(dev, (void*)volp, ISO9660_READ_OFF, ISO9660_BLKSZ);
33 kprintf(KINFO "failed %xh:%xh, /dev/%s",
41 if (*(u32_t*)volp->header.std_id != ISO_SIGNATURE_LO) {
45 if (*(u32_t*)volp->sys_id == LUNAIX_ID) {
46 kprintf(KINFO "%xh:%xh, /dev/%s, %s",