]> andersk Git - gssapi-openssh.git/blobdiff - openssh/sftp-client.h
Import of OpenSSH 5.1p1
[gssapi-openssh.git] / openssh / sftp-client.h
index fd0630e9a781e95da0a10d3fc9175601b1f7693a..edb46790f3ed21858f2dbc39bdab82e47365d02a 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: sftp-client.h,v 1.15 2008/01/11 07:22:28 chl Exp $ */
+/* $OpenBSD: sftp-client.h,v 1.17 2008/06/08 20:15:29 dtucker Exp $ */
 
 /*
  * Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org>
@@ -29,6 +29,24 @@ struct SFTP_DIRENT {
        Attrib a;
 };
 
+/*
+ * Used for statvfs responses on the wire from the server, because the
+ * server's native format may be larger than the client's.
+ */
+struct sftp_statvfs {
+       u_int64_t f_bsize;
+       u_int64_t f_frsize;
+       u_int64_t f_blocks;
+       u_int64_t f_bfree;
+       u_int64_t f_bavail;
+       u_int64_t f_files;
+       u_int64_t f_ffree;
+       u_int64_t f_favail;
+       u_int64_t f_fsid;
+       u_int64_t f_flag;
+       u_int64_t f_namemax;
+};
+
 /*
  * Initialise a SSH filexfer connection. Returns NULL on error or
  * a pointer to a initialized sftp_conn struct on success.
@@ -70,6 +88,9 @@ int do_fsetstat(struct sftp_conn *, char *, u_int, Attrib *);
 /* Canonicalise 'path' - caller must free result */
 char *do_realpath(struct sftp_conn *, char *);
 
+/* Get statistics for filesystem hosting file at "path" */
+int do_statvfs(struct sftp_conn *, const char *, struct sftp_statvfs *, int);
+
 /* Rename 'oldpath' to 'newpath' */
 int do_rename(struct sftp_conn *, char *, char *);
 
This page took 0.038306 seconds and 4 git commands to generate.