search for: driveinfo

Displaying 20 results from an estimated 24 matches for "driveinfo".

Did you mean: driverinfo
2005 Feb 07
7
win32-driveinfo in CVS
Hi all, I committed win32-driveinfo 0.1.0 to CVS. What is it? =========== A class for getting information of drives Synopsis ======== include Win32::DriveInfo (sectorsPerCluster, bytesPerSector, numberOfFreeClusters, totalNumberOfClusters, freeBytesAvailableToCaller, totalNumberOfBytes, tota...
2010 Apr 27
2
gpllib write_sectors() patch
...tch below I put an #if 0 around the old code to demonstrate how it differs from diskio.c I also added a call to get_drive_parameters() so that it would be like the gpllib/read.c However, it would probably be best to not have to call get_drive_parameters every time so they should be supplied in the driveinfo struct (for both read and write). /** * write_sectors - write several sectors from disk @@ -37,9 +55,14 @@ int write_sectors(const struct driveinfo *drive_info, const unsigned int lba, { com32sys_t inreg, outreg; struct ebios_dapa *dapa = __com32.cs_bounce; - void *buf = (char *)_...
2009 Oct 27
0
[PATCH 1/4] Add 'raid' interface class
...; scsi_completionfn complete; - SCSIDevice *devs[8]; + SCSIDevice *devs[128]; }; void scsi_bus_new(SCSIBus *bus, DeviceState *host, int tcq, int ndev, @@ -63,5 +80,6 @@ static inline SCSIBus *scsi_bus_from_device(SCSIDevice *d) SCSIDevice *scsi_bus_legacy_add_drive(SCSIBus *bus, DriveInfo *dinfo, int unit); void scsi_bus_legacy_handle_cmdline(SCSIBus *bus); +int32_t scsi_build_sense(uint8_t *sense_buf, uint32_t sense); #endif diff --git a/qemu-config.c b/qemu-config.c index 4fb7898..8d7a137 100644 --- a/qemu-config.c +++ b/qemu-config.c @@ -18,7 +18,7 @@ QemuOptsList qemu_drive_...
2009 Oct 27
0
[PATCH 1/4] Add 'raid' interface class
...; scsi_completionfn complete; - SCSIDevice *devs[8]; + SCSIDevice *devs[128]; }; void scsi_bus_new(SCSIBus *bus, DeviceState *host, int tcq, int ndev, @@ -63,5 +80,6 @@ static inline SCSIBus *scsi_bus_from_device(SCSIDevice *d) SCSIDevice *scsi_bus_legacy_add_drive(SCSIBus *bus, DriveInfo *dinfo, int unit); void scsi_bus_legacy_handle_cmdline(SCSIBus *bus); +int32_t scsi_build_sense(uint8_t *sense_buf, uint32_t sense); #endif diff --git a/qemu-config.c b/qemu-config.c index 4fb7898..8d7a137 100644 --- a/qemu-config.c +++ b/qemu-config.c @@ -18,7 +18,7 @@ QemuOptsList qemu_drive_...
2015 Aug 07
1
[PATCH] com32: write_sectors fixes
...be SECTOR * size for sectors operation. Signed-off-by: Robert <luyao-c at 360.cn> diff --git a/com32/gpllib/disk/write.c b/com32/gpllib/disk/write.c index d183ade..3c9edff 100644 --- a/com32/gpllib/disk/write.c +++ b/com32/gpllib/disk/write.c @@ -40,7 +40,7 @@ int write_sectors(const struct driveinfo *drive_info, const unsigned int lba, void *buf; int rv = -1; - buf = lmalloc(size); + buf = lmalloc(SECTOR * size); if (!buf) return -1; @@ -48,7 +48,7 @@ int write_sectors(const struct driveinfo *drive_info, const unsigned int lba, if (!dapa) goto out; - memc...
2012 Jun 26
2
[GIT PULL] elflink bug fixes
...} else if (type == KT_CONFIG) { char *argv[] = { "ldlinux.c32", NULL }; diff --git a/com32/gpllib/disk/geom.c b/com32/gpllib/disk/geom.c index 9e673ed..e109520 100644 --- a/com32/gpllib/disk/geom.c +++ b/com32/gpllib/disk/geom.c @@ -120,7 +120,7 @@ static int detect_extensions(struct driveinfo *drive_info) static int get_drive_parameters_with_extensions(struct driveinfo *drive_info) { com32sys_t inreg, outreg; - struct edd_device_parameters *dp = __com32.cs_bounce; + struct edd_device_parameters *dp; memset(&inreg, 0, sizeof inreg); @@ -134,6 +134,10 @@ static i...
2005 Feb 07
4
network drives
Another nicety may be handling network drives. I''ve been using a ruby script which manipulate using the "net use" command to map network drives, disconnect network drives, query to see what drives are connected, etc..., but it''d be sweet if this type of functionality was included in win32 package. Maybe usage like: nd = Win32::NetworkDrive.new(
2005 Jul 15
1
Win32OLE ?
Dan/Park, What are your thoughts about implemented portion of the win32utils family that are written in ruby utilizing WIN32OLE. I have found myself writing decent amount of ruby code accessing the Windows Scripting Host (WSH) object models. I have a few scripts which could be added. I do not believe the functionality is currently available with win32utils: - map network drives -
2005 Feb 27
0
Re: test/unit report attached
Hi Shanko, I''ve read over the testunit results that you posted. First, please do not include win32-thread or win32-driveinfo. The former is extremely beta. The latter I want to reshape a bit before we release it. Other tests: You can ignore the LINK warnings. win32-dir - These failures are expected. Ignore. win32-file - You can ignore the warnings regarding File.encrypt and File.decrypt. It may or may not work, de...
2010 Sep 19
2
can't get write_sectors to work...
Hi, Hopefully you someone can tell me what I'm doing wrong. First, the code. I placed this at the bottom of the main loop in com32/modules/disk.c as a simple test of writing to the disk: printf(" Host bus: %s, Interface type: %s\n\n", d->edd_params.host_bus_type, d->edd_params.interface_type); zero_buf = calloc(1, d->edd_params.bytes_per_sector); for(int
2012 Oct 15
1
[QEMU PATCH v4] create struct for machine initialization arguments
...ollie_init(QEMUMachineInitArgs *args) { + const char *cpu_model = args->cpu_model; + const char *kernel_filename = args->kernel_filename; + const char *kernel_cmdline = args->kernel_cmdline; + const char *initrd_filename = args->initrd_filename; StrongARMState *s; DriveInfo *dinfo; MemoryRegion *sysmem = get_system_memory(); diff --git a/hw/dummy_m68k.c b/hw/dummy_m68k.c index 7cc7a99..f436a0c 100644 --- a/hw/dummy_m68k.c +++ b/hw/dummy_m68k.c @@ -16,11 +16,11 @@ /* Board init. */ -static void dummy_m68k_init(ram_addr_t ram_size, - const...
2007 Dec 21
0
[Virtio-for-kvm] [PATCH 3/7] userspace virtio
...159d 100644 --- a/qemu/sysemu.h +++ b/qemu/sysemu.h @@ -117,7 +117,7 @@ extern unsigned int nb_prom_envs; #endif typedef enum { - IF_IDE, IF_SCSI, IF_FLOPPY, IF_PFLASH, IF_MTD, IF_SD + IF_IDE, IF_SCSI, IF_FLOPPY, IF_PFLASH, IF_MTD, IF_SD, IF_VIRTIO } BlockInterfaceType; typedef struct DriveInfo { diff --git a/qemu/vl.c b/qemu/vl.c index 28c5df4..26055a4 100644 --- a/qemu/vl.c +++ b/qemu/vl.c @@ -4970,6 +4970,9 @@ static int drive_init(const char *str, int snapshot, QEMUMachine *machine) } else if (!strcmp(buf, "sd")) { interface = IF_SD; max_devs = 0;...
2007 Dec 21
0
[Virtio-for-kvm] [PATCH 3/7] userspace virtio
...159d 100644 --- a/qemu/sysemu.h +++ b/qemu/sysemu.h @@ -117,7 +117,7 @@ extern unsigned int nb_prom_envs; #endif typedef enum { - IF_IDE, IF_SCSI, IF_FLOPPY, IF_PFLASH, IF_MTD, IF_SD + IF_IDE, IF_SCSI, IF_FLOPPY, IF_PFLASH, IF_MTD, IF_SD, IF_VIRTIO } BlockInterfaceType; typedef struct DriveInfo { diff --git a/qemu/vl.c b/qemu/vl.c index 28c5df4..26055a4 100644 --- a/qemu/vl.c +++ b/qemu/vl.c @@ -4970,6 +4970,9 @@ static int drive_init(const char *str, int snapshot, QEMUMachine *machine) } else if (!strcmp(buf, "sd")) { interface = IF_SD; max_devs = 0;...
2014 Nov 28
2
[PATCH] Add ldisk.c32 Lua module
...LE_STRING_STRING(state, key, value) do {\ + lua_pushstring((state), (key));\ + lua_pushstring((state), (const char*) (value));\ + lua_settable((state), -3);\ +} while(0); + +static int get_disks(lua_State* L) { + lua_newtable(L); + int i = 1; + for (int id = 0x80; id < 0xff; id++) { + struct driveinfo info = { + .disk = id, + }; + if (get_drive_parameters(&info) == -1 // disk does not exist + || !info.cbios) { // is not an hdd (-> a cdrom or whatever) + continue; + } + lua_pushinteger(L, i); + lua_newtable(L); + SET_TABLE_STRING_INT(L, "id", id); + // legacy info...
2005 Feb 14
8
DONT_RESOLVE_DLL_REFERENCES info
For future reference, it looks like we should avoid DONT_RESOLVE_DLL_REFERENCES in any extensions. http://weblogs.asp.net/oldnewthing/archive/2005/02/14/372266.aspx Regards, Dan
2011 Jan 30
5
RHEL-6 vs. CentOS-5.5 (was: Static assignment of SCSI device names?)
Hello list members, My adventure into udev rules has taken an interesting turn. I did discover a stupid error in the way I was attempting to assign static disk device names on CentOS-5.5, so that's out of the way. But in the process of exploring, I installed a trial copy of RHEL-6 on the new machine to see if anything had changed (since I intend this box to run CentOS-6 anyway). Lots
2012 Feb 08
28
[PATCH v3 0/6] initial suspend support
This patch series makes suspend support in qemu alot more useful. Right now the guest can put itself into s3, but qemu will wakeup the guest instantly. With this patch series applied the guest will stay suspended instead and there are a few events which can kick the guest out of suspend state: A monitor command, ps/2 input, serial input, rtc. Not much yet, but it''s a start with the
2012 Jan 24
2
[PATCH 26/28] pci: convert to QEMU Object Model
...DEFINE_PROP_HEX32("membase", PCIi82378State, isa_mem_base, 0xc0000000), DEFINE_PROP_END_OF_LIST() diff --git a/hw/ide/cmd646.c b/hw/ide/cmd646.c index 99e7e6f..9c673bb 100644 --- a/hw/ide/cmd646.c +++ b/hw/ide/cmd646.c @@ -325,20 +325,28 @@ void pci_cmd646_ide_init(PCIBus *bus, DriveInfo **hd_table, pci_ide_create_devs(dev, hd_table); } -static PCIDeviceInfo cmd646_ide_info = { - .qdev.name = "cmd646-ide", - .qdev.size = sizeof(PCIIDEState), - .init = pci_cmd646_ide_initfn, - .exit = pci_cmd646_ide_exitfn, - .vendor_id = PCI...
2009 Oct 27
1
[PATCH 2/4] megasas: LSI MegaRAID SAS HBA emulation
...); + + scsi_bus_new(&s->bus, &dev->qdev, 1, MAX_RAID_DEVS, NULL); + memset(s->luns, 0, sizeof(struct megasas_lun_t) * MAX_RAID_DEVS); + for (unit = 0; unit < MAX_RAID_DEVS; unit++) { + struct megasas_lun_t *lun = &s->luns[unit]; + SCSIBus *bus = &s->bus; + DriveInfo *dinfo; + + dinfo = drive_get(IF_RAID, bus->busnr, unit); + if (dinfo == NULL) + continue; + lun->bdrv = dinfo->bdrv; + lun->sdev = scsi_bus_legacy_add_drive(bus, dinfo, unit); + if (!lun->sdev) { + DPRINTF("Cannot allocate drive %d\n", unit); + lun->bdrv = N...
2009 Oct 27
1
[PATCH 2/4] megasas: LSI MegaRAID SAS HBA emulation
...); + + scsi_bus_new(&s->bus, &dev->qdev, 1, MAX_RAID_DEVS, NULL); + memset(s->luns, 0, sizeof(struct megasas_lun_t) * MAX_RAID_DEVS); + for (unit = 0; unit < MAX_RAID_DEVS; unit++) { + struct megasas_lun_t *lun = &s->luns[unit]; + SCSIBus *bus = &s->bus; + DriveInfo *dinfo; + + dinfo = drive_get(IF_RAID, bus->busnr, unit); + if (dinfo == NULL) + continue; + lun->bdrv = dinfo->bdrv; + lun->sdev = scsi_bus_legacy_add_drive(bus, dinfo, unit); + if (!lun->sdev) { + DPRINTF("Cannot allocate drive %d\n", unit); + lun->bdrv = N...