Skip to contentSkip to conversation

nfs/xio.c - xflock()

DISCUSSION Richard Reid 1 participant 1 message Feb 19, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

In xflock() if the file cannot be opened for reading an error (-1) is returned however if the file CAN be opened for reading (or read/write) but the 'lock' fails then a 0 is returned which is not treated as an error by the nfs-utils code. Either I am missing something or this is a bug. Could someone more knowledgeable enlighten me on this?

Richard Reid
Overland Storage