search for: isoinfo

Displaying 20 results from an estimated 86 matches for "isoinfo".

2012 Jul 16
1
[PATCH] isoinfo: remove the useless goto
Code cleanup. Signed-off-by: Wanlong Gao <gaowanlong at cn.fujitsu.com> --- daemon/isoinfo.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/daemon/isoinfo.c b/daemon/isoinfo.c index c0ee1c9..fd777bd 100644 --- a/daemon/isoinfo.c +++ b/daemon/isoinfo.c @@ -255,8 +255,6 @@ isoinfo (const char *path) goto done; ret = parse_isoinfo (lines); - if (ret == NULL) - goto done;...
2017 Jun 19
0
[PATCH v7 2/9] lib: extract osinfo DB traversing API
...m. + * + * This returns: + * -1 => a fatal error ('error' has been called, caller must not ignore it) + * 0 => could not locate the OS + * 1 => matching OS found, the osinfo_ret pointer has been filled in + */ +int +guestfs_int_osinfo_map (guestfs_h *g, const struct guestfs_isoinfo *isoinfo, + const struct osinfo **osinfo_ret) +{ + size_t i; + + /* We only need to lock the database when reading it for the first time. */ + gl_lock_lock (osinfo_db_lock); + if (osinfo_db_size == 0) { + if (read_osinfo_db (g, read_osinfo_db_xml, NULL) == -1) { +...
2017 Apr 12
0
[PATCH v6 02/10] lib: extract osinfo DB traversing API
...m. + * + * This returns: + * -1 => a fatal error ('error' has been called, caller must not ignore it) + * 0 => could not locate the OS + * 1 => matching OS found, the osinfo_ret pointer has been filled in + */ +int +guestfs_int_osinfo_map (guestfs_h *g, const struct guestfs_isoinfo *isoinfo, + const struct osinfo **osinfo_ret) +{ + size_t i; + + /* We only need to lock the database when reading it for the first time. */ + gl_lock_lock (osinfo_db_lock); + if (osinfo_db_size == 0) { + if (read_osinfo_db (g, read_osinfo_db_xml, NULL) == -1) { +...
2017 Mar 07
0
[PATCH v4 2/9] lib: extract osinfo DB traversing API
...m. + * + * This returns: + * -1 => a fatal error ('error' has been called, caller must not ignore it) + * 0 => could not locate the OS + * 1 => matching OS found, the osinfo_ret pointer has been filled in + */ +int +guestfs_int_osinfo_map (guestfs_h *g, const struct guestfs_isoinfo *isoinfo, + const struct osinfo **osinfo_ret) +{ + size_t i; + + /* We only need to lock the database when reading it for the first time. */ + gl_lock_lock (osinfo_db_lock); + if (osinfo_db_size == 0) { + if (read_osinfo_db (g, read_osinfo_db_xml, NULL) == -1) { +...
2017 Feb 10
0
[PATCH v3 05/10] lib: extract osinfo DB traversing API
...m. + * + * This returns: + * -1 => a fatal error ('error' has been called, caller must not ignore it) + * 0 => could not locate the OS + * 1 => matching OS found, the osinfo_ret pointer has been filled in + */ +int +guestfs_int_osinfo_map (guestfs_h *g, const struct guestfs_isoinfo *isoinfo, + const struct osinfo **osinfo_ret) +{ + size_t i; + + /* We only need to lock the database when reading it for the first time. */ + gl_lock_lock (osinfo_db_lock); + if (osinfo_db_size == 0) { + if (read_osinfo_db (g, read_osinfo_db_xml, NULL) == -1) { +...
2017 Apr 12
1
[PATCH] appliance: add cdrkit-cdrtools-compat on openSUSE
It looks like isoinfo is in that package since openSUSE Leap 42.1, so make sure to include it to not break the isoinfo* APIs. --- appliance/packagelist.in | 1 + 1 file changed, 1 insertion(+) diff --git a/appliance/packagelist.in b/appliance/packagelist.in index 5cf2276..0a71cc3 100644 --- a/appliance/packagelist.in...
2017 Feb 07
0
[PATCH v2 3/7] mllib: expose libosinfo DB reading functions in mllib
...m. + * + * This returns: + * -1 => a fatal error ('error' has been called, caller must not ignore it) + * 0 => could not locate the OS + * 1 => matching OS found, the osinfo_ret pointer has been filled in + */ +int +guestfs_int_osinfo_map (guestfs_h *g, const struct guestfs_isoinfo *isoinfo, + const struct osinfo **osinfo_ret) +{ + size_t i; + + /* We only need to lock the database when reading it for the first time. */ + gl_lock_lock (osinfo_db_lock); + if (osinfo_db_size == 0) { + if (read_osinfo_db (g, read_osinfo_db_xml, NULL) == -1) { +...
2012 Jul 16
2
[PATCH V4] NEW API: add new api xfs_info
...ing, len); + ret[len] = '\0'; + fprintf(stderr, "%s\n", ret); + return ret; +} + +static int +parse_uint32 (uint32_t *ret, const char *str) +{ + uint32_t r; + + if (sscanf (str, "%" SCNu32, &r) != 1) { + reply_with_error ("cannot parse numeric field from isoinfo: %s", str); + return -1; + } + + *ret = r; + return 0; +} + +static int +parse_uint64 (uint64_t *ret, const char *str) +{ + uint64_t r; + + if (sscanf (str, "%" SCNu64, &r) != 1) { + reply_with_error ("cannot parse numeric field from isoinfo: %s", str); +...
2020 Aug 05
3
Re: Installing Kali Linux using KVM virt-install tool
...sn't know about > called my-unknown.iso, with a kernel at 'kernel/fookernel' and > initrd at 'kernel/fooinitrd', you can make this work with: > > --location > my-unknown.iso,kernel=kernel/fookernel,initrd=kernel/fooinitrd > > > You can use isoinfo to get the content of your ISO image: > > isoinfo -J -i /path/to/your.iso -f > > and use the --location with kernel and initrd parameters which will make > it work and --extra-args will work as well. > > Pavel > Hi Pavel, Thanks for your email and much appreciated. I h...
2017 Mar 08
1
Re: [PATCH v4 1/9] lib/osinfo.c: Extract xml processing into a callback
...en one or more fields from the header of a CD/DVD/ISO, look up > * the media in the libosinfo database and return our best guess for > @@ -87,14 +92,24 @@ static void free_osinfo_db_entry (struct osinfo *); > */ > int > guestfs_int_osinfo_map (guestfs_h *g, const struct guestfs_isoinfo *isoinfo, > - const struct osinfo **osinfo_ret) > + const struct osinfo **osinfo_ret) Extra indentation change. > { > size_t i; > > /* We only need to lock the database when reading it for the first time. */ > gl_lock_lock (osinfo_db_lock)...
2004 Mar 04
2
Short demo CD image
Hi, While investigating why the Xen 1.2 Demo CD won''t boot on a particular laptop, I noticed the download image appears to be truncated. "isoinfo -d -i xendemo-1.2.iso" reports: Logical block size is: 2048 Volume size is: 294080 That would suggest the image size should be 294080 * 2048 = 602275840 bytes. However I only have 292376 * 2048 = 598786048 bytes. The web server directory listing agrees with this short value: xendemo-1.2.i...
2014 Jul 01
2
[PATCH] generator: Sort the structs.
...uct-btrfssubvolume.h \ + include/guestfs-gobject/struct-dirent.h \ + include/guestfs-gobject/struct-hivex_node.h \ + include/guestfs-gobject/struct-hivex_value.h \ + include/guestfs-gobject/struct-inotify_event.h \ include/guestfs-gobject/struct-int_bool.h \ + include/guestfs-gobject/struct-isoinfo.h \ + include/guestfs-gobject/struct-lvm_lv.h \ include/guestfs-gobject/struct-lvm_pv.h \ include/guestfs-gobject/struct-lvm_vg.h \ - include/guestfs-gobject/struct-lvm_lv.h \ + include/guestfs-gobject/struct-mdstat.h \ + include/guestfs-gobject/struct-partition.h \ include/guestfs-gob...
2020 Aug 07
2
Re: Installing Kali Linux using KVM virt-install tool
...#39;kernel/fookernel' and > > > initrd at 'kernel/fooinitrd', you can make this work with: > > > > > > --location > > > my-unknown.iso,kernel=kernel/fookernel,initrd=kernel/fooinitrd > > > > > > > > > You can use isoinfo to get the content of your ISO image: > > > > > > isoinfo -J -i /path/to/your.iso -f > > > > > > and use the --location with kernel and initrd parameters which will > make > > > it work and --extra-args will work as well. > > > > >...
2012 Apr 26
1
[PATCH] gobject: Move headers into a subdirectory
...guestfs-gobject-struct-statvfs.h \ - guestfs-gobject-struct-dirent.h \ - guestfs-gobject-struct-version.h \ - guestfs-gobject-struct-xattr.h \ - guestfs-gobject-struct-inotify_event.h \ - guestfs-gobject-struct-partition.h \ - guestfs-gobject-struct-application.h \ - guestfs-gobject-struct-isoinfo.h \ - guestfs-gobject-struct-mdstat.h \ - guestfs-gobject-struct-btrfssubvolume.h \ - guestfs-gobject-optargs-test0.h \ - guestfs-gobject-optargs-add_drive_opts.h \ - guestfs-gobject-optargs-add_domain.h \ - guestfs-gobject-optargs-inspect_get_icon.h \ - guestfs-gobject-optargs-mount_local.h...
2020 Aug 05
2
Installing Kali Linux using KVM virt-install tool
Hi, I am trying to install kali-linux-2020.2-installer-amd64.iso ( https://www.kali.org/downloads/) using KVM virt-install tool #virt-install --name=kalilinux --file=/linuxkvmaddgbdisk/kalilinux.img --file-size=50 --nonsparse --vcpu=2 --ram=4096 --network=bridge:br0 --os-type=linux --os-variant=debian9 --graphics none --location=/linuxkvmaddgbdisk/kali-linux-2020.2-installer-amd64.iso
2017 Jun 19
11
[PATCH v7 0/9] Introducing virt-builder-repository
Hi all, Here is an update of the series fixing Pino's latest comment. It just doesn't implement the change based on never-accepted run commands patch. Cédric Bosdonnat (9): lib/osinfo.c: Extract xml processing into a callback lib: extract osinfo DB traversing API mllib: ocaml wrapper for lib/osinfo builder: rename docs test script builder: add a template parameter to get_index
2004 Jun 15
1
Position of boot.cat
I've found with one of my collegue a strange "bug" when I'm using isolinux. I know that we are using a modified isolinux 1.76 but I'd like to know if some of you knows the reason of this. We've found that if boot.cat is located at position 740 or 569 (isoinfo -i) the cdrom is not detected are bootable on some drives whereas it works on some others. We've checked that's not a some burning troubles (tried many burners, many media) and we'd tried several drives. We can rebuild the iso any time we want, if boot.cat is located at this place some...
2006 Feb 22
1
isolinux cd does not boot
...-boot-info-table \ -x lost+found \ -x CVS \ -o "../smeserver-$distvers".iso \ . syslinux-2.11-1 from CentOS 4.2 I tried using the isolinux-debug.bin but it never loaded, the cdrom activity led flashed briefly and the pc booted from hard disk. Using isoinfo -d we noted that all previously working cd had the boot catalog stored on sector 171, while the cd that didn't boot had it on 173. We didn't find a pattern of machines/bios that have this problem, and only identified sector 173 as problematic. As a workaround, removing joilet extensions...
2006 Apr 04
1
modifying isolinux.cfg of a given, bootable iso
...g this new iso showed that all sunfolders are uppercase. Moreover, there are files which look like: BOOT.CAT;1 GPL.;1 what is the correct mkisofs command which I should issue in such a case? Is there a way to retrieve the exact syntax of mkisofs with which that iso was prepared (by some util like isoinfo)? Regards, IB
2017 Jun 16
1
[PATCH] inspection: Deprecate APIs and remove support for inspecting installer CDs.
...ct_variant; - int is_netinst_disk; - int is_multipart_disk; -#endif - - /* The regular expressions used to match ISOs. */ - pcre *re_system_id; - pcre *re_volume_id; - pcre *re_publisher_id; - pcre *re_application_id; -}; -extern int guestfs_int_osinfo_map (guestfs_h *g, const struct guestfs_isoinfo *isoinfo, const struct osinfo **osinfo_ret); - /* command.c */ struct command; typedef void (*cmd_stdout_callback) (guestfs_h *g, void *data, const char *line, size_t len); diff --git a/lib/guestfs.pod b/lib/guestfs.pod index f2a54a1fd..cd57cc337 100644 --- a/lib/guestfs.pod +++ b/lib/guestfs.po...