diff options
author | Damien Miller <djm@mindrot.org> | 2008-05-19 06:53:33 +0200 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2008-05-19 06:53:33 +0200 |
commit | d671e5a978efd5ba949d3fdcd03f728dcd68c636 (patch) | |
tree | f63127fe29690fbe2c00f7b50d7807dc24288e29 /sftp.h | |
parent | - (djm) OpenBSD CVS Sync (diff) | |
download | openssh-d671e5a978efd5ba949d3fdcd03f728dcd68c636.tar.xz openssh-d671e5a978efd5ba949d3fdcd03f728dcd68c636.zip |
- djm@cvs.openbsd.org 2008/04/18 12:32:11
[sftp-client.c sftp-client.h sftp-server.c sftp.1 sftp.c sftp.h]
introduce sftp extension methods statvfs@openssh.com and
fstatvfs@openssh.com that implement statvfs(2)-like operations,
based on a patch from miklos AT szeredi.hu (bz#1399)
also add a "df" command to the sftp client that uses the
statvfs@openssh.com to produce a df(1)-like display of filesystem
space and inode utilisation
ok markus@
Diffstat (limited to '')
-rw-r--r-- | sftp.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $OpenBSD: sftp.h,v 1.7 2008/02/08 23:24:07 djm Exp $ */ +/* $OpenBSD: sftp.h,v 1.8 2008/04/18 12:32:11 djm Exp $ */ /* * Copyright (c) 2001 Markus Friedl. All rights reserved. @@ -79,6 +79,10 @@ #define SSH2_FXF_TRUNC 0x00000010 #define SSH2_FXF_EXCL 0x00000020 +/* statvfs@openssh.com f_flag flags */ +#define SSH2_FXE_STATVFS_ST_RDONLY 0x00000001 +#define SSH2_FXE_STATVFS_ST_NOSUID 0x00000002 + /* status messages */ #define SSH2_FX_OK 0 #define SSH2_FX_EOF 1 |