Artem Bityutskiy 04da11bfcf UBIFS: fix zero-length truncations
Always allow truncations to zero, even if budgeting thinks there
is no space. UBIFS reserves some space for deletions anyway.

Otherwise, the following happans:
1. create a file, and write as much as possible there, until ENOSPC
2. truncate the file, which fails with ENOSPC, which is not good.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2008-08-21 16:48:52 +03:00
..
2008-08-13 11:39:20 +03:00
2008-08-13 11:35:58 +03:00
2008-08-21 16:48:52 +03:00
2008-08-21 16:48:52 +03:00
2008-08-13 11:39:20 +03:00
2008-08-13 11:24:26 +03:00
2008-08-14 12:46:20 +03:00
2008-08-13 11:27:47 +03:00
2008-08-13 11:37:28 +03:00
2008-08-13 18:59:02 +03:00
2008-08-13 11:38:19 +03:00
2008-08-13 18:59:02 +03:00
2008-08-14 12:46:20 +03:00