Bug 2579 - Link count support
Summary: Link count support
Status: NEW
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: sftp-server (show other bugs)
Version: 7.2p1
Hardware: All All
: P5 enhancement
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-02 14:03 AEST by rian
Modified: 2016-12-07 14:40 AEDT (History)
0 users

See Also:


Attachments
Patch (3.16 KB, application/octet-stream)
2016-06-02 14:03 AEST, rian
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description rian 2016-06-02 14:03:31 AEST
Created attachment 2820 [details]
Patch

This patch adds client and server support for transmitting the st_nlink field
across SSH2_FXP_NAME and SSH2_FXP_ATTRS responses.

One downside is that it adds this much new overhead for those responses:

sizeof(uint32_t) + sizeof(uint32_t) + strlen("attr-link-count@openssh.com") + sizeof(uint32_t) + sizeof(uint64_t)

i.e. 47 bytes.

If this overhead is not acceptable, perhaps this extension can only be enabled if the client sends the "attr-link-count@openssh.com" extension in the SSH2_FXP_INIT request. If this is the case, should sftp-client advertise this extension by default or no?
Comment 1 rian 2016-12-07 14:40:59 AEDT
Ping