|
求教编写磁盘驱动写保护,磁盘过滤层WriteFile返回STATUS_MEDIA_WRITE_PROTECTED无效
SCSIOP_MODE_SENSE这种针对磁盘层过滤的方式,动态设置是立即生效的吗?是否需要类似卷过滤,还要执行dismount啥的使其立即生效啊? 我这个主要是想用在U盘或者第二块硬盘上的 |
|
求教编写磁盘驱动写保护,磁盘过滤层WriteFile返回STATUS_MEDIA_WRITE_PROTECTED无效
看大大的讨论,大开眼界啊,谢谢大大们~~ ITSailor大大给出的方法非常有效啊,谢谢啊! |
|
|
|
求教编写磁盘驱动写保护,磁盘过滤层WriteFile返回STATUS_MEDIA_WRITE_PROTECTED无效
dismount我知道。 “在这个过程中通知卷过滤驱动某个devctl中返回”,是指:通知过滤驱动,指定卷(被dismount的卷)下次发出IOCTL_DISK_IS_WRITABLE查询请求时,返回STATUS_MEDIA_WRITE_PROTECTED,是吗? “然后再mount(这个让fs自己做就行了)” mount是由文件系统自动做的,自动激发的,是吧?我不明白的是,在dismount后,什么情况下,或是多久后,文件系统会自动mount这个卷啊? |
|
求教编写磁盘驱动写保护,磁盘过滤层WriteFile返回STATUS_MEDIA_WRITE_PROTECTED无效
是在我写的卷层过滤驱动中的IRP_MJ_DEVICE_CONTROL处理IOCTL_DISK_IS_WRITABLE是吧?我试下啊 谢谢大大啊, 我马上改程序试下。 |
|
求教编写磁盘驱动写保护,磁盘过滤层WriteFile返回STATUS_MEDIA_WRITE_PROTECTED无效
我想当然了,谢谢大大指出啊。 |
|
求教编写磁盘驱动写保护,磁盘过滤层WriteFile返回STATUS_MEDIA_WRITE_PROTECTED无效
不是吧,sfilter和minifilter是文件系统层过滤吧?应该比磁盘层和磁盘卷层更复杂吧?因为文件系统过滤,我感觉,可能至少需要考虑FAT32和NTFS两种格式吧,甚至U盘的FAT格式。 我想做磁盘写保护,感觉只处理磁盘层和磁盘卷层应该就能够搞定了吧? |
|
求教编写磁盘驱动写保护,磁盘过滤层WriteFile返回STATUS_MEDIA_WRITE_PROTECTED无效
嗯,我的磁盘卷过滤驱动,就是直接拿《寒江独钓》的代码改的。他磁盘卷那一章讲的是还原驱动,没有讲如何实现写保护的。 我就是在他的代码上,加上WriteFile处理里直接返回STATUS_MEDIA_WRITE_PROTECTED的。 |
|
|
|
|
|
想做个硬盘克隆软件,ZwWriteFile写硬盘速度慢,折腾了我2个多星期了,大侠帮帮忙啊!
谢谢支持,现在找到原因是了,是buffer大小的问题! |
|
想做个硬盘克隆软件,ZwWriteFile写硬盘速度慢,折腾了我2个多星期了,大侠帮帮忙啊!
速度提上去了,谢谢啊! 搞了半天,就是buffer大小的原因,╮(╯▽╰)╭ 其实,我有个主要被误导的原因是,当时我用64K做buffer的时候,读是满速的,所以我就没想到这个原因上去,惭愧啊! |
|
|
|
想做个硬盘克隆软件,ZwWriteFile写硬盘速度慢,折腾了我2个多星期了,大侠帮帮忙啊!
谢谢指点啊,我试试看咯,呵呵 |
|
想做个硬盘克隆软件,ZwWriteFile写硬盘速度慢,折腾了我2个多星期了,大侠帮帮忙啊!
这位大哥,有什么相关资料吗?能说的稍微详细点吗?我google没找到相关的编程实现信息啊! |
|
想做个硬盘克隆软件,ZwWriteFile写硬盘速度慢,折腾了我2个多星期了,大侠帮帮忙啊!
谢谢啊! 但是我的设计,本来就是多线程的,问题不在这里,仅在于写入的速度慢! 我这个克隆是针对硬盘操作的。如果多线性写入不同位置,还要增加寻道的负担,更慢啊! |
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值