commit-hurd
[Top][All Lists]
Advanced

[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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]