Commit Graph

162 Commits

Author SHA1 Message Date
prife a4d661dcf1 fix memory leak in dfs_elm.c and umount fatfs when mount fatfs fails (this bug leads to mkfs failure in linux) 2013-01-22 23:47:32 +08:00
Ming, Bai 86623c945f Update CRLF 2013-01-08 23:09:34 +08:00
Ming, Bai b4de7cce57 Re-normalizing the repo 2013-01-08 22:40:58 +08:00
prife 4bc0347b11 update dfs_xxx_mkfs in jffs2 nand uffs.c to use new args 2013-01-08 20:30:57 +08:00
prife 1e6bf8671c format dfs_elm.c with astyle 2013-01-08 19:52:00 +08:00
prife 5646189b29 elm fatfs support mkfs with no need to run dfs_mount elm first; and can mount/umount/mkfs without reset any more 2013-01-08 18:58:45 +08:00
goprife@gmail.com e10d628b47 remove the drivers in uffs/nand which is already out of date. now you can look simulator to explore how to use uffs on nand flash or Realtouch demo code on github
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2576 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-12-31 06:11:09 +00:00
goprife@gmail.com 3b2b01c375 1. fix bug in uffs_nandif.c to work with mtd nand driver; 2)clean code in uffs_nandif.c and dfs_uffs.h
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2575 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-12-31 06:07:04 +00:00
goprife@gmail.com 799ecf48c6 update uffs so it can work with mtd interface.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2558 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-12-30 03:26:34 +00:00
goprife@gmail.com fd07f30f51 fix path bug and file/dir mode bug in dfs_nfs.c
now we can create file or directory  on NFS server both with FreeNFS on windows and nfs-server on linux

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2556 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-12-29 16:55:23 +00:00
goprife@gmail.com 58fc3334b0 add dfs_fd check code in dfs and fix a warning.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2547 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-12-29 06:28:28 +00:00
goprife@gmail.com c0fadff061 dfs_fd check code should not be in fd_get, which will cause open/mkdir failed.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2546 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-12-29 05:01:02 +00:00
goprife@gmail.com 5bc586d399 fix compile warnings in dfs_elm.c to make sure type matching
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2545 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-12-29 04:14:07 +00:00
goprife@gmail.com 911cbb5793 move check dfs_fd valid code from close to fd_get
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2540 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-12-29 02:49:35 +00:00
goprife@gmail.com 1c419d428e check dfs_fd valid in close
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2539 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-12-28 13:40:52 +00:00
dzzxzz@gmail.com 69521e2c8f fixed the coding style in components/dfs
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2530 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-12-26 01:12:13 +00:00
goprife@gmail.com bcc4893d23 1) add jffs2's dirty space size to total free size 2) change JFFS2_NAME_MAX to 23
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2497 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-12-19 02:42:23 +00:00
bernard.xiong@gmail.com a741197fa7 fixed the O_APPEND and lseek issue in DFS FatFS.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2496 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-12-19 01:57:43 +00:00
goprife@gmail.com b45f14c038 1) add JFFS2_NAME_MAX to jffs2_config.h 2)fix micro conflict in include/port/fcntl.h
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2492 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-12-18 06:42:27 +00:00
goprife@gmail.com 4f7cfcd5e9 add DFS_NFS_MAX_MTU to nfs to support read/write more than one mtu data in nfs; 2) fix a bug in nfs_lseek when offset is at the end of file.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2485 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-12-15 11:37:41 +00:00
goprife@gmail.com 56ab153b1c update dfs to support NFTL
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2478 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-12-13 02:13:34 +00:00
goprife@gmail.com 6de2d5fe9f remove part of uffs configuration to rtconfig.h
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2464 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-12-02 14:28:53 +00:00
goprife@gmail.com 564ca94007 update jffs2, now it can be built with gcc(NEWLIB is needed!)
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2453 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-11-27 06:15:51 +00:00
goprife@gmail.com d5eb16dda2 fix the line break in dfs_elm.c(there are some windows line break characters)
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2413 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-11-14 16:08:00 +00:00
goprife@gmail.com 583bb26fb2 fix the bug about directory in uffs
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2412 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-11-14 15:53:54 +00:00
goprife@gmail.com eda62844c1 fix the line break character in ff.c
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2390 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-11-04 06:02:40 +00:00
goprife@gmail.com e956eedc20 fill st_blksize of struct stat in dfs_def.h(this filed has nothing to do with jffs2)
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2369 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-10-23 04:08:54 +00:00
goprife@gmail.com b45dfd0a15 change block_size to pages_per_block in dfs_uffs.c and uffs_nandif.c
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2364 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-10-22 01:19:16 +00:00
goprife@gmail.com d9b0bec989 fix bug in dfs_unmount when test unmount condition found by Rob(rdent@iinet.net.au)
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2356 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-10-20 01:59:41 +00:00
goprife@gmail.com 2bbd1496a3 update so can be build with vs2005
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2354 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-10-19 08:59:22 +00:00
sc943313837@gmail.com c77e211d1d add SYNC in function disk_ioctl
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2322 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-10-07 05:13:36 +00:00
qiuyiuestc@gmail.com 76ba5137dd export symbols in dfs_posix.c
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2304 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-09-24 12:55:35 +00:00
goprife@gmail.com 6864f3a38b fixed the memory leak in dfs_elm.c found by hezlog@gmail.com
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2292 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-09-17 02:33:18 +00:00
wuyangyong 01aa24f2c5 update elmfat: add RT_DFS_ELM_CODE_PAGE define.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2285 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-09-09 05:50:58 +00:00
iamyhw@gmail.com e39022f3c7 dfs: add format flag O_BINARY
lzo: change to use posix interface.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2283 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-09-08 03:37:46 +00:00
goprife@gmail.com 3ea99e46f3 fix bug in dfs_elm.c the fat->drv to index, because fat->drv is uninitialized in f_mount.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2256 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-08-21 10:06:59 +00:00
goprife@gmail.com 063fb36089 add f_opendir to open root directory in dfs_elm_mount to make sure that there is a valid fat
partition on physical media.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2251 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-08-08 15:46:48 +00:00
goprife@gmail.com 3dbbc479fc revert to r2247
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2250 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-08-08 15:43:07 +00:00
goprife@gmail.com 3675f263cb fix the return type of leavefs
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2249 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-08-08 15:16:03 +00:00
goprife@gmail.com 853b1259b0 add chk_mounted in dfs_elm_mount to make sure that there is a valid fat partition on physical media.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2248 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-08-08 15:09:30 +00:00
goprife@gmail.com 0919b8dab1 fix non-align bug in the mem_cpy
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2239 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-07-30 13:39:11 +00:00
goprife@gmail.com f7fbd6bc6d add two functions for elm fatfs provided by aozima
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2231 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-07-25 16:41:30 +00:00
dzzxzz@gmail.com 128a283245 fixed a spelling error and use RT_NULL instead of NULL in DFS
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2215 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-07-10 10:08:46 +00:00
dzzxzz@gmail.com fdc7dfc768 use RT_NULL instead of NULL in DFS, and format the code in DFS
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2213 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-07-10 09:25:19 +00:00
dzzxzz@gmail.com 9d4072ce59 fixed spelling errors in DFS
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2212 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-07-10 09:09:42 +00:00
dzzxzz@gmail.com 4b0e272644 delete the re-defined rt_list_entry(node, type, member) and format the code in devfs.c
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2211 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-07-10 00:42:39 +00:00
goprife@gmail.com e040266967 fix bug in f_seekdir in elm fatfs, with the patch provided by rogerz.zhang@gmail.com
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2198 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-07-01 10:36:47 +00:00
bernard.xiong@gmail.com 94d413a7a7 merge 1.0.2 modification.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2194 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-06-29 06:03:11 +00:00
goprife@gmail.com 503534a506 remove uffs/sr/test code to reduce size of source
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2179 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-06-23 18:48:53 +00:00
goprife@gmail.com 9b2ea9bc0f 1. change mtd to mtd_nor, 2. update jffs2
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2140 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-05-30 13:39:39 +00:00