I wrote a filter driver over block device.

HI,
I wrote a virutal volume driver over block device , simlar with LVM,
I call it "vraid" ,I can create PV,VG,LV,it's working well.
However I cannot acess the sector over 2G , I can use the system
command "newfs -s XXXX /dev/vlun/rdsk/vlun0" to create a 2G filesystem.
If I use newfs /dev/vlun/rdsk/vlun0 to create the file system in the whole LV size,I found
If LV>2G ,the sector beyond 2G will not be located correctly. output as below.
seek\:XXXXXX Invalid argument.
So I use the system c ommand "truss" to trace the command mkfs (newfs invoke mkfs finally) ,
I found the llseek() is the matter,
When llseek() is invoked, I trace d all system callings,I found if I use llseek() to
locate some sectors, however there is no any callings ocurred in my drvier besides the
calling open() and close()/
I wonder to know why I always failed to acess the sector over 2G .
thanks and happies.
I'm sorry my poor English/
I'm in China. and I'm a Chinese girl.
Ms. Anda

My makefile is the following.:
# CC = /opt/SUNWspro/bin/cc
CC = /usr/local/bin/gcc
LD = /usr/ucb/bin/ld
# 'uname -p' command
INST = i386
INCL = -I . -I $(TOPDIR)/include
#gcc
CFLAGS = -O $(INCL) -D_KERNEL -DOS_SOLARIS -Wall
TOPDIR = ../..
BUILD = vraid
OBJS = _vraid.o        \
raid0.o \
raid1.o \
multicopy.o \
snapshot.o \
queue.o \
hash.o \
rand.o
$(BUILD) vraid_driver_setup.bin:$(OBJS)
$(LD) -r -o $(BUILD) $(OBJS)
sh -c ./generate_bin_install.sh
hash.o:hash.c
$(CC) $(CFLAGS) -o hash.o -c hash.c
_vraid.o:vraid.c
$(CC) $(CFLAGS) -o _vraid.o -c vraid.c
raid0.o:raid0.c
$(CC) $(CFLAGS) -o raid0.o -c raid0.c
raid1.o:raid1.c
multicopy.o:multicopy.c
$(CC) $(CFLAGS) -o multicopy.o -c multicopy.c
queue.o:queue.c
$(CC) $(CFLAGS) -o queue.o -c queue.c
snapshot.o:snapshot.c
$(CC) $(CFLAGS) -o snapshot.o -c snapshot.c
rand.o:rand.c
$(CC) $(CFLAGS) -o rand.o -c rand.c
clean:
rm -rf $(OBJS) $(BUILD) vraid_driver_setup.bin

Similar Messages

  • User Mode Block Device Driver

    Hi,
    I want to write a block device driver in user mode so that the read and write calls from the FileSystem comes to user mode component than a regular kernel mode driver.
    why i want to do this ... because I want to pass on the data coming to another apps and the data is near real time and large. So, I can't keep the block driver in kernel mode and do transfer of data from kernel mode to user mode.
    Can this be done ... ? I have been looking at various things but nothing comes close. Any hints will be helpful.
    Thanks
    Tarrot .

    Well. The 2 user apps cannot talk directly as User APPs2 only understands block I/O requests as input so it has to have a FS over it which is ext3. User APPs1 is an application that runs over FS and writes to it like windows explorer.
    The Problem is I am not able to find a way to write a user mode block driver. Why I want this to be user mode so that I can interface to Virtual disk below which is a user mode application, i.e. User Apps2.
    I can write a kernel mode block driver there but it would not be efficient as I will have to push it from kernel mode to user mode for userapps2.
    I hope it explains....

  • Encrypted block devices - loficc driver compiled for Solaris 10

    Hi all,
    First post, and hopefully a useful one :)
    I've managed to compile the OpenSolaris loopback block device with crypto support (loficc) on my Solaris 10 system, and it appears to work.
    Download available here: http://ashbysoft.com/download/loficc-sol10.tgz
    Phil.

    Well, much of the contents of Solaris 10 make up the base of OpenSolaris. So you could open a bug against OpenSolaris without a contract, and any fixes should eventually make their way back.
    In fact, you could recompile the driver and see how it operates. The code does show the difference you report.
       1603    * [4] Data is buffered in the driver and pre-acked to the application. This
       1604    *      is only supported in Solaris 2.5.1.(See: http://cvs.opensolaris.org/source/xref/onnv/onnv-gate.bad/usr/src/uts/common/io/scsi/targets/st_conf.c)
    However my assumption is that this flag should not be necessary. If you override the DLT7000 to remove that bit, does it crater as well? I wouldn't think that the driver acknowledgments would be required for some speed here.
    What application are you using to dump the data? 'dd' with a big buffer size? (dd if=/dev/zero of=/dev/rmt/0cbn bs=128k count=5000)? This bit should increase the speed if the app is especially sensitive to the acknowledgement time.
    Darren

  • Can you share an external hard drive over a network when your Apple Airport Extreme is in bridge mode?

    Hello, is it possible to share an external hard drive over a network when I have my Airport Extreme in bridge mode?  I can't use my AE as my main router at the moment but still want to be able to use the hard drive on the network, and the router I am using isn't capable of adding an external hard drive.  I use Windows 7 and the other router is a Netgear.  I have searched the communities and have not come across an answer to this question.  I have tried several configurations within windows to try and see the hard drive but none have worked.  I can see the hard drive when I run Airport utlities, but it cannot be seen on the network.  Thanks to anyone who can help!

    I think there is some confusion in this thread..
    If you are sharing on a local LAN port forwarding is not required.
    is it possible to share an external hard drive over a network when I have my Airport Extreme in bridge mode?
    Answer is yes.. no port forwarding, mapping whatever term is used.. is needed. Port mapping is required when you cross over a NAT router.. as long as all the devices are inside a single LAN.. then no port mapping.
    I assign to my Airport Extreme, do I do so with the settings of:
    Service: SMB
    Type: TCP
    Server IP: xx.x.x.x
    Port Start: 445
    Port End: 445
    This would not work even from WAN.. SMB is blocked by all responsible ISP.. there is simply too many unprotected windows machines out there. If they allowed SMB .. the world would be flooded with hijacked bots. And stolen data like bank accounts. SMB is not a secure protocol.
    But this is not necessary on a LAN.
    The problem can be Mavericks which does a terrible job presenting network drives.. The usual recommendations are to use AFP or force the connection to CIFS (ie SMB1 not 2).
    If you use airport,, then use AFP.
    In finder.. Go, Connect to server.
    AFP://AEname or AEIPaddress. (replace with the network name of the AE or its actual IP address).
    When asked for password.. type public if you did not change it or use whatever password you put.
    Store the password in the keychain.

  • What is the best way to compute the MD5 of a file from within a filesystem filter driver

    Greetings!
    I am developing a filesystem filter driver that monitors file creations. My driver is based on the sample code "scanner" in the DDK. I need to calculate the MD5 of the file in the PostCreate stage. I am using
    FltReadFile() to read the file where I have to read block by block - which I think is kinda inefficient. Is there a way to get the size of the file before I read ? That way I can allocate enough memory in advance and then read it in one shot.
    I don't see a FltXxxx function to read the size of the file. How do I do it ?? (Or if there is a another way to calculate MD5 that would work too)
    I also ran into another problem. For block by block reading, I use FltAllocatePoolAlignedWithTag/Free functions. I noticed that if I don't use the
    same exact variable to Free the block I get bsod. For example I allocate a block using a variable pBlock and then add it to an array of pointers. Later on I Free the blocks with array[index] - then I get the BSOD. The bug check code is BAD_POOL_HEADER.
    Any idea what is going on ? This is okay to do right ?
    Thanks
    ~B

    FltQueryInformationFile will get you the size information.  On the BSOD it is likely you are passing the wrong pointer back, give us a !analyze -v of the crash dump, so we can start the process of debugging.  Run your driver with "Driver Verifier"
    and enable special pool, to catch things.
    Don Burn Windows Driver Consulting Website: http://www.windrvr.com

  • Pavillion dv9810us DVD/CD-ROM Drive and Vista Device Manager Question..​...HELP!!!​!!

    I have a Laptop, just over a year old, runs Vista Home Premium SP2. Here is the scenario
    Hadn't used the DVD/CD-ROM drive for 3 or 4 weeks at which time it worked fine. Tried to use it a couple of days ago and discovered it wouldn't respond. I figured I needed to maybe rollback the Driver or something. I checked in the Device Manager and saw the main HDD was listed but there was no DVD/CD-ROM drive in the Device Manager List. Does Vista remove the DVD/CD-ROM drive if it's inoperable (DEAD) or has something happened that removed the Device from the List. I've had Drives go South before in Windows 98 and 2000 but they were never removed from the Device Manager List they just didn't work but I know Vista is a OS of a different color so I don't know. Just trying to figure out if I'm fighting a Hardware or Software fight here, I'm at a loss and can't afford to just take it into a shop for diagnosis. Any answers or tip on how to definitly isolate the problem would be greatly appreciated, thanks in advance for any Help.
    Len

    I have the same problem, dvdrw not showing in device manager.  Bought a new TS-L632N dvdrw by TSST and it still does not show in device manager.  This started after I ordered new recovery disk from HO (vista Home Preminum) and reloaded the OS.  I know HP knows about this problem but will not do anything about it.  Online support not good and a 500 dollar repair bill would be a waste when you can buy a new laptopn for that.

  • RESOLVED: "This driver is blocked-" issue on Windows Vista

    Hi.  I have a ThinkPad T60, originally an XP machine that came pre-installed with Roxio RecordNow.  Recently, I upgraded it to Windows Vista. Unfortunately, I did not find the information about needing to uninstall this product *before* upgrading my system to Vista until it was too late – and I know from my search for a solution, I am not the only one
    In my/our defense, the Microsoft Vista Upgrade Advisor found the potential problem before I did the upgrade but the message simply said something like “Caution.  You may have to obtain a Vista-compatible update for…” from Roxio.  This was true for drivers and sw from Lenovo too.  And, after upgrading I easily updated my ThinkPad drivers and applications by downloading the updated components from the Lenovo site.  
    But even after *purchasing* an upgrade to a newer version of Roxio's software – which their support people claimed would a) be compatible with Vista (it is) and b) fix my problem (it did not) – I cannot get rid of this issue...  
    Program Compatibility Assistant
    This driver is blocked due to compatibility issues... 
    Driver: Sonic Solutions DLA...
    Publisher: Sonic Solutions
    Location: Not Available
    A driver is installed that causes stability problems with your system…
    This error message comes up (and cannot be closed) every time I restart my PC.
    Long story short, the Microsoft and Lenovo sites (rightfully) point the finger at Roxio, but they have been of no help to me...  After having me try numerous, time-consuming things that they thought "this may work" (for example, see http://kb.roxio.com/content/kb/Creator/000127CR and http://kb.roxio.com/content/kb/Creator/000131CR their ultimate answer is “reformat your hard disk and start over with a new/clean Vista install…”
    I cannot accept this answer.  There is way too much sw on my machine, purchased and installed over the last 1.5 years and all of which gracefully (more or less) went through this upgrade with me, for me to “start all over”!!!
    I have been unable to find a solution to this problem amongst all the chatter on the net although I have found clues and I feel I may be getting close.  And so now, finally, my question...
    I now know the related software and offending driver is found in C:\SWTOOLS\APPS\MMCfTO which is where Lenovo originally installed with sw on my hard drive.  To solve my problem, can I simply delete this folder *and* find/remove the corresponding Registry keys???
    Thanks in advance to anyone here who can help me.
                -dave (Lenovo T60/Type 2623-KEU/Widows Vista updated/current)
    Message Edited by srda310 on 04-05-2008 02:01 PM
    Solved!
    Go to Solution.

    For posterity...   I was able to resolve this issue by using some tips and tricks not specifically related to my issue, but allowed me to get to a solution nonetheless.
    1) The following article was NOT written for/about Vista, so you cannot run the "REG ADD" command it suggests.  However,  you can use REGEDIT to make the suggested addition to the Registry by hand.
            see  http://mcpmag.com/columns/article.asp?editorialsid=990
    2) This change allows you to run the Control Panel / Program Uninstall in Safe Mode and then you can Uninstall the Sonic Solutions DLA software.
    Yay!
    Message Edited by srda310 on 04-04-2008 07:57 AM

  • How to load specific driver for specific device not having PnP-ID?

    Hello,
    as mentoined in a previous post I'm up to adapt an exisiting PCMCIA-based PC Card driver so that it can be used with a PCMCIA/USB adaptor (by using it's driver's IOCTLs), and already had
    some success on it: My driver loads and I can read files (for example, in Windows Explorer) from the card as it did before in "PCMCIA version" (I intend to support both with the same driver, which seems
    to work at the moment). As it did before, the driver currently creates a MTD (memory technology device). My main "problem" is how to load the driver.
    The situation is a bit complicated, I try to give as much details as possible.
    For better understanding
    The PCMCIA/USB adaptor's driver usually has following device stack: PCMCIA/SUB adaptors driver -> USB mass storage device (USBSTOR.SYS) -> Diskdrive (DISK.SYS [->PARTMGR.SYS]). For more ease - to see if my driver works in general - I installed my driver
    via INF using the PnP ID of the "USB mass storage device", with other words I "replaced" the USB mass storage driver with my own driver.
    This is my problem
    This means - and that is currently my problem - that may driver gets loaded regardless of what is attached to the PCMCIA/USB adaptor. Usually, when attached to PCMCIA, the PC card has a PnP ID the driver can be assigned to. In my case, I have no PnP ID for
    the PC card, and the driver may stop because the attached device is not supported The driver will unload properly, but the device remains with error code (in device manager).
    What I want to avoid
    I already thought about filter drivers between USBSTOR and the PCMCIA/USB adaptor's driver (#1), or above the USB mass storage device (#2). If I'm correct, that means that I have to handle URB/CBW requests for case #1 or at least SCSI requests for case #2 -
    but I'm currently not familiar with filter drivers, URB/CBW and/or SCSI. Porting the driver was quiete frustating until yet and I had to get familiar with a couple of technologies that belongs to the driver's functinaliy itselfs -
    I hope you understand that I want to avoid getting familiar with more technologies than required.
    I think there must be a way to check the device (PC card) at the PCMCIA/USB adaptor
    before my driver will be loaded, as well as removing the deivce completely if the PC card was removed (so that it disappears in device manager). But I'm currently have no idea how to do that. Is it possible to
    load my driver along the device/driver stack usually created by the PCMCIA/USB adaptor's driver?
    Some answerers likes to refer to WDK documentation and samples. In such case - because of their complexity, it would be nice to get a hint about where to start.
    Have much thanks in before for any suggestions!
    Regards,
    Willi K.

    Today's memory cards (like CFC) manage their FTL (flash translation layer) in their firmware. Our PC card is quiete old technology and does not have such firmware, this is why Windows cannot recognize the file system (FAT). For example, a request to offset
    0 may be somewhere else on our PC Card.
    I followed your suggestion and used the HWID of device that appears "above" the USB mass storage device, and my driver seems to work as it did before - OK, made no difference.
    But if my driver does not recognize the card (because it is not present or it is another PCMCIA device -> STATUS_NOT_SUPPORTED or STATUS_NO_MEDIA in driver entry), and the device is shown with exclamation mark in device manager.
    Two questions remain:
    - How can I ensure that other drivers may attach if my driver does not support the device inserted in the adapter?
    - How can I force a "re-check" of my driver if there was no card present when driver was loaded?? -> Note: A disk drive always appears in device manager - regardless if a device is attached to the apator or not

  • File is not a BLOCK device

    Hi,
    Trying to configure ASM on this device and getting the error:
    eating /dev/oracleasm mount point: /dev/oracleasm
    Loading module "oracleasm": oracleasm
    Configuring "oracleasm" to use device physical block size
    Mounting ASMlib driver filesystem: /dev/oracleasm
    Reloading disk partitions: done
    Cleaning any stale ASM disks...
    Scanning system for ASM disks...
    File "/oracle/asm/disks/nfsdisk1" is not a block device
    File "/oracle/asm/disks/nfsdisk1" is not a block device
    File "/oracle/asm/disks/nfsdisk1" is not a block device
    Cleaning any stale ASM disks...
    Unmounting ASMlib driver filesystem: /dev/oracleasm
    Unloading module "oracleasm": oracleasm
    Loading module "oracleasm": oracleasm
    Configuring "oracleasm" to use device physical block size
    Mounting ASMlib driver filesystem: /dev/oracleasm
    Reloading disk partitions: done
    Cleaning any stale ASM disks...
    Scanning system for ASM disks...
    Reloading disk partitions: done
    Cleaning any stale ASM disks...
    Scanning system for ASM disks...
    File "/oracle/asm/disks/nfsdisk1" is not a block device
    What has been done:
    dd if=/dev/zero of=/oracle/asm/disks/nfsdisk1 bs=8192 count=100000
    100000+0 records in
    100000+0 records out
    819200000 bytes (819 MB) copied, 90.3162 s, 9.1 MB/s
    also:
    /oracleasm configure
    Configuring the Oracle ASM library driver.
    This will configure the on-boot properties of the Oracle ASM library
    driver.  The following questions will determine whether the driver is
    loaded on boot and what permissions it will have.  The current values
    will be shown in brackets ('[]').  Hitting <ENTER> without typing an
    answer will keep that current value.  Ctrl-C will abort.
    Default user to own the driver interface [oracle]:
    Default group to own the driver interface [dba]:
    Start Oracle ASM library driver on boot (y/n) [y]:
    Scan for Oracle ASM disks on boot (y/n) [y]:
    Writing Oracle ASM library driver configuration: done
    Initializing the Oracle ASMLib driver:                     [  OK  ]
    Scanning the system for Oracle ASMLib disks:               [  OK  ]
    not sure what else to do..
    thanks

    Hi,
    To create Oracle ASM disks, there are some steps to do:
    - Have raw Disks, and you don't have then you can create a pseudo disks with the command dd us yours.
    - Install ASMLib
    - Use the /etc/init.d/oracleasm to configure, create ASM disks
    The command dd creates a pseudo-block disk, and this a solution: Create virtual RAW disks for Oracle ASM on Linux with single Hard Drive
    # dd if=/dev/zero of=/asm/disk4 bs=1M count=2000
    # losetup /dev/loop4 /asm/disk4
    # /etc/init.d/oracleasm createdisk ASM4 /dev/loop4
    After the creation, you should scan your ASM disks: Wadhah DAOUEHI - Creation of ASM disks on Oracle Linux using ASMLib
    # /etc/init.d/oracleasm scandisks
    # /etc/init.d/oracleasm listdisks
    Best regards

  • Devices disappearing and taking over other device objects

    Hi everyone,
    I have noticed some devices in my zone suddenly start picking up bundles and polices which are not related to their device folder. I looked in the folder where the device should be and could see that the device object has disappeared. I looked in the folder with the relationships to the bundles the device was getting and I couldnt see the device object in there either. I looked through the details of the devices in this folder and I eventually found an object with the correct Host Name and IP address of the device which had disappeared. The actual object was named differently. It looks like something has caused my device to suddenly take over another devices object in the zone.
    We register our devices using rules which use the Host Name as the filter. The host names of these devices are completely different. Can anyone suggest a reason why this may be happening?
    We are using ZCM 11 and Windows 7 64bit.
    Many Thanks in advance,
    Pete

    Originally Posted by petekdodd
    Hi everyone,
    I have noticed some devices in my zone suddenly start picking up bundles and polices which are not related to their device folder. I looked in the folder where the device should be and could see that the device object has disappeared. I looked in the folder with the relationships to the bundles the device was getting and I couldnt see the device object in there either. I looked through the details of the devices in this folder and I eventually found an object with the correct Host Name and IP address of the device which had disappeared. The actual object was named differently. It looks like something has caused my device to suddenly take over another devices object in the zone.
    We register our devices using rules which use the Host Name as the filter. The host names of these devices are completely different. Can anyone suggest a reason why this may be happening?
    We are using ZCM 11 and Windows 7 64bit.
    Many Thanks in advance,
    Pete
    To me this sounds more like a duplicate GUID issue than something going wrong with the host name based registration rules.
    Is this ZCM 11.0 or 11.1(a)? ZCM 11 should have more mechanisms in place to avoid duplicate guid issue... In any case, have a look at this TID : http://www.novell.com/support/php/se...00%20313100822
    -Willem

  • Can't have ASM mark a NFS file as an ASM disk : -is not a block device

    Hello,
    I’m trying to experiment with ASM for learning purpose. Because I don’t have access to a SAN, I am trying to use NFS files but I can’t manage to have ASM mark those files as ASM disks.
    [root@localhost /]# /etc/init.d/oracleasm createdisk ASM_DISK_1 /mnt/asm_dsks/dg1/disk1
    Marking disk "ASM_DISK_1" as an ASM disk: [FAILED]
    The oracleasm log says: File "/mnt/asm_dsks/dg1/disk1" is not a block device
    OK, more context now:
    I am trying to install ASM on a RHEL5 virtual machine (on vmware).
    [root@localhost /]# uname -rm
    2.6.18-8.el5 x86_64
    I followed this document:
    http://www.oracle.com/technology/pub/articles/smiley-11gr1-install.html until I got stuck at the following command:
    /etc/init.d/oracleasm createdisk ...
    Now, the NFS filesystem comes from a Solaris 10 system (the only one that's available) running on a physical sun box (this one is not a virtual system).
    I have tried many combinations. I tried creating the files on the linux VM, using dd. As root, as oracle. I tried creating them on the Solaris side, using mkfile... no matter what I try, I always get the same issue.
    I tried to follow this document: Creating Files on a NAS Device for Use with ASM (http://download.oracle.com/docs/html/B10811_05/app_nas.htm#BCFHCIEC)
    But nothing seems to work.
    Any idea, recommendations?
    Thanks,
    Laurent.

    Hi buddy,
    I guess the metalink note 731775.1 should help You.
    In fact the procedure is:
    - Create the disk devices on your NFS directory (using dd)
    - Adjuste the permissions over those files (in this case, oracle:dba)
    - Adjust the ASM_DISKSTRING at the ASM instance and setting the NFS directory in the discovery path
    - Verify if they are available at v$asm_disk view
    - Create the diskgroup using the the NFS disks that You have created.
    Hope it helps,
    Cerreia

  • How do I share a drive over wireless?

    I recently read an article on CNet that showed how to share a drive over wireless...on Windows.  I have a Macintosh and Airport Express 2g router.  Is it possible to share a drive over the USB port in the Airport express to other Mac or iOS devices?  For reference, I have linked to the CNet Windows sharing article below.  They didn't give any Apple instructions, so I am asking here.  Thanks in advance!
    http://www.cnet.com/how-to/share-an-external-hard-drive-over-a-wi-fi-network/

    You can share files.. with the following notes..
    Sometimes what you can do is not what you should do.
    Store files on the TC.
    This is asked several times a day.. obviously people are struggling with their latest SSD being too small.
    The TC is not suitable for network file server.. but many people having no choice press it into service as such.
    Major issues.
    1. No backup.. no way Time Machine can backup a network drive. No place to backup to.. So all your files will be at risk on the TC. And you will need to buy a third party like CCC to do backup.
    2. The TC cannot be partitioned and mixing TM backups and data is not great. It was and is and ever shall be a backup device for Time Machine.
    3. The drive is slow to spin up and quick to spin down.. there is no control. In fact the TC is so lacking in controls for even the router side.. that you cannot do more than the most basic of setups.
    The following are controls on the hard disk side.
    Reformat it. You can name the share. You can do a full archive of the whole disk. This will go at a speed of aprox. 30-50GB/Hr so calculate how long an archive of a full 2TB will take.
    4. iPhoto in particular can easily corrupt its entire library with wireless networking causing a disconnection to one photo. Even if you do this;;; do not move your photo library... you have been warned!!
              Even apple btw say don’t do it.
    http://support.apple.com/kb/TS5168 Although mostly about FAT32           it adds network drives.
    5. iTunes can constantly lose connection to the library. The disk is slow to respond.. itunes on the computer will constantly spit out errors. Even in the midst of streaming the TC can spin down the disk due to caching.
    6. Do not use any live files on the TC no matter what else you do.. if you edit files in whatever program the file must be on the local hard disk.
    7. The only suitable location for most libraries is a computer. You can plug in an external hard disk.
    Read pondini for some work arounds.
    Q3 here. http://pondini.org/TM/Time_Capsule.html

  • Oracle VM Migrating virtual disk images to physical disks (block devices)

    Hi,
    For performance reasons, I'd like to migrate my .img file based virtual disks into physical partitions for VM's.
    What is the safest possible way to migrate all partitions (including / partition) from a virtual disk to a block device?
    Thanks,
    Onur

    hobeygo wrote:
    What is the safest possible way to migrate all partitions (including / partition) from a virtual disk to a block device?Create block devices the same size as your .img files and then use dd to copy the contents of the .img file to the block device. Your VMs need to be offline while you do this. Once you've done this, you can use Oracle VM Manager to remove the original .img file and replace it with the physical block device copy. This is low-risk, as the .img file will still be there if the new block device doesn't work.
    Keep in mind that you will need a unique block device for every .img file you have.

  • Mount: not a block device

    i have created a solaris lun and trying to view the same from my solaris console. i want to perform i/o operations on the lun; how do i mount it? 'coz mount command gives "not a block device" error.

    It depends on the specific driver, but you usually want to mount the 'dsk' device and not the 'rdsk' device.
    Darren

  • WDM upper filter for "Windows Portable Devices" device class

    Hi folks,
    I have a WDM filter driver, based on WDK toaster sample, that I am using to filter portable devices (mainly Phones), as upper filter. During AddDevice phase, I am querying device properties (such Description, Manufacturer and so on) and then attaching
    to device. I can see the IRP_MN_START_DEVICE, which I send down to next lower driver after setting a completion routine.
    This is working fine on most of the machines I am testing on, but on some systems (every XP and some Windows 7 and Server 2008), when I send the IRP_MN_START_DEVICE down to next driver, I get a STATUS_DEVICE_CONFIGURATION_ERROR, so this is preventing the
    device from being installed in the first place.
    I have managed to overcome this error by editing the hardware ID registry key for the device and creating "UpperDriverOk" and "KernelModeClientPolicy" values, setting them to 1.
    This way the device starts without issues and I can filter it as normal.
    Now, I am aware of Portable Devices being managed by an UMDF driver, but does that explains the issue with Start Device phase? 
    I haven't found any differences between those systems with the issue and those that are working fine without needing the "registry values" workaround.
    Is there any system setting or service configuration that might be helping (or ruining) this filtering scenario?
    Would it be possible to apply the "KernelModeClientPolicy" workaround for the whole system and not separately for every single Phone device?
    Thanks a lot in advance!

    Hi Kumar, thanks for your response.
    By "inbox WPD driver" you mean the 3rd party driver that controls the WPD device, right?
    Is that policy mandatory? Because when I plug my Nokia Lumia 520, I don't see that value set in registry.
    Anyway, what I would like to know is, why is IRP_MN_START_DEVICE failing in Server 2008, and working fine in Windows 7, with the same device and the same WDM filter? 
    Thanks!

Maybe you are looking for