nose_roxete 发表于 2003-9-9 09:12:58

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

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

iceco 发表于 2003-9-9 11:45:39

忙的时候到了,学位要紧 :-D

Dragonfly 发表于 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.

nose_roxete 发表于 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"!!

Dragonfly 发表于 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.

nose_roxete 发表于 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

Dragonfly 发表于 2003-9-13 08:39:58

thx. i have a busy day and eat a mooncake.
:-D

nose_roxete 发表于 2003-9-13 09:57:36

hoho

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

Dragonfly 发表于 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.

nose_roxete 发表于 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.

Dragonfly 发表于 2003-9-16 02:04:31

sure. next time i go ny or boston. i took some picutures.

nose_roxete 发表于 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

Dragonfly 发表于 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

nose_roxete 发表于 2003-9-16 11:22:58

hoho, they are so beautiful!!!

have u ever been there?

nose_roxete 发表于 2003-9-16 12:05:34

Dragonfly大哥,又有一个问题要问你了

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

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

希望Dragonfly大哥能给点提示啊!?
thanx!
页: 1 [2] 3
查看完整版本: sorry