1 |
786 |
skrzyp |
2010-03-29 Oyvind Harboe
|
2 |
|
|
Jonathan Larmour
|
3 |
|
|
|
4 |
|
|
* src/ramfs.c (add_direntry): Fix directory file name corruption
|
5 |
|
|
with the SIMPLE allocation method: do not cache pointers returned
|
6 |
|
|
from findbuffer_node(), but do a fresh lookup based on position.
|
7 |
|
|
|
8 |
|
|
2010-02-27 Sergei Gavrikov
|
9 |
|
|
|
10 |
|
|
* src/ramfs.c (find_entry): Fixed wrong type for a local counter
|
11 |
|
|
(namelen): s/char/int/.
|
12 |
|
|
|
13 |
|
|
2009-04-28 John Dallaway
|
14 |
|
|
|
15 |
|
|
cdl/ramfs.cdl: Use CYGPKG_IO_FILEIO as the parent.
|
16 |
|
|
|
17 |
|
|
2008-04-02 Xinghua Yang
|
18 |
|
|
Taiyun Wang
|
19 |
|
|
|
20 |
|
|
* cdl/ramfs.cdl: Use CYGPKG_FS_RAM_RET_DIRENT_DTYPE to control
|
21 |
|
|
whether ram sets file type in ramfs_fo_dirread.
|
22 |
|
|
* src/ramfs.c: Set file type in ramfs_fo_dirread.
|
23 |
|
|
* tests/ramfs1.c: Test the new d_type in dirent when present.
|
24 |
|
|
|
25 |
|
|
2006-10-05 Andrew Lunn
|
26 |
|
|
Paluch Sebastian
|
27 |
|
|
|
28 |
|
|
* test/ramfs3 (new): Test for lseek bug found in fileio.
|
29 |
|
|
* cdl/ramfs.cdl: Build new test.
|
30 |
|
|
|
31 |
|
|
2006-06-25 Andrew Lunn
|
32 |
|
|
|
33 |
|
|
* src/ramfs.c (find_direntry): Don't search off the end of the
|
34 |
|
|
directory node into hyperspace.
|
35 |
|
|
* src/ramfs.c (ramfs_getinfo): Support for block usage call.
|
36 |
|
|
* tests/ramfs1.c (main): Add file system block usage test.
|
37 |
|
|
|
38 |
|
|
2006-05-17 Andy Jackson
|
39 |
|
|
|
40 |
|
|
* tests/ramfs1.c (createfile): Fix compile warnings.
|
41 |
|
|
|
42 |
|
|
2005-10-01 Andrew Lunn
|
43 |
|
|
|
44 |
|
|
* src/ramfs.c: Implement holes in files when using BLOCK
|
45 |
|
|
allocation method. This requires allowing lseek to go past the end
|
46 |
|
|
of the file.
|
47 |
|
|
|
48 |
|
|
* test/ramfs2.c: Extended the lseek test to now seek past the end
|
49 |
|
|
of the file. With the BLOCK allocation method this will create a
|
50 |
|
|
whole. With the SIMPLE allocation method is just allocates the
|
51 |
|
|
memory and fills it with zero.
|
52 |
|
|
|
53 |
|
|
* cdl/ramfs.cdl: Added in interface which both SIMPLE and BLOCK
|
54 |
|
|
implement. This allows the inference engine to work out is should
|
55 |
|
|
enable BLOCK if SIMPLE is disabled by the user.
|
56 |
|
|
|
57 |
|
|
2005-10-01 Dan Jakubiec
|
58 |
|
|
|
59 |
|
|
* src/ramfs.c: (ramfs_mount, ramfs_open, ramfs_mkdir) Changed the
|
60 |
|
|
permissions for files and directories created on RAMFS file systems
|
61 |
|
|
from 000 to 777. This helps ported applications which wrongly
|
62 |
|
|
assume there is some security concept and check for the existence
|
63 |
|
|
of certain file permissions.
|
64 |
|
|
|
65 |
|
|
2005-03-27 Andrew Lunn
|
66 |
|
|
|
67 |
|
|
* tests/ramfs1.c (SHOW_RESULT): Fixed compiler warning about format
|
68 |
|
|
not matching type.
|
69 |
|
|
|
70 |
|
|
2004-12-13 John Dallaway
|
71 |
|
|
|
72 |
|
|
* tests/fileio1.c: Rename to ramfs1.c. eCos test names should be
|
73 |
|
|
unique.
|
74 |
|
|
* tests/fseek1.c: Rename to ramfs2.c:
|
75 |
|
|
* cdl/ramfs.cdl: Build the renamed tests.
|
76 |
|
|
|
77 |
|
|
2004-03-29 Andrew Lunn
|
78 |
|
|
|
79 |
|
|
* test/fseek1.c: Test the fseek/ftell functions
|
80 |
|
|
* cdl/ramfs.cdl: Added a fseek1 test to the build
|
81 |
|
|
|
82 |
|
|
2004-03-15 Sebastien Couret
|
83 |
|
|
|
84 |
|
|
* src/ramfs.c (block_init): Fixed compiler warning.
|
85 |
|
|
|
86 |
|
|
2004-02-20 Vincent Catros
|
87 |
|
|
|
88 |
|
|
* src/ramfs.c :
|
89 |
|
|
(ramfs_find) Policy to skip path separator is no longer
|
90 |
|
|
"if '/' then skip" but "while '/' then skip" allowing
|
91 |
|
|
multi '/' separators (i.e : /tmp////foo).
|
92 |
|
|
(find_entry) Policy to detect end of path is no longer
|
93 |
|
|
"if '\0' then end_of_path"
|
94 |
|
|
but "while '/' skip it and then if '\0' then end_of_path"
|
95 |
|
|
allowing path terminated with any number of '/'
|
96 |
|
|
(i.e : chdir(/tmp///)).
|
97 |
|
|
|
98 |
|
|
2004-02-25 Jonathan Larmour
|
99 |
|
|
|
100 |
|
|
* src/ramfs.c (findbuffer_node): If pos larger than even INDIRECT2_MAX
|
101 |
|
|
then return ENOSPC, not EINVAL. Thanks to Vincent Catros for spotting
|
102 |
|
|
this.
|
103 |
|
|
|
104 |
|
|
2004-01-08 Vincent Catros
|
105 |
|
|
|
106 |
|
|
* src/ramfs.c (ramfs_fo_write): Return ENOSPC when the filesystem
|
107 |
|
|
is full.
|
108 |
|
|
|
109 |
|
|
2003-02-24 Jonathan Larmour
|
110 |
|
|
|
111 |
|
|
* cdl/ramfs.cdl: Fix doc link.
|
112 |
|
|
|
113 |
|
|
2002-12-06 Andrew Lunn
|
114 |
|
|
|
115 |
|
|
* cdl/ramfs.cdl: Implements the CYGINT_IO_FILEIO_FS interface
|
116 |
|
|
|
117 |
|
|
2002-01-25 Jonathan Larmour
|
118 |
|
|
|
119 |
|
|
* tests/fileio1.c (main): Check in listdir that the number of
|
120 |
|
|
dirents is correct.
|
121 |
|
|
|
122 |
|
|
2001-07-26 Jonathan Larmour
|
123 |
|
|
|
124 |
|
|
* src/ramfs.c (findbuffer_indirect1): Determine correct offset in
|
125 |
|
|
indirect block list.
|
126 |
|
|
(findbuffer_indirect2): Ditto.
|
127 |
|
|
(findbuffer_direct): Compare block index with number of blocks
|
128 |
|
|
correctly.
|
129 |
|
|
|
130 |
|
|
2000-10-05 Nick Garnett
|
131 |
|
|
|
132 |
|
|
* tests/fileio1.c:
|
133 |
|
|
Extended to check getcwd() and chdir() functionality more fully.
|
134 |
|
|
|
135 |
|
|
2000-08-18 Nick Garnett
|
136 |
|
|
|
137 |
|
|
* cdl/ramfs.cdl:
|
138 |
|
|
* src/ramfs.c:
|
139 |
|
|
* tests/fileio1.c:
|
140 |
|
|
Created this example RAM filesystem both as a usable filesystem
|
141 |
|
|
and as an example of how to build filesystems for the fileio
|
142 |
|
|
infrastructure.
|
143 |
|
|
|
144 |
|
|
|
145 |
|
|
|
146 |
|
|
//===========================================================================
|
147 |
|
|
// ####GPLCOPYRIGHTBEGIN####
|
148 |
|
|
// -------------------------------------------
|
149 |
|
|
// This file is part of eCos, the Embedded Configurable Operating System.
|
150 |
|
|
// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2004, 2009 Free Software Foundation, Inc.
|
151 |
|
|
//
|
152 |
|
|
// This program is free software; you can redistribute it and/or modify
|
153 |
|
|
// it under the terms of the GNU General Public License as published by
|
154 |
|
|
// the Free Software Foundation; either version 2 or (at your option) any
|
155 |
|
|
// later version.
|
156 |
|
|
//
|
157 |
|
|
// This program is distributed in the hope that it will be useful, but
|
158 |
|
|
// WITHOUT ANY WARRANTY; without even the implied warranty of
|
159 |
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
160 |
|
|
// General Public License for more details.
|
161 |
|
|
//
|
162 |
|
|
// You should have received a copy of the GNU General Public License
|
163 |
|
|
// along with this program; if not, write to the
|
164 |
|
|
// Free Software Foundation, Inc., 51 Franklin Street,
|
165 |
|
|
// Fifth Floor, Boston, MA 02110-1301, USA.
|
166 |
|
|
// -------------------------------------------
|
167 |
|
|
// ####GPLCOPYRIGHTEND####
|
168 |
|
|
//===========================================================================
|
169 |
|
|
|
170 |
|
|
|