[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd] 04/06: ext2fs: Use more POSIXish error code
From: |
Samuel Thibault |
Subject: |
[hurd] 04/06: ext2fs: Use more POSIXish error code |
Date: |
Sun, 20 Nov 2016 21:18:22 +0000 |
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to branch upstream
in repository hurd.
commit 4f9e2ded8c0f0f40a7798cafa39440a52b41dd85
Author: Samuel Thibault <address@hidden>
Date: Sun Nov 20 16:33:34 2016 +0100
ext2fs: Use more POSIXish error code
* ext2fs/dir.c (diskfs_direnter_hard): On missing room to extend
directory, return ENOSPC.
---
ext2fs/dir.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/ext2fs/dir.c b/ext2fs/dir.c
index 1097db8..87a8a04 100644
--- a/ext2fs/dir.c
+++ b/ext2fs/dir.c
@@ -625,6 +625,8 @@ diskfs_direnter_hard (struct node *dp, const char *name,
struct node *np,
err = hurd_safe_memset (new, 0, DIRBLKSIZ);
if (err)
{
+ if (err == EKERN_MEMORY_ERROR)
+ err = ENOSPC;
munmap ((caddr_t) ds->mapbuf, ds->mapextent);
return err;
}
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/hurd.git
- [hurd] branch upstream updated (385d9bf -> 7bd08cf), Samuel Thibault, 2016/11/20
- [hurd] 03/06: ext2fs: Do not talk about crashing on ENOSPC, Samuel Thibault, 2016/11/20
- [hurd] 06/06: Fix build, Samuel Thibault, 2016/11/20
- [hurd] 04/06: ext2fs: Use more POSIXish error code,
Samuel Thibault <=
- [hurd] 05/06: boot: fix crash when S_processor_set_tasks is called early, Samuel Thibault, 2016/11/20
- [hurd] 02/06: libpager, libstore: Fix crash on ENOSPC while writing data, Samuel Thibault, 2016/11/20
- [hurd] 01/06: ext2fs: Fix crash on ENOSPC while extending a directory, Samuel Thibault, 2016/11/20