| Summary: | add statfs extension to sftp-server | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | Miklos Szeredi <miklos> | ||||||
| Component: | sftp-server | Assignee: | Damien Miller <djm> | ||||||
| Status: | CLOSED FIXED | ||||||||
| Severity: | enhancement | CC: | djm | ||||||
| Priority: | P2 | ||||||||
| Version: | -current | ||||||||
| Hardware: | All | ||||||||
| OS: | All | ||||||||
| Bug Depends on: | |||||||||
| Bug Blocks: | 1452 | ||||||||
| Attachments: |
|
||||||||
|
Description
Miklos Szeredi
2007-12-11 07:52:32 AEDT
Created attachment 1393 [details]
[PATCH] add statfs extension to sftp-server
Wouldn't this be better as a statvfs method? OpenBSD doesn't yet support it, but it will soon. Sure, I'll update the patch to use statvfs. When is this support planned? Created attachment 1475 [details] statvfs support for client and server This diff implements a statvfs@openssh.com method in the server and adds a "df" command to the client to use it: sftp> df Size Used Avail (root) %Capacity 33003120 11227184 20125792 21775936 34% sftp> df -h Size Used Avail (root) %Capacity 31.5GB 10.7GB 19.2GB 20.8GB 34% sftp> df -i Inodes Used Avail (root) %Capacity 545662 110326 435336 435336 20% Thanks. One small comment about the patch: This line in process_extended_fstatvfs() is wrong, it shouldn't be there: + id = get_int(); Patch committed (with the suggested fix), this will be in OpenSSH 5.1. Thanks! Patch committed (with the suggested fix), this will be in OpenSSH 5.1. Thanks! Mass update RESOLVED->CLOSED after release of openssh-5.1 |