06 2011 档案

摘要:2011-06-29-h磁带机和磁带库中的NAA是不相同的,要改正!VPD80中的相应字段是右对齐,需注意sz02684838@163.gdLOLIHGMK123456@abc 阅读全文
posted @ 2011-06-29 22:01 阳光特区 阅读(225) 评论(1) 推荐(0)
摘要:1、struct inode──字符设备驱动相关的重要结构介绍内核中用inode结构表示具体的文件,而用file结构表示打开的文件描述符。Linux2.6.27内核中,inode结构体具体定义如下:struct inode {struct hlist_node i_hash;struct list_head i_list;struct list_head i_sb_list;struct list_head i_dentry;unsigned long i_ino;atomic_t i_count;unsigned int i_nlink;uid_t i_uid;gid_t i_gid;dev 阅读全文
posted @ 2011-06-24 23:12 阳光特区 阅读(24783) 评论(0) 推荐(0)
摘要:内核态获取文件详细信息#include <linux/kernel.h>#include <linux/module.h>#include <linux/init.h>#include <linux/fs.h>#include <linux/string.h>#include <linux/mm.h>#include <linux/syscalls.h>#include <asm/unistd.h>#include <asm/uaccess.h>#define MY_FILE " 阅读全文
posted @ 2011-06-24 22:50 阳光特区 阅读(2187) 评论(0) 推荐(0)
摘要:下面是这段时间抓包遇到的所有命令(可能还有遗漏),黑色(*)为第一阶段需要实现的*1、Inquiry:12h*1)00/00:标准页Standard INQUIRY page (SPC)厂商、型号、类型根据LUN信息返回Peripheral device type=01h(SSC-3)或者Media changer device(SMC-3)*2)01/00:所有支持的VPD页Supported VPD Pages VPD page(SPC)*3)01/80:LUN序列号Unit Serial Number VPD page(SPC)*4)01/83:设备标识Device Identifica 阅读全文
posted @ 2011-06-11 15:03 阳光特区 阅读(740) 评论(4) 推荐(0)