[prev in list] [next in list] [prev in thread] [next in thread]
List: ros-kernel
Subject: Re: AW: [ros-kernel] IOMega Zip Drive
From: James Tabor <jimtabor () adsl-64-217-116-74 ! dsl ! hstntx ! swbell ! net>
Date: 2004-03-25 5:40:40
Message-ID: 406270D8.8000404 () adsl-64-217-116-74 ! dsl ! hstntx ! swbell ! net
[Download RAW message or body]
Hi,
Yes, I created DiskUpdateRemovableMedia function that work only once (for now),
called in disk.c IOCTL_DISK_GET_PARTITION_INFO. After some research I think
I'm on the right track. Checks if Partition number is a zero, if so check to
see if it should Update Geometry. Than it calls DURM. I'm still putting the
puzzle together on how to autorun? the Media Change.
Hartmut Birr wrote:
>
>
>>
>>
>>Need this too /drivers/fs/vfat/fsctl.c, in VfatHasFileSystem,
>>add RemovableMedia,
>>
>> if (DiskGeometry.MediaType == FixedMedia || RemovableMedia) <-----
>> {
>> // We have found a hard disk
>> Size = sizeof(PARTITION_INFORMATION);
>> Status = VfatBlockDeviceIoControl(DeviceToMount,
>>
>>IOCTL_DISK_GET_PARTITION_INFO,
>> NULL,
>> 0,
>> &PartitionInfo,
>> &Size,
>> FALSE);
>>
>
>
> Hi,
>
> vfatfs needs something like this. It needs also some more checks to
> determine if the first sector of a volumen is from a fat file system or
> not (currently not in my diff).
>
> - Hartmut
>
>
>
>
Again, Yes, need IOCTL_DISK_VERIFY or something like that. Still working it
out.
Thanks Hartmut,
James
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic