From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Thu, 27 Oct 2011 15:48:29 +0200 Subject: [U-Boot] [PATCH v2] FAT: Add FAT write feature In-Reply-To: <20111026194151.ACC3A11F9E5D@gemini.denx.de> References: <1319526928-7927-1-git-send-email-dg77.kim@samsung.com> <20111026194151.ACC3A11F9E5D@gemini.denx.de> Message-ID: <201110271548.29727.marek.vasut@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > Dear Donggeun Kim, > > In message <1319526928-7927-1-git-send-email-dg77.kim@samsung.com> you wrote: > > In some cases, saving data in RAM as a file with FAT format is required. > > This patch allows the file to be written in FAT formatted partition. > > > > The usage is similar with reading a file. > > First, fat_register_device function is called before file_fat_write > > function in order to set target partition. > > Then, file_fat_write function is invoked with desired file name, > > start ram address for writing data, and file size. > > > > Signed-off-by: Donggeun Kim > > Signed-off-by: Kyungmin Park > > --- > > > > Changes for v2: > > - update README file > > > > README | 5 + > > fs/fat/Makefile | 1 + > > fs/fat/fat.c | 2 + > > fs/fat/fat_write.c | 1091 > > ++++++++++++++++++++++++++++++++++++++++++++++++++++ include/fat.h > > | 3 + > > 5 files changed, 1102 insertions(+), 0 deletions(-) > > create mode 100644 fs/fat/fat_write.c > > Applied, thanks. DAMN :-( Dongguen, I now get this warning on many boards: fat.c:49:22: warning: 'part_size' defined but not used please FIX ! Also, can you avoid using global variables, it's stupid? Cheers