File locking in SFTP

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Hello list - After much googling around and not finding the answer I
come to you.  From what I've read at various places SFTP supports file
locks.  However, when I test for file locks during an upload I'm not
seeing the uploaded file get locked during transmission.  Is there a
setting that needs to be enabled in sshd_config for this?  I'm uploading
to an NFS3 filesystem.  I have confirmed that locking works otherwise in
NFS with both flock() and fcntl().

Thank you.

RHEL5.5 64bit
Openssh 5.6p1, compiled from source


Protocol 2
SyslogFacility AUTHPRIV
LogLevel INFO
LoginGraceTime 600
PermitRootLogin no
StrictModes no
RSAAuthentication yes
RhostsRSAAuthentication no
IgnoreRhosts yes
X11Forwarding no
X11DisplayOffset 10
TCPKeepAlive yes
UsePrivilegeSeparation yes
ClientAliveInterval 300
Subsystem    sftp    internal-sftp -f local5 -l DEBUG
Match group client
      ForceCommand internal-sftp -f local5 -l DEBUG
      ChrootDirectory %h
      X11Forwarding no
      AllowTcpForwarding no

Site Timeline