From: Wolfgang Denk Date: Thu, 06 Oct 2011 23:54:00 +0200 Subject: [U-Boot] [PATCH] FAT: Add FAT write feature In-Reply-To: <1313490166-27223-1-git-send-email-dg77.kim@samsung.com> References: <1313490166-27223-1-git-send-email-dg77.kim@samsung.com> Message-ID: <20111006215400.83B101408751@gemini.denx.de> 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 <1313490166-27223-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 > --- > fs/fat/Makefile | 1 + > fs/fat/fat.c | 2 + > fs/fat/fat_write.c | 1072 ++++++++++++++++++++++++++++++++++++++++++++++++++++ > include/fat.h | 2 + > 4 files changed, 1077 insertions(+), 0 deletions(-) > create mode 100644 fs/fat/fat_write.c Checkpatch says: total: 6 errors, 2 warnings, 1105 lines checked Please clean up and resubmit. Thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de "The good Christian should beware of mathematicians and all those who make empty prophecies. The danger already exists that mathematicians have made a covenant with the devil to darken the spirit and confine man in the bonds of Hell." - Saint Augustine