fs/tmpfs: Add an unfinished implementation of tmpfs

This commit is contained in:
Gregory Nutt
2015-10-08 12:26:35 -06:00
parent e947ea587d
commit e91f82b0f8
3 changed files with 1293 additions and 9 deletions
+8 -8
View File
@@ -1,7 +1,7 @@
############################################################################ ############################################################################
# fs/romfs/Make.defs # fs/tmpfs/Make.defs
# #
# Copyright (C) 2008, 2011, 2013 Gregory Nutt. All rights reserved. # Copyright (C) 2015 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <gnutt@nuttx.org> # Author: Gregory Nutt <gnutt@nuttx.org>
# #
# Redistribution and use in source and binary forms, with or without # Redistribution and use in source and binary forms, with or without
@@ -33,15 +33,15 @@
# #
############################################################################ ############################################################################
ifeq ($(CONFIG_FS_ROMFS),y) ifeq ($(CONFIG_FS_TMPFS),y)
# Files required for ROMFS file system support # Files required for TMPFS file system support
ASRCS += ASRCS +=
CSRCS += fs_romfs.c fs_romfsutil.c CSRCS += fs_tmpfs.c
# Include ROMFS build support # Include TMPFS build support
DEPPATH += --dep-path romfs DEPPATH += --dep-path tmpfs
VPATH += :romfs VPATH += :tmpfs
endif endif
+1284
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -129,7 +129,7 @@ struct tmpfs_file_s
uint8_t tfo_data[1]; /* File data starts here */ uint8_t tfo_data[1]; /* File data starts here */
}; };
#define SIZEOF_TMPFS_DIRECTORY(n) (sizeof(struct tmpfs_file_s) + (n) - 1) #define SIZEOF_TMPFS_FILE(n) (sizeof(struct tmpfs_file_s) + (n) - 1)
/* This structure represents one instance of a TMPFS file system */ /* This structure represents one instance of a TMPFS file system */