QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

楼主: Dragonfly

sorry

[复制链接]
发表于 2003-9-9 09:12:58 | 显示全部楼层
事实上我还对我这次的工作还不是很清楚
大概就是我要把一些从一个fifo队列中读出来的数据(这个队列是在一个没有操作系统的单片机上,而读出来的数据自然也没有任何的文件格式,只是一个一个的字)写到一个u盘上,而且是要按照fat16的格式写,以便于linux系统或者说windows系统能够读出里面的数据.可能就是这个样子了.
我还不知道怎么下手,郁闷!
内核中fat16 support的源码是哪个呢?我看linux/fs下面有个fat文件夹,但是我看里面的内容好象和我的东西没有关系啊!希望Dragonfly大哥能够指点一下!
thanx!

btw:你的博士论文进度如何了? :-)  :-)
回复

使用道具 举报

发表于 2003-9-9 11:45:39 | 显示全部楼层
忙的时候到了,学位要紧
回复

使用道具 举报

 楼主| 发表于 2003-9-10 10:57:41 | 显示全部楼层
*if u read data from a fifi queue, can u read it at user space? if so, then write it as a normal file.
*if u have to read at kernel space, check LTT to see how to transfer the data to user space and then write use file operations.
*if u do not know what is LTT, try to do file write operation at kernel level.
anyway, u need not to operate on fat directly.
回复

使用道具 举报

发表于 2003-9-10 15:18:30 | 显示全部楼层
my project manager tell me that he want me to study the file system, in order that i cannt perform the ATA driver in the future. hoho..........

now i am finding the fat16 official document and the source code for fat16.

i am not so familiar with the linux source code, could u tell me which source code or doc is for fat16?

thanx,Dragonfly "dage"!!
回复

使用道具 举报

 楼主| 发表于 2003-9-11 01:29:41 | 显示全部楼层
fat is beyond block device layer. so you can not know how to operate on ata directly via study fat16.

http://www.ntfs.com/fat-systems.htm. and there are many sites have content on fat.
/usr/src/linux/Documentation/filesystems/vfat.txt also has some on vfat.

there are four fs related with fat in kernel.
    <*> DOS FAT fs support
  │ │       <*>   MSDOS fs support
  │ │       <*>     UMSDOS: Unix-like file system on top of standard MSDOS fs
  │ │       <*>   VFAT (Windows-95) fs support
all under /usr/src/linux/fs/fat/*

but if u are not familiar with kernel source, u will have trouble to understand them. u had better read chapter 12 in ULK2 and chapter 5 in QJFX to know some about vfs in linux.


good luck.
回复

使用道具 举报

发表于 2003-9-11 10:11:43 | 显示全部楼层
hoho, i have downloaded these two books, while i havent read them by now.

thanks for remind me !




good luck, too!
Merry Mid-autumn Festival to you!!!hoho
回复

使用道具 举报

 楼主| 发表于 2003-9-13 08:39:58 | 显示全部楼层
thx. i have a busy day and eat a mooncake.
回复

使用道具 举报

发表于 2003-9-13 09:57:36 | 显示全部楼层
hoho

u can buy mooncake there? or someone posted it to u from China?!
回复

使用道具 举报

 楼主| 发表于 2003-9-13 23:17:48 | 显示全部楼层
hehe, america is not as what u assumed. so the communication is important.
i live in a small town. we have a chinese food store (oriental market) about 1.5 mile (1 mile =1.6 km) away. each friday, the store operator will go to NY and get some chinese food and vegetable for us. the price is of course expensive than in china, but at least u can get it.
the ny china town are full of chinese people, and it looks like a huge "cai shi chang" in a china city, with some hotels and resturants. maybe oneday when i go to there, i can take some pictures and show you.
回复

使用道具 举报

发表于 2003-9-15 09:28:12 | 显示全部楼层
really?hoho, i am waiting for ur pictures now!

the china town, the "cai shi chang"?!   i really expect to see that.
回复

使用道具 举报

 楼主| 发表于 2003-9-16 02:04:31 | 显示全部楼层
sure. next time i go ny or boston. i took some picutures.
回复

使用道具 举报

发表于 2003-9-16 09:55:03 | 显示全部楼层
Are the two cites near by?

then what about LA? will you go there sometime? Although i know it's far from NY. hoho
回复

使用道具 举报

 楼主| 发表于 2003-9-16 11:03:09 | 显示全部楼层
boston to ny 210 miles

la? too far away.

show u some pictures, about Longwood Garden and Acadia National Park. u can get intro about them from web by searching use the name.

http://crab.ele.uri.edu/publicpic
回复

使用道具 举报

发表于 2003-9-16 11:22:58 | 显示全部楼层
hoho, they are so beautiful!!!

have u ever been there?
回复

使用道具 举报

发表于 2003-9-16 12:05:34 | 显示全部楼层
Dragonfly大哥,又有一个问题要问你了

我的文件系统的删除和格式化功能不知道该怎么弄呢
我觉得是不是就是把fat表中要删除的那一项修改成空白或者是什么就可以了?那格式化是不是就是把整个分区的fat表全部修改为空白或是什么?

反正现在感觉比较乱,不知道怎么下手呢
我在内核里面找了一下也没有找到关于关于fat文件系统的删除及格式化功能的代码,想参考一下都不行!郁闷中

希望Dragonfly大哥能给点提示啊!?
thanx!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-16 09:58 , Processed in 0.039917 second(s), 12 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表