Linux NFS development
 help / color / mirror / Atom feed
* Re: [PATCH v2 0/5] rework access to /proc/net/rpc
@ 2014-12-09  8:16 David Härdeman
  2014-12-09  8:42 ` Timo Teras
  0 siblings, 1 reply; 10+ messages in thread
From: David Härdeman @ 2014-12-09  8:16 UTC (permalink / raw)
  To: linux-nfs; +Cc: SteveD, timo.teras

Hi,

it seems that the "rework access to /proc/net/rpc" patchset removed 
dynamic buffers in favour of static, fixed size, buffers. That seems 
like a step backwards to me?

At least the readline() function could be implemented using read/write 
(instead of fread/fwrite) and a dynamic buffer...no?

//David


^ permalink raw reply	[flat|nested] 10+ messages in thread
* [PATCH v2 0/5] rework access to /proc/net/rpc
@ 2014-10-02 13:41 Timo Teräs
  2014-12-07 15:30 ` Steve Dickson
  0 siblings, 1 reply; 10+ messages in thread
From: Timo Teräs @ 2014-10-02 13:41 UTC (permalink / raw)
  To: Steve Dickson, linux-nfs, ncopa; +Cc: Timo Teräs

Changes since the first send:
- split to five separate patches
- fixed a bug in cache_get_filehandle() that made result parsing not work
- fixed to check result of write() calls

The review mentioned my patches adding:
nfssvc.c:71:8: warning: ignoring return value of 'system', declared with attribute warn_unused_result [-Wunused-result]
nfssvc.c:325:9: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
but this does not make any sense: I'm only adding one #include there.
Is that perhaps uncovering some other issues?

I'm not sure if the NFSv3 related issues were caused by the cache_get_filehandle()
issue or not, so this still needs testing. Another potential cause is that the
kernel is sending to user land requests longer than RPC_CHAN_BUF_SIZE bytes, but
that does not seem likely.

Timo Teräs (5):
  Add string.h to source files that need it
  mountd: talk to kernel using file descriptors instead of FILE
  gssd: talk to kernel using file descriptors instead of FILE
  nfsexport: talk to kernel using file descriptors instead of FILE
  nfslib: remove now unused FILE helpers

 support/include/exportfs.h     |   1 +
 support/include/nfslib.h       |   7 -
 support/include/nfsrpc.h       |   1 +
 support/nfs/cacheio.c          | 111 +------------
 support/nfs/nfsexport.c        |  77 +++++----
 utils/gssd/gssd_proc.c         |   9 +-
 utils/gssd/svcgssd.h           |   2 +-
 utils/gssd/svcgssd_main_loop.c |   9 +-
 utils/gssd/svcgssd_proc.c      |  51 +++---
 utils/gssd/write_bytes.h       |   1 +
 utils/mountd/cache.c           | 343 ++++++++++++++++++++++-------------------
 utils/nfsd/nfssvc.c            |   1 +
 12 files changed, 270 insertions(+), 343 deletions(-)

-- 
2.1.2


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-12-10 14:13 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-09  8:16 [PATCH v2 0/5] rework access to /proc/net/rpc David Härdeman
2014-12-09  8:42 ` Timo Teras
2014-12-09 14:01   ` David Härdeman
2014-12-09 16:08     ` Steve Dickson
2014-12-09 20:26       ` David Härdeman
2014-12-09 21:30         ` Steve Dickson
2014-12-10  6:09           ` Timo Teras
2014-12-10 14:13             ` David Härdeman
  -- strict thread matches above, loose matches on Subject: below --
2014-10-02 13:41 Timo Teräs
2014-12-07 15:30 ` Steve Dickson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox