summaryrefslogtreecommitdiff
path: root/sftp-client.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-client.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-client.h')
-rw-r--r--sftp-client.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sftp-client.h b/sftp-client.h
index fd0630e9a..b102e1180 100644
--- a/sftp-client.h
+++ b/sftp-client.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: sftp-client.h,v 1.15 2008/01/11 07:22:28 chl Exp $ */ 1/* $OpenBSD: sftp-client.h,v 1.16 2008/04/18 12:32:11 djm Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org> 4 * Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org>
@@ -70,6 +70,10 @@ int do_fsetstat(struct sftp_conn *, char *, u_int, Attrib *);
70/* Canonicalise 'path' - caller must free result */ 70/* Canonicalise 'path' - caller must free result */
71char *do_realpath(struct sftp_conn *, char *); 71char *do_realpath(struct sftp_conn *, char *);
72 72
73/* Get statistics for filesystem hosting file at "path" */
74struct statvfs;
75int do_statvfs(struct sftp_conn *, const char *, struct statvfs *, int);
76
73/* Rename 'oldpath' to 'newpath' */ 77/* Rename 'oldpath' to 'newpath' */
74int do_rename(struct sftp_conn *, char *, char *); 78int do_rename(struct sftp_conn *, char *, char *);
75 79