Archive

Archive for April, 2010

磁盘类,端口,小端口驱动(Class,Port,Miniport Drivers)

April 8th, 2010 mopyman No comments

During initialization, the Windows I/O manager starts the disk storage drivers. Storage drivers in Windows follow a class/port/miniport architecture, in which Microsoft supplies a storage class driver that implements functionality common to all storage devices and a storage port driver that implements functionality common to a particular bus—such as a Small Computer System Interface (SCSI) bus or an Integrated Device Electronics (IDE) system—and OEMs supply miniport drivers that plug into the port driver to interface Windows to a particular controller implementation.

系统初始化期间,windows I/O管理器开始装载磁盘存储驱动.windows中的存储驱动遵循类/端口/小端口(class/port/miniport)架构,MS提供一个存储类驱动实现与具体设备无关的、所有存储设备共同的功能特性和一个存储端口驱动实现一类特殊总线共同的功能—比如SCSI(Small Computer System Interface)总线或者IDE(Integrated Device Electronics)总线—然后OEM(Original Equipment Manufacturer)制造商提供挂接到端口驱动的小端口驱动来为windows提供到一个特殊控制器实现的访问接口。

—译自《windows internals》(5th)

Categories: Windows Tags:

ASPI,SPTI,SPTD简介

April 3rd, 2010 mopyman No comments

这三个东西都是用来支持主机与外围SCSI或ATAPI接口存储设备通讯的编程接口。ASPI(Advanced SCSI Programming Interface)是由存储领域大名鼎鼎的Adaptec于1990年代初期开发的,最初是为了支持SCSI驱动器,后来加入了ATAPI驱动器的支持。MS获取授权在windows 9x系列使用这个开发接口。后来MS在NT系列开发了自己的接口,这就是SPTI(SCSI Pass Through Interface)用以取代ASPI。NT系统默认是没有安装ASPI驱动的,不过有些存储应用程序还在使用ASPI接口,可以从Adaptec下载此驱动安装。而SPTD则是由Duplex Secure Ltd.开发的同类接口。

此外,Nero也开发了自己的ASPI驱动。其他比较有名的还有ASAPI等。

Categories: Misc Tags:

wordpress站点更换域名

April 2nd, 2010 mopyman No comments

主要是修改wp_options表里面的siteurl和home选项以及wp_posts的post_content和guid字段。

update wp_options set option_value=’http://new_domain_name’ where option_name=’siteurl’ or option_name=’home’;

update wp_posts set post_content=replace(post_content,’http://old_domain_name’,'http://new_domain_name’);

update wp_posts set guid=replace(guid,’http://old_domain_name’,'http://new_domain_name’);

Categories: Misc Tags:

Copyleft © 2009-2010 mopyman 本站为原创网站,除非另有声明,本网站采用知识共享“署名2.5 中国大陆”许可协议授权.