History log of /src/usr.sbin/puffs/mount_psshfs/fs.c |
Revision | | Date | Author | Comments |
1.25 |
| 23-Sep-2019 |
christos | Restore binary compatibility by using the statvfs90 structure internally.
|
1.24 |
| 22-Jun-2011 |
mrg | branches: 1.24.42; remove some always true if () checks GCC 4.5.3 picks up.
|
1.23 |
| 29-Oct-2010 |
pooka | Make error message more userfriendly in cases where server does not support sftp.
|
1.22 |
| 01-Apr-2010 |
pooka | In case we create a file, reclaim the vnode, and lookup the file without the directory timeout expiring, we get vattr_null as the attributes for that file. Ensure that we always report sane attributes by getting them from the server if this is the case. (also, sprinkle some const)
Fixes problem reported by dyoung. But wait! The bug's medallion begins to glow! The bug looks much better! I crumble to dust.
There's probably another similar bug related to "lazy open". It will trigger if we reclaim a node before the response to the open arrives. Even the comments (typoless) know about this bug ... But verifying it exists and fixing it will have to wait for another day.
|
1.21 |
| 03-Feb-2010 |
pooka | statvfs:
Since bresvd is not available from the server, calculate: bresvd = bfree - bavail.
Then df calculates: bavail = bfree - bresvd;
And we now get a much more accurate report from df on how much one can write to the fs.
|
1.20 |
| 20-May-2009 |
pooka | Copyright year management. no functional change (unless sarah disagrees)
|
1.19 |
| 20-May-2009 |
pooka | Introduce -c [12], which can be used to open 1 or 2 ssh connections to the server. If "2" is specified, a separate connection is used for data and directory operations. Using two connections can significantly increase directory operation performance on a saturated link, at least up to 30x faster.
|
1.18 |
| 23-Feb-2009 |
pooka | Support statvfs@openssh.com extension where available. Makes df(1) return something other than just 0. caveat: statvfs is done for the mountpoint path, so might not give the truth about a directory inside the mountpoint.
|
1.17 |
| 06-Sep-2008 |
pooka | branches: 1.17.6; Due to a recent encounter with a sucky internet connection, add experimental option -p, which tries to reestablish the connection to the sftp server in case it is lost. This currently has a few limitations (found in the man page), but generally works in some use cases.
Better support might eventually emerge, but since that requires a plunge into the depths of puffs_framebuf, I need quite a bit of Fernet Branca to build up my courage before attempting it.
|
1.16 |
| 12-Aug-2008 |
pooka | void * -> puffs_cookie_t no functional change
|
1.15 |
| 30-Nov-2007 |
pooka | branches: 1.15.8; Rototill.
Ok, ok, a few more words about it: stop holding puffs_cc as a holy value and passing it around to almost every possible place (popquiz: which kernel variable does this remind you of?). Instead, pass the natural choice, puffs_usermount, and fetch puffs_cc via puffs_cc_getcc() only in routines which actually need it. This not only simplifies code, but (thanks to the introduction of puffs_cc_getcc()) enables constructs which weren't previously sanely possible, say layering as a curious example.
There's still a little to do on this front, but this was the major fs interface blast.
|
1.14 |
| 27-Nov-2007 |
pooka | Remove "puffs_cid" from the puffs interface following l-removal from the kernel vfs interfaces. puffs_cc_getcaller(pcc) can be used now should the same information be desired.
|
1.13 |
| 01-Jul-2007 |
pooka | branches: 1.13.4; adapt: **newnode etc. pointers -> struct puffs_newinfo
|
1.12 |
| 01-Jul-2007 |
pooka | adapt: pid -> const struct puffs_cid *
|
1.11 |
| 06-Jun-2007 |
pooka | Move puffs to a two clause license where it already isn't so. And as agc pointed out, even files with the third clause were already effectively two clause because of a slight bug in the language...
|
1.10 |
| 18-May-2007 |
pooka | * use NOREF setback to prompt immediate (well, once the kernel reference count goes to 0) reclaim of deleted nodes as opposed to waiting for the system to start reclaiming the freelist * combine some nodeflags from different variable to one status variable
|
1.9 |
| 17-May-2007 |
pooka | reflect changes in fs mount: use puffs_mount() instead of puffs_domount() & puffs_start()
|
1.8 |
| 05-May-2007 |
pooka | Adapt to use puffs_framebuf. This gets rid of most of the duplicated code between mount_psshfs and mount_9p and clarifies the code structure.
|
1.7 |
| 18-Apr-2007 |
pooka | psbuf_recycle now exists, so use it instead of destroy&make in one spot I probably missed originally. No real functional change.
|
1.6 |
| 12-Apr-2007 |
pooka | Actually, we can't reclaim our memory image for nodes which have been nodetofh translated even if they are not valid on the sftp server anymore, because some nfs client might still be clinging on to the file handle we are reclaiming now.
|
1.5 |
| 12-Apr-2007 |
pooka | Support nfs exporting.
Now, when I say support, I mean "support", due to the limitations of the backend. File handles are valid only for one session, since nodes can only be identified by pathnames and pathnames don't (all) fit into the nfs file handle space. Additionally, we can't detect if a pathname is completely replaced by another file (if it's done via some other route that through our mount, of course). But then again, that's an inherent problem with sshfs even without nfs.
|
1.4 |
| 12-Apr-2007 |
pooka | Hide struct puffs_usermount from the rest of the world and provide accessors for interesting data in it. Namely, you can now get pu->pu_privdata with puffs_getspecific(), pu->pu_pn_root with puffs_set/getroot() and pu->pu_maxreqlen with puffs_getmaxreqlen().
|
1.3 |
| 15-Jan-2007 |
pooka | * adapt to libpuffs path changes * fix bug in rename
|
1.2 |
| 06-Jan-2007 |
pooka | * do mount as a forward operation instead of a callback * process -o args for mount
|
1.1 |
| 29-Dec-2006 |
pooka | puffs sshfs, an sshfs implementation built on top of the puffs continuation framework
|
1.13.4.1 |
| 09-Jan-2008 |
matt | sync with HEAD
|
1.15.8.1 |
| 18-Sep-2008 |
wrstuden | Sync with wrstuden-revivesa-base-2.
|
1.17.6.1 |
| 13-May-2009 |
jym | Sync with HEAD.
Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
|
1.24.42.1 |
| 13-Apr-2020 |
martin | Mostly merge changes from HEAD upto 20200411
|