Gregory Nutt
40f8e8b41f
Fix some backward DEBUGASSERT tests in ROMFS and FAT.
2017-02-13 14:06:39 -06:00
Gregory Nutt
34f1b333b1
FAT: Fix some errors that I introduced in my review of Alan's patch. My screw-up, not Alan's. Sorry.
2017-02-13 12:43:35 -06:00
Alan Carvalho de Assis
a73651c8ca
fstat: Add fstat() support to FAT.
2017-02-13 12:21:06 -06:00
Gregory Nutt
d0f0dd222e
NFS: Use clock_gettime() instead of deprecated gettimeofday()
2017-02-13 10:39:49 -06:00
Gregory Nutt
10378bb10b
fstat: Add fstat() support to nfs.
2017-02-13 10:07:43 -06:00
Gregory Nutt
181eb79616
fstat: Add fstat() support to nxffs.
2017-02-13 08:22:05 -06:00
Gregory Nutt
a482a4603f
fstat: Add fstat() support to tmpfs.
2017-02-13 07:20:39 -06:00
Gregory Nutt
29028bcd5a
romfs: Simplify fstat() implementation. It is not necessary to save the file type at open, We know in this context that the file is a regular file.
2017-02-13 06:55:06 -06:00
Gregory Nutt
2cb402080a
fstat: Add fstat() support to unionfs
2017-02-12 17:05:47 -06:00
Gregory Nutt
4748e9352d
fstat: Add fstat() support to romfs
2017-02-12 16:25:12 -06:00
Gregory Nutt
d06b346b5c
Add fstat support to binfs
2017-02-12 14:47:05 -06:00
Gregory Nutt
7d91fabf01
fstat: Add skeleton implmentations of fstat() in all file systems.
2017-02-12 13:42:27 -06:00
Gregory Nutt
c5a8e96dbc
Add basic fstat() support. Now all that is needed is to modify ALL of the file systems.
2017-02-12 12:48:24 -06:00
Gregory Nutt
3055025e00
rename(): Correct more issues. (1) Move to the root directory in the pseudo file system, (2) Fix path naming calculation when the path is the root directory of a mounted file system, and (3) dont't do the rename if the source and destination of the rename are the same.
2017-02-12 08:37:28 -06:00
Gregory Nutt
e20e9f0fe4
Update a comment
2017-02-11 18:55:13 -06:00
Gregory Nutt
2d11d8f1a4
rename: An inode with no operations should be treated like a directory for the purposes of rename
2017-02-11 12:02:50 -06:00
Gregory Nutt
bd7d3a92f5
Add logic to VFS rename: If target of rename exists and is a directory, then the source file should be moved 'under' the target directory. POSIX also requires that if the target is a file, then that old file must be deleted.
2017-02-11 11:18:30 -06:00
Gregory Nutt
af5a8e73d3
VFS rename: Fix issues with rename to subdirectories and some softlink issues.
2017-02-11 10:08:23 -06:00
Gregory Nutt
abcbb24cf2
sem_open(): Fix a compiler error introduced with the setvbuf() changes.
2017-02-09 10:56:12 -06:00
Gregory Nutt
1d290c2b37
setvbuf: Add support for disabling I/O buffering. Initially cut; untested.
2017-02-09 09:24:44 -06:00
Gregory Nutt
a92887c63d
setvbuf: Correct some errors detected by code review.
2017-02-08 14:06:29 -06:00
Gregory Nutt
9f859774a1
setvbuf: Add support for configuration of line buffering.
2017-02-08 11:28:24 -06:00
Gregory Nutt
51a14c9b2f
C Library: Add a very limited, first step implementation of setvbuf(). This is a collaborative effort. Alan Carvalho de Assis did the initial prototype.
2017-02-08 10:33:18 -06:00
Gregory Nutt
2d2fe301cb
Update some comments; link counter can be uint8_t; Add a debug assertion.
2017-02-07 15:50:54 -06:00
David Sidrane
d9044058b5
There is a return path with node not set
...
inode/fs_inoderemove.c: In function 'inode_unlink':
inode/fs_inoderemove.c:74:17: warning: 'node' may be used uninitialized in this function [-Wmaybe-uninitialized]
FAR struct inode *node;
2017-02-07 21:41:02 +00:00
Gregory Nutt
b758176963
stat(): Add logic to avoid infinite recursive in circular paths containing soft links.
2017-02-07 12:32:45 -06:00
Gregory Nutt
1b32cb67cb
Soft link: Change how a value is returned so that _inode_linktarget will function in all of its use contexts.
2017-02-06 10:06:46 -06:00
Gregory Nutt
94e4d58fd2
Soft links: Fix a error in follow a link to a link to a mountpoint.
2017-02-06 08:46:43 -06:00
Gregory Nutt
aefe32d33f
soft links: Fix a memory leak by correcting a reference counting problem.
2017-02-05 15:14:16 -06:00
Gregory Nutt
47ddfa346d
Soft links: Eliminate in-stack allocation of path working buffer needed for traversal fo paths with soft links.
2017-02-05 14:57:38 -06:00
Gregory Nutt
45fd98da88
Add macros support that will eventually allow dynamic allocation of strings need to support soft links.
2017-02-05 14:25:45 -06:00
Gregory Nutt
8f2c7198ed
inode_find: Now takes struct inode_desc_s type as input. This was necessary before that structure includes some data storage. It was used within inode_find(), but that means that the life of the data was the life of inode_find(). That data must persist longer. It is now provided by the caller so that the life of the data persists for the entire life of the caller.
2017-02-05 09:51:42 -06:00
Gregory Nutt
990bed903e
Soft link: First cut fix for some soft link issues. The fix still has some issues of its own.
2017-02-04 16:35:49 -06:00
Gregory Nutt
4c68324d82
FS: Remove inode_search_nofollow(). That logic is no handled with a new field in the input argument structure.
2017-02-04 12:51:14 -06:00
Gregory Nutt
0c9935f8ac
FS: Remove inode_find_nofollow. Instead provide a bool nofollow argument to inode_find.
2017-02-04 11:46:54 -06:00
Gregory Nutt
36704b7d9c
FS: Argument is now a structure describing the search.
2017-02-04 11:21:44 -06:00
Gregory Nutt
8437650fc2
Soft links: Another fix to tree traveral logic
2017-02-03 16:34:50 -06:00
Gregory Nutt
982cfea490
Remove some unnecessary (and inappropriate) soft link logic
2017-02-03 15:50:41 -06:00
Gregory Nutt
70dcec7df7
readlink: Fix bugs from initial testing
2017-02-03 14:12:24 -06:00
Gregory Nutt
4417e74977
Soft links: Add an (untested) implementation of readlink()
2017-02-03 13:57:12 -06:00
Gregory Nutt
60ba5a5261
Soft links: Fix logic and remove kludge of last commit. Rename inode_dereference() as inode_linktarget() and make global.
2017-02-03 13:22:33 -06:00
Gregory Nutt
7c59e05305
FS: Separate inode_search() and inode_free() from fs_inode.c and put in separate files. Flesh out symbolic link logic in stat() and readdir(). There are still some issues with stat().
2017-02-03 11:23:57 -06:00
Gregory Nutt
741a221fdb
Soft link: make SOFTLINK configuration EXPERIMENTAL. There are still issues.
2017-02-03 09:24:43 -06:00
Gregory Nutt
372e399bbc
Fix a typo
2017-02-03 07:36:25 -06:00
Gregory Nutt
d833144869
Soft Links: Fix several issues in initial testing
2017-02-02 19:37:58 -06:00
Gregory Nutt
b39d962021
Soft links: Update Documentation, rename file, add system calls
2017-02-02 17:11:08 -06:00
Gregory Nutt
35d738d85f
Soft links: Fix compile problems on first build with soft links enabled.
2017-02-02 15:24:39 -06:00
Gregory Nutt
bdc002fadc
Finish implementation of soft links.
2017-02-02 13:01:21 -06:00
Gregory Nutt
92305e400a
Soft links: Initial, incompete implementation
2017-02-02 10:39:41 -06:00
Gregory Nutt
8b5af8bf50
FS: Fix typo. Latent bug but innocuous in its current usage
2017-01-27 08:50:01 -06:00