Gregory Nutt
54549ef082
Revert "Add option to specify logical sector size during low level format plus adds some run-time geometry tests. fs/smartfs: Remove the 'mksmartfs()' code from the kernel 'fs'"
...
This reverts commit 96faf0fa3251ca10a17daddc728d931be5a206e0.
2015-11-22 10:15:06 -06:00
Gregory Nutt
64e8f12e2b
Add option to specify logical sector size during low level format plus adds some run-time geometry tests. fs/smartfs: Remove the 'mksmartfs()' code from the kernel 'fs'
...
directory and build.
2015-11-22 10:07:35 -06:00
Gregory Nutt
006528b144
Add support for freopen()
2015-11-22 08:39:17 -06:00
Gregory Nutt
84a5f846c9
open() has been extended. You can now open block drivers and access them just as you can character drivers. For example, you can hexdump a block device.
2015-11-21 11:24:55 -06:00
Gregory Nutt
dcb85af387
Add logic to automatically wrap a block device as a BCH device with no visible character device
2015-11-21 10:14:01 -06:00
Gregory Nutt
968de101f0
Eliminate a warning
2015-11-21 10:12:21 -06:00
Gregory Nutt
bfeef77f1f
SmartFS: Fix a compile error when FS debug enabled. Plus some changes needed by NuttX coding standard
2015-11-05 11:25:39 -06:00
Gregory Nutt
a5f44cd9fc
Buttons lower half: Undefine __KERNEL__ before including board.h to suppress bad included; fix some configuratin issues
2015-10-13 09:29:23 -06:00
Gregory Nutt
c70987e551
nuttx/fs: Fix some spacing and alignment issues
2015-10-11 11:39:29 -06:00
Gregory Nutt
185b941c27
TMPFS: In open write/append mode, need to set the file position to the end of the file
2015-10-11 10:29:35 -06:00
Gregory Nutt
2c385b81f8
TMPFS: Yet another memory leak
2015-10-10 18:39:43 -06:00
Gregory Nutt
6a2098d35c
TMPFS: Fix a memory leak
2015-10-10 18:01:14 -06:00
Gregory Nutt
838f9e5a18
TMPFS: Fix yet another bug
2015-10-10 17:04:38 -06:00
Gregory Nutt
d6fa78a1b0
TMPFS: Fixes several bugs
2015-10-10 15:26:07 -06:00
Gregory Nutt
f0be2b7b09
TMPFS: Fix error in reallocted directory
2015-10-10 14:15:33 -06:00
Gregory Nutt
e675ddb813
TMPFS: Reported block size is now configurable
2015-10-09 16:57:48 -06:00
Gregory Nutt
d80bea326f
TMPFS: Fix a misbehaving assertion
2015-10-09 15:56:16 -06:00
Gregory Nutt
b489cd9610
TMFPS: Now basically functional although not heavily tested
2015-10-09 15:17:32 -06:00
Gregory Nutt
c25adcb74c
TMPFS: More fixes
2015-10-09 13:33:28 -06:00
Gregory Nutt
9eb92268b7
TMPFS: Fixes a few bugs. Still not fully functional
2015-10-09 12:13:57 -06:00
Gregory Nutt
d359a5be13
TMPFS: Code complete, but not yet functional
2015-10-09 11:02:59 -06:00
Gregory Nutt
11a8a01462
TMPFS: Add mkdir and rmdir logic
2015-10-08 20:35:41 -06:00
Gregory Nutt
fcb55102f9
TMPFS: Add statfs and unbind methods
2015-10-08 18:27:20 -06:00
Gregory Nutt
fe4cf00ad3
TMPFS: A little more logic. Still incomplete
2015-10-08 16:48:49 -06:00
Gregory Nutt
6209c51206
net/: More clean-up of spacing/alignment issues
2015-10-08 15:10:04 -06:00
Gregory Nutt
1e6ffe7677
TMPFS update
2015-10-08 14:21:12 -06:00
Gregory Nutt
cc35c0c49d
Add toosl/nxstyle.c
2015-10-08 12:48:40 -06:00
Gregory Nutt
e91f82b0f8
fs/tmpfs: Add an unfinished implementation of tmpfs
2015-10-08 12:26:35 -06:00
Gregory Nutt
e947ea587d
Add fs/tmpfs. Nothing much there yet
2015-10-08 10:54:41 -06:00
Gregory Nutt
af086c40ff
Remove dangling whitespace
2015-10-04 15:28:54 -06:00
Gregory Nutt
0b12dbf95d
Fix some spacing problems
2015-10-04 15:04:00 -06:00
Gregory Nutt
5b51a9fcdd
Standardize the width of all comment boxes in C files
2015-10-02 17:43:18 -06:00
Gregory Nutt
cb9e27c3b0
Standardize naming used for public data and function groupings
2015-10-02 16:30:35 -06:00
Gregory Nutt
cc7130b836
Correct a reference counting error in mq_open()
2015-09-23 10:34:08 -06:00
Bruno Herrera
915792cca1
fs/romfs: One allocation was not being freed if there was a subsequent failure to allocation I/O buffers resulting in a memory leak on certain error conditions. From Bruno Herrera.
2015-08-30 18:31:58 -06:00
Anton D. Kachalov
8d57be2b6f
Eliminate compilation warnings
...
Signed-off-by: Anton D. Kachalov <mouse@yandex-team.ru>
2015-08-26 00:14:50 +03:00
Gregory Nutt
dd7ffa481c
Fix a spelling error in a comment
2015-08-14 08:22:03 -06:00
Gregory Nutt
48107bf073
poll() now returns POLLERR for any file descriptor that returns a failure during the poll setup
2015-08-13 14:58:52 -06:00
- Max Neklyudov
3f8a084d01
fs/vfs/fs_poll.c: use sem_tickwait instead of sem_timedwait
2015-08-13 14:28:31 -06:00
Gregory Nutt
422ea4f673
Another epoll() change: Should not call printf from inside the OS
2015-08-10 10:41:58 -06:00
Gregory Nutt
c74dc5f83f
Changes from review epoll() implementation for consistency with NuttX naming and coding style
2015-08-10 10:38:41 -06:00
Anton D. Kachalov
fd07043180
Add simple epoll' wrapper around
poll'
...
Signed-off-by: Anton D. Kachalov <mouse@yandex-team.ru>
2015-08-10 18:15:24 +03:00
Gregory Nutt
146bdc3c93
TCB: Increase the size of the scheduling policy field from 1 to 2 bits to allow additional, planned scheduling policies
2015-07-23 10:15:07 -06:00
Gregory Nutt
fca919f3d2
Networking: Fix some compilation issues noted with network is build with CONFIG_BUILD_KERNEL
2015-07-05 11:18:56 -06:00
Gregory Nutt
342f5fe33d
Fix references to the no-longer-existent misc/ directory in comments, README files, and documentation
2015-06-28 08:08:57 -06:00
Manuel Stühn
f9c0168aba
NFS: Fix prototype of unbind method. The function prototype was not updated for NFS after a recent change to the file system interface. From Manuel Stühn.
2015-06-26 07:06:53 -06:00
Gregory Nutt
cb039a0281
Minor tweak to last unionfs fix
2015-06-24 10:19:04 -06:00
Gregory Nutt
8ed9c24675
Fix a union file system bug
2015-06-24 09:07:13 -06:00
Gregory Nutt
8293a5e773
Minor file system clean-up
2015-06-18 10:16:49 -06:00
Gregory Nutt
a25ad1417e
Updte a README file
2015-06-12 08:46:54 -06:00
Gregory Nutt
4607a8435f
FS: Add the ability to mount a file system on top of en existing node in the psuedo-file system
2015-06-11 10:10:25 -06:00
Gregory Nutt
f753d3320b
Trivial cleanup of some parameter sanity checks
2015-06-11 07:47:26 -06:00
Gregory Nutt
92f1f7c12e
Fix test for root directory in inode_reserve
2015-06-11 07:18:44 -06:00
Gregory Nutt
f6743cde0f
Update README.txt
2015-06-11 06:48:19 -06:00
Gregory Nutt
93e0980623
Add support for teensy-3.0
2015-06-10 11:45:53 -06:00
Gregory Nutt
b55b42d6c7
Update more broken URLs
2015-06-08 14:16:32 -06:00
Gregory Nutt
2225b1642c
Update some README files
2015-06-07 10:25:03 -06:00
Gregory Nutt
87ab1edf25
Union FS: Clean up some statfs error handling
2015-06-07 08:17:28 -06:00
Gregory Nutt
1283e8eca7
Union FS: Correct some calculations in statfs
2015-06-07 07:39:07 -06:00
Gregory Nutt
afd7ef15dd
Update README files
2015-06-07 07:28:09 -06:00
Gregory Nutt
f385e52a34
Union FS needs to unmount contained file systems when it is unmounted
2015-06-06 19:48:38 -06:00
Gregory Nutt
6563d0e444
Union FS: Fix a reference counting problem
2015-06-06 19:16:15 -06:00
Gregory Nutt
fe5e61960b
Union FS. Fix the unlink() method. What was I thinking
2015-06-06 11:33:09 -06:00
Gregory Nutt
884f3cdf74
Union FS. Correct some handling when the last file is closed
2015-06-06 10:00:26 -06:00
Gregory Nutt
597493221e
Union FS. Add logic to omit duplicates in file system 2 when doing directory listing
2015-06-06 09:49:13 -06:00
Gregory Nutt
05e6d9409d
Union fs: Fix some compile issues with debug on. Add more test files
2015-06-06 08:36:24 -06:00
Gregory Nutt
1c2374aedb
Fix a unionfs memory leak
2015-06-06 07:58:23 -06:00
Gregory Nutt
257a90a686
Fix a couple of unionfs readdir problems
2015-06-06 07:36:38 -06:00
Gregory Nutt
a78224d114
Add simulator configuration for testing the Union Fs. Fix a few bugs. Almost works but still too flaky
2015-06-05 15:02:24 -06:00
Gregory Nutt
edce8666b6
Add a test of the union file system to apps/examaples.
2015-06-05 14:23:07 -06:00
Gregory Nutt
1d370178fb
Add support for a union file system that can be used to overlay and merge the content of two mounted file systems.
2015-06-05 13:18:06 -06:00
Gregory Nutt
1c6c76033a
Lincoln60: Add GPIO definitions for the microSD slot
2015-06-04 16:58:59 -06:00
Gregory Nutt
4adda9d428
Fix numerous typos in configuration variable names. Tracked down by Alan Carvalho de Assis
2015-05-23 17:08:35 -06:00
Gregory Nutt
3c1af2feed
Local sockets: Add poll support for Unix stream sockets. From Jussi Kivilinna.
2015-05-12 07:41:12 -06:00
Gregory Nutt
157ac4fb59
vfs: poll: fix resource leak and memory corruption. From Jussi Kivilinna.
2015-05-04 09:09:09 -06:00
Gregory Nutt
3d6161a7aa
Update some comments
2015-04-13 07:39:56 -06:00
Gregory Nutt
1a3c6f7ec9
FAT: Fix misthink when CONFIG_ENDIAN_BIG=y. From Lwazi Dube
2015-04-12 14:24:05 -06:00
Gregory Nutt
ddb8073ad5
Update TODO list and some comments
2015-03-16 08:49:39 -06:00
Gregory Nutt
f60f22258a
Trivial update to FAT, comments, README
2015-03-15 15:06:17 -06:00
Gregory Nutt
b637a0cc3e
Costmetic changes name while debugging a filename issue
2015-03-15 12:22:12 -06:00
Gregory Nutt
7adc1b96c9
FAT cosmetic changes
2015-03-15 08:41:42 -06:00
Gregory Nutt
9f7f258728
Add support for umount2(target, MNT_FORCE) in the FAT file system.
2015-03-15 07:45:19 -06:00
Gregory Nutt
43936a6a69
Remove an UNSED that is no longer necessary
2015-03-14 18:41:26 -06:00
Gregory Nutt
e3bffdf92d
Fix a ommission in the last changes to the unbind() method prototype
2015-03-14 18:14:54 -06:00
Gregory Nutt
2be14d09a2
Fix a bug in the FAT unbind() logic. There were problems with the way certain internal list handling was implemented. The end result is that newly opened or cloned file structures were never being added to the list of open files. So when the unmount() happens, it always looked like there were not open files and a crash could ensue.
2015-03-14 17:33:48 -06:00
Gregory Nutt
8055ba4d03
Pass the umount2() flags to every unbind() implementation. That is where the the decision to umount or not will be made.
2015-03-14 17:22:02 -06:00
Gregory Nutt
f932b26db1
Add umount2(). umount() is now a macro that just calls umount2() with flags = 0.
2015-03-14 16:48:45 -06:00
Gregory Nutt
6792cb3e34
procfs: fs_procfsproc: Fix potential NULL pointer dereference of 'node'. From Juha Niskanen
2015-03-12 07:42:39 -06:00
Gregory Nutt
d36d7a959d
FAT: fat_unbind() was accessing 'fs->fs_sem' after freeing the 'fs' struct. From Juha Niskanen.
2015-03-11 13:11:50 -06:00
Gregory Nutt
404fef74d9
Fix two uses of DEBUG_COLORATION vs STACK_COLORATION (from David Sidrane). Also some corrected comments
2015-03-05 06:41:14 -06:00
Gregory Nutt
bcae42b653
Costmetic updates comments and style; Add NFS dependency on IPv4
2015-02-26 06:04:23 -06:00
Gregory Nutt
654788a8e0
Fix NFS compile problem with CONFIG_NFS_STATISTICS=y
2015-02-25 08:58:30 -06:00
Gregory Nutt
87794e494a
Add some Kconfig dependencies to reduce possibility of bad configurations. Suggested by OrbitalFox
2015-02-25 08:43:25 -06:00
Gregory Nutt
127951e029
Fix places where the errno value was being overwritten by subsequent actions so that the returned errno value was incorrect. From Max Neklyudov.
2015-02-25 07:45:04 -06:00
Gregory Nutt
9ab0d4c56f
fs/aio: Corrrect some backward tests in aio_read() and aio_write(): Socket descriptors have higher numbers than file descriptors. In aio_contain(), Copy u.ptr (void *) when initializing aioc and not the case specific u.aioc_filep. From Michal Ulianko.
2015-02-24 07:29:47 -06:00
Gregory Nutt
cded7ea682
Fix some time value changes; mostly changing greater than 1000000000 to greater than or equal to 1000000000. From Juha Niskanen
2015-02-20 07:07:36 -06:00
Gregory Nutt
60bdc27d25
Fix a couple of typos in recent commit. Found by David Sidrane
2015-02-17 19:21:07 -06:00
Gregory Nutt
b3dd424e10
mkfatfs: use DMA memory for mkfatfs when needed
...
this makes mkfatfs use fat_dma_alloc() when CONFIG_FAT_DMAMEMORY is
set. This is needed to ensure mkfatfs operates with boards that use
DMA for microSD
From Andrew Tridgell via the PX4/NuttX repository
2015-02-17 16:57:15 -06:00
Gregory Nutt
f357897b6c
Some files that now include sys/time.h should no longer include timer.h
2015-02-15 16:38:18 -06:00
Gregory Nutt
d6704a1cd7
Suffer the consequences of moving struct timeval to its correct location
2015-02-15 15:18:35 -06:00