search for: send_attrib

Displaying 3 results from an estimated 3 matches for "send_attrib".

2006 Aug 19
0
[PATCH] add statfs extension to sftp-server
...8-19 16:24:17.000000000 +0200 +++ ssh/sftp-server.c 2006-08-19 16:49:03.000000000 +0200 @@ -19,6 +19,7 @@ #include <sys/stat.h> #include <sys/time.h> #include <sys/param.h> +#include <sys/mount.h> #include <dirent.h> #include <errno.h> @@ -462,6 +463,24 @@ send_attrib(u_int32_t id, const Attrib * buffer_free(&msg); } +static void +send_statfs(u_int32_t id, struct statfs *st) +{ + Buffer msg; + + buffer_init(&msg); + buffer_put_char(&msg, SSH2_FXP_EXTENDED_REPLY); + buffer_put_int(&msg, id); + buffer_put_int(&msg, st->f_bsize); + buffe...
2009 Feb 12
2
[patch 1/3] add protocol extension to ATTR message
This patch adds all the missing commonly used UNIX attributes: st_dev, st_ino, st_nlink, st_rdev, st_blocks, st_blksize, st_ctime. In addition it extends st_atime and st_mtime to 64bits, and adds nanosecond resolution to all three timestamps. This is implemented as an extension to the ATTR message. This patch alone is sufficient for SSHFS to be able to use these attributes. The following two
2007 Dec 07
2
[PATCH] add statfs extension to sftp-server
...8-19 16:24:17.000000000 +0200 +++ ssh/sftp-server.c 2006-08-19 16:49:03.000000000 +0200 @@ -19,6 +19,7 @@ #include <sys/stat.h> #include <sys/time.h> #include <sys/param.h> +#include <sys/mount.h> #include <dirent.h> #include <errno.h> @@ -462,6 +463,24 @@ send_attrib(u_int32_t id, const Attrib * buffer_free(&msg); } +static void +send_statfs(u_int32_t id, struct statfs *st) +{ + Buffer msg; + + buffer_init(&msg); + buffer_put_char(&msg, SSH2_FXP_EXTENDED_REPLY); + buffer_put_int(&msg, id); + buffer_put_int(&msg, st->f_bsize); + buffe...