Make FileWriter writes from current position and change failure condition
authorJihye Kang <jye.kang@samsung.com>
Tue, 9 Apr 2013 15:27:03 +0000 (00:27 +0900)
committerJihye Kang <jye.kang@samsung.com>
Wed, 10 Apr 2013 02:56:28 +0000 (11:56 +0900)
commit8b500952c796287d0d48ec0c20a563488be27169
tree9cc098ebd70ef03823db2d7937cb202312e26efe
parent8e5cb3645240106f2806e5df46d253e5c24c94d1
Make FileWriter writes from current position and change failure condition

[Title] Make FileWriter writes from current position and fire error type progress event when written
 bytes are less than expectation
[Issue#] N/A
[Problem]
[Cause]
[Solution]
- OpenFile without O_TRUNC option for avoiding data crash of file with lseek and write
- Seek to the position before start to write
- Make SECURITY_ERR when write operation is completed but bytes of written is not equal to the expectation

Change-Id: I1806c2df80f7745b7f5a7efd28dee78455d7f54d
Source/WebCore/platform/FileSystem.h
Source/WebCore/platform/efl/tizen/AsyncFileWriterTizen.cpp
Source/WebCore/platform/efl/tizen/FileSystemTizen.cpp
Source/WebCore/platform/posix/FileSystemPOSIX.cpp