bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #20907] storeio: ENOENT on lookup causes clients to use underlying


From: Carl Fredrik Hammar
Subject: [bug #20907] storeio: ENOENT on lookup causes clients to use underlying translator
Date: Sun, 26 Aug 2007 16:14:51 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.4) Gecko/20070603 Firefox/2.0.0.4

URL:
  <http://savannah.gnu.org/bugs/?20907>

                 Summary: storeio: ENOENT on lookup causes clients to use
underlying translator
                 Project: The GNU Hurd
            Submitted by: hammy
            Submitted on: Sunday 08/26/2007 at 18:14
                Category: Hurd Servers
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Reproducibility: Every Time
              Size (loc): None
         Planned Release: None
                  Effort: 0.00
Wiki-like text discussion box: 

    _______________________________________________________

Details:

When layering a store over a file that doesn't exist `storeio' lookup of the
store will return ENOENT, causing clients to use underlying translator
instead.

#v+
$ ls -a
. ..
$ settrans -ac foo -T file bar
$ echo test > foo
$ settrans -g foo
$ cat foo
test
#v-

The solution is to return another error instead.  I'm not sure which one is
appropriate, but I have attached a patch that returns
EGRATUITOUS instead.




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sunday 08/26/2007 at 18:14  Name: storeio-no-enoent.diff  Size: 596B  
By: hammy

<http://savannah.gnu.org/bugs/download.php?file_id=13806>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?20907>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

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