Hi!
I (still) have a problem with mounting my FS
Partition. In the mount IRP handler, I try to read
the first 512 bytes of data (boot sector). I hava a
problem with this.
This is what I do.
//*************************************************
//Edited code snippetâŠ
//*************************************************
IrpSp = IoGetCurrentIrpStackLocation( Irp );
TargetDeviceObject =
IrpSp->Parameters.MountVolume.DeviceObject;
ByteOffset = 0;
NumberOfBytesToRead = 512;
Irp = IoBuildSynchronousFsdRequest( IRP_MJ_READ,
TargetDeviceObject,
Buffer,
NumberOfBytesToRead,
&ByteOffset,
&Event,
&Iosb );
IoCallDriver( TargetDeviceObject, Irp );
// I now wait on the event if necessary âŠ
//*****************************************************
I have three FAT 32 partitions (extended). I am
able to read the first 512 bytes for those partitions
just fine.
I also have an NTFS (boot) partition and a ext2
(primary) partition.
I get one mount before the FAT 32 mount requests,
and one after loggin in. For those, what I read is the
first sector of the disk, not that of the ext2
partition.
Now questions. I should be getting a request for
the ext2 partition also, right? If so, why am I not
able to read the first sector of the partition? Am I
making some wrong assumptions or doing something
wrong?
Thanks in advance for any suggestions you can give me.
Manoj
=====
Manoj Paul Joseph,
Master of Computer Applications (final year student),
School of Computer Science and Engineering,
Anna University,
Chennai (Madras),
India.
Do You Yahoo!?
Everything youâll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
You are currently subscribed to ntfsd as: $subst(âRecip.EmailAddrâ)
To unsubscribe send a blank email to leave-ntfsd-$subst(âRecip.MemberIDCharâ)@lists.osr.com