Re: [3/3] POHMELFS high performance network filesystem.

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Evgeniy Polyakov <johnpol@...>
Cc: <linux-kernel@...>, <netdev@...>, <linux-fsdevel@...>
Date: Sunday, June 15, 2008 - 3:47 am

Hi,

I have just one question yet :-)

On Fri, Jun 13, 2008 at 6:42 PM, Evgeniy Polyakov <johnpol@2ka.mipt.ru> wrote:

I'm having a hard time convincing myself that the error handling here
is correct. You have this kind of setup:

1. for each config in config list {
    2. for each config in superblock state list {
        pohmelfs_config_eql();
        ...
    }
}

And according to your code, if pohmelfs_config_eql returns non-zero in
the last iteration of #1, then -EEXISTS will be the return value of
the whole function (but the config _will_ be copied; it is not undone
in this case). But if pohmenlfs_config_eql returns non-zero in any but
the last iteration of #1, then 0 will be the return value. Is this
your intention?


Vegard

-- 
"The animistic metaphor of the bug that maliciously sneaked in while
the programmer was not looking is intellectually dishonest as it
disguises that the error is the programmer's own creation."
	-- E. W. Dijkstra, EWD1036
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[0/3] POHMELFS high performance network filesystem. First st..., Evgeniy Polyakov, (Fri Jun 13, 12:37 pm)
[3/3] POHMELFS high performance network filesystem., Evgeniy Polyakov, (Fri Jun 13, 12:42 pm)
Re: [3/3] POHMELFS high performance network filesystem., Vegard Nossum, (Sun Jun 15, 3:47 am)
Re: [3/3] POHMELFS high performance network filesystem., Evgeniy Polyakov, (Sun Jun 15, 5:14 am)
[2/3] POHMELFS: Documentation., Evgeniy Polyakov, (Fri Jun 13, 12:41 pm)
Re: [2/3] POHMELFS: Documentation., Jamie Lokier, (Fri Jun 13, 10:15 pm)
Re: [2/3] POHMELFS: Documentation., Evgeniy Polyakov, (Sat Jun 14, 2:56 am)
Re: [2/3] POHMELFS: Documentation., Sage Weil, (Sun Jun 15, 12:27 am)
Re: [2/3] POHMELFS: Documentation., Evgeniy Polyakov, (Sun Jun 15, 1:57 am)
Re: [2/3] POHMELFS: Documentation., Sage Weil, (Sun Jun 15, 12:41 pm)
Re: [2/3] POHMELFS: Documentation., Evgeniy Polyakov, (Sun Jun 15, 1:50 pm)
Re: [2/3] POHMELFS: Documentation., Sage Weil, (Sun Jun 15, 11:17 pm)
Re: [2/3] POHMELFS: Documentation., Evgeniy Polyakov, (Mon Jun 16, 6:20 am)
Re: [2/3] POHMELFS: Documentation., Trond Myklebust, (Sat Jun 14, 2:45 pm)
Re: [2/3] POHMELFS: Documentation., Evgeniy Polyakov, (Sat Jun 14, 3:25 pm)
Re: [2/3] POHMELFS: Documentation., Jeff Garzik, (Sat Jun 14, 5:49 am)
[1/3] POHMELFS: VFS trivial change., Evgeniy Polyakov, (Fri Jun 13, 12:40 pm)