Whamcloud - gitweb
git://git.whamcloud.com
/
tools
/
e2fsprogs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
f92c600
)
misc: don't return ENOMEM if we run out of disk space
author
Darrick J. Wong
<darrick.wong@oracle.com>
Mon, 8 Sep 2014 23:11:55 +0000
(16:11 -0700)
committer
Theodore Ts'o
<tytso@mit.edu>
Thu, 11 Sep 2014 16:40:54 +0000
(12:40 -0400)
If there aren't enough blocks in the FS to allocate all of the
hugefiles, return ENOSPC, not ENOMEM.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/mk_hugefiles.c
patch
|
blob
|
history
diff --git
a/misc/mk_hugefiles.c
b/misc/mk_hugefiles.c
index
8291f01
..
3e4274c
100644
(file)
--- a/
misc/mk_hugefiles.c
+++ b/
misc/mk_hugefiles.c
@@
-530,10
+530,10
@@
errcode_t mk_hugefiles(ext2_filsys fs, const char *device_name)
fs_blocks = ext2fs_free_blocks_count(fs->super);
if (fs_blocks < num_slack + align)
- return ENO
MEM
;
+ return ENO
SPC
;
fs_blocks -= num_slack + align;
if (num_blocks && num_blocks > fs_blocks)
- return ENO
MEM
;
+ return ENO
SPC
;
if (num_blocks == 0 && num_files == 0)
num_files = 1;