On 2010-12-01 20:19, davidMbrooke wrote: > On Wed, 2010-12-01 at 09:21 +0100, Per Sjoholm wrote: >> Hi >> There is also the issue of missing ioctl's for a disk.img > Per: Sorry, I don't understand. Could you explain please? I'm not a Unix kernel programmer, I'm tester and a system integrator and verificator. Some one more familiar with ioctl can explain in more detail. When using hardware different programs can read information with ioctl. man ioctl: The ioctl() function manipulates the underlying device parameters of special files.
When have real hardware, they can be queried for information. Most program are tested for real hardware and rely on that ioctls are providing proper information. When we are working with disk image and/or in emulated world the ioctl don't have the needed information and we are also in a not well defined territory for the programs. Take fdisk as an example ask for disk parameters(CHS). Take qemu (write a hd image) and try to mount it or run fdisk in host environment. It's not just a the information in the image it's also about missing data/information in ioctls calls. It can be done http://madduck.net/blog/2006.10.20:loop-mounting-partitions-from-a-disk-image/ providing you knew what you are doing and can adjust depending on situation. /Per ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ leaf-devel mailing list leaf-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/leaf-devel