summaryrefslogtreecommitdiff
path: root/sftp.h
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2008-05-19 14:53:33 +1000
committerDamien Miller <djm@mindrot.org>2008-05-19 14:53:33 +1000
commitd671e5a978efd5ba949d3fdcd03f728dcd68c636 (patch)
treef63127fe29690fbe2c00f7b50d7807dc24288e29 /sftp.h
parent354c48c641e7fbdc273ee8e1239ff71d73a1ec3e (diff)
- 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 'sftp.h')
-rw-r--r--sftp.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sftp.h b/sftp.h
index 0835da6ed..b101b95a0 100644
--- a/sftp.h
+++ b/sftp.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: sftp.h,v 1.7 2008/02/08 23:24:07 djm Exp $ */ 1/* $OpenBSD: sftp.h,v 1.8 2008/04/18 12:32:11 djm Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2001 Markus Friedl. All rights reserved. 4 * Copyright (c) 2001 Markus Friedl. All rights reserved.
@@ -79,6 +79,10 @@
79#define SSH2_FXF_TRUNC 0x00000010 79#define SSH2_FXF_TRUNC 0x00000010
80#define SSH2_FXF_EXCL 0x00000020 80#define SSH2_FXF_EXCL 0x00000020
81 81
82/* statvfs@openssh.com f_flag flags */
83#define SSH2_FXE_STATVFS_ST_RDONLY 0x00000001
84#define SSH2_FXE_STATVFS_ST_NOSUID 0x00000002
85
82/* status messages */ 86/* status messages */
83#define SSH2_FX_OK 0 87#define SSH2_FX_OK 0
84#define SSH2_FX_EOF 1 88#define SSH2_FX_EOF 1