OpenSSH
[Top] [All Lists]

Re: SFTP: a new command to get filesystem size/free space

To: openssh-unix-dev@mindrot.org
Subject: Re: SFTP: a new command to get filesystem size/free space
From: Jason Mobarak <deadbeefbabe@gmail.com>
Date: Mon, 19 Feb 2007 09:10:44 -0700
Cc: Thue Janus Kristensen <thuejk@gmail.com>
Delivered-to: sp-com-lists@consult.net
Delivered-to: openssh-unix-dev-list1@securepoint.com
Delivered-to: openssh-unix-dev-tmda@mindrot.org
Delivered-to: openssh-unix-dev@mindrot.org
In-reply-to: <2fa647f60702181048h2cbaf171h9e4796f2a6d57c7d@mail.gmail.com>
List-archive: <http://lists.mindrot.org/pipermail/openssh-unix-dev>
List-help: <mailto:openssh-unix-dev-request@mindrot.org?subject=help>
List-id: Development of portable OpenSSH <openssh-unix-dev.mindrot.org>
List-post: <mailto:openssh-unix-dev@mindrot.org>
List-subscribe: <http://lists.mindrot.org/mailman/listinfo/openssh-unix-dev>, <mailto:openssh-unix-dev-request@mindrot.org?subject=subscribe>
List-unsubscribe: <http://lists.mindrot.org/mailman/listinfo/openssh-unix-dev>, <mailto:openssh-unix-dev-request@mindrot.org?subject=unsubscribe>
References: <2fa647f60702181048h2cbaf171h9e4796f2a6d57c7d@mail.gmail.com>
Sender: openssh-unix-dev-bounces+openssh-unix-dev-list1=securepoint.com@mindrot.org
User-agent: Thunderbird 2.0b2 (Windows/20070116)
Thue Janus Kristensen wrote:
> I am using sshfs with FUSE to mount a remote directory over ssh/sftp (on 
> linux).
> 
> It would be nice if df could be able to show the total size/free space
> of the mounted directory.
> 
> I am aware that returning size/free space would have some limitations.
> For example, if a subdir of the mounted directory has another
> filesystem mounted on the remote server, this can not be represented
> simply.
> 
> However, I still think that a simple implementation could be useful.
> My idea is to simply return the total size and free space of the
> current working directory.
> 
> Would you accept patches implementing this?

I don't speak for the OpenSSH team but given the history of previous 
random patches I doubt it will be accepted in any fashion.

> 
> Please CC me, I am not on this list.
> 
> Regards, Thue
> 
> PS: does the openssh sftp implementation conform to
> http://www.openssh.org/txt/draft-ietf-secsh-filexfer-02.txt ?  If not,
> is the protocol described elsewhere?

Afaik, yes, OpenSSH supports SFTP version 3, and probably won't support 
anything else anytime soon.

Your feature can probably be easily implemented via the SSH_FXP_EXTENDED 
message.  Though an SSH subsystem for drive metrics might be interesting.

-- Jason

_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@mindrot.org
http://lists.mindrot.org/mailman/listinfo/openssh-unix-dev

<Prev in Thread] Current Thread [Next in Thread>