#
808903e4 |
| 04-Nov-2012 |
christos <christos@NetBSD.org> |
include the headers you use
|
#
326638b5 |
| 01-Apr-2010 |
pooka <pooka@NetBSD.org> |
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 attribut
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.
show more ...
|
#
73655f9f |
| 17-Feb-2010 |
pooka <pooka@NetBSD.org> |
Save "." attributes in readdir. This fixes the root link count after readdir is called for the root dir the first time (yes, there's still a window of wrong link count after the fs is mounted. it's
Save "." attributes in readdir. This fixes the root link count after readdir is called for the root dir the first time (yes, there's still a window of wrong link count after the fs is mounted. it's currently quite difficult to call sftp_readdir() from outside the main loop).
Should fix "find /mnt" problem for a mountpoint with more than the "guessed" amount of subdirectories, as reported by dyoung.
show more ...
|
#
c4291c19 |
| 07-Jan-2010 |
pooka <pooka@NetBSD.org> |
Add -u and -g, which allow to remap one (local,remote) uidgid, i.e. umapfs without the fuss.
|
#
5866121c |
| 05-Nov-2009 |
pooka <pooka@NetBSD.org> |
more lp64 it's-a-sign! fixes
|
#
8ff91531 |
| 20-May-2009 |
pooka <pooka@NetBSD.org> |
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 si
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.
show more ...
|
#
074f023a |
| 13-Dec-2007 |
pooka <pooka@NetBSD.org> |
Record inode number in psshfs_dir also for already instantiated nodes when doing readdir. This makes pwd work again for cases where getcwd() actually has to do the "READDIR + compare inode numbers"
Record inode number in psshfs_dir also for already instantiated nodes when doing readdir. This makes pwd work again for cases where getcwd() actually has to do the "READDIR + compare inode numbers" trick.
Yet another problem reported by jmmv.
show more ...
|
#
343d2779 |
| 13-Dec-2007 |
pooka <pooka@NetBSD.org> |
*blink*, remember to update comment too
|
#
794adab5 |
| 13-Dec-2007 |
pooka <pooka@NetBSD.org> |
Do previous in a way which causes less waste of potential inode numbers.
|
#
00b48f3e |
| 12-Dec-2007 |
pooka <pooka@NetBSD.org> |
Fix lossage noticed by jmmv (mostly for -t 0 mounts) and make sure a node always has the inode number set. And since I'm feeling generous, sprinkle a few comments around the affected areas (mostly s
Fix lossage noticed by jmmv (mostly for -t 0 mounts) and make sure a node always has the inode number set. And since I'm feeling generous, sprinkle a few comments around the affected areas (mostly so that I'd remember what in the world the code is trying to do).
show more ...
|
#
a86a0093 |
| 07-Dec-2007 |
pooka <pooka@NetBSD.org> |
Don't use puffs_cc_getusermount()
|
#
f845b0da |
| 07-Dec-2007 |
pooka <pooka@NetBSD.org> |
Get rid of a lot of extra complexity due to doing separate getattr requests in readdir - just use the results from the readdir rpc.
|
#
375257e2 |
| 05-Dec-2007 |
pooka <pooka@NetBSD.org> |
Invalidate namecache for a directory only if we've already read it at least once.
|
#
21913eab |
| 30-Nov-2007 |
pooka <pooka@NetBSD.org> |
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?). In
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.
show more ...
|
#
3fe3f654 |
| 30-Nov-2007 |
pooka <pooka@NetBSD.org> |
Introduce the concept of lazyopens. This means that when a file handle open is requested, it is waited for only if the node was not previously succesfully opened. The actual wait for the file handl
Introduce the concept of lazyopens. This means that when a file handle open is requested, it is waited for only if the node was not previously succesfully opened. The actual wait for the file handle happens only when the file handle is actually needed (read or write). This in turn has the effect that reading cached files will be quick instead of waiting for the file handle from the sftp server first. The wait previously could be very long if there were serveral hundred k of outstanding requests in a limited-bandwidth link.
The code is in some need of serious handholding, but it works, so I'll leave that as "future work".
show more ...
|
#
968196af |
| 16-Nov-2007 |
pooka <pooka@NetBSD.org> |
If a regular file was remotely updated and a readdir was done on the directory which contained the file before a getattr on the file itself, the locally cached mtime would be updated without invalida
If a regular file was remotely updated and a readdir was done on the directory which contained the file before a getattr on the file itself, the locally cached mtime would be updated without invalidating the kernel page cache. Thus incorrect data would be returned when the node was read afterwards as the node size wouldn't match the data length in the page cache.
Fix the problem by making all vattr-setting routines use the same code.
Problem noticed again by jmmv & atf (and again by running atf over psshfs ... sometimes you're the windshield, sometimes you're the bug)
show more ...
|
#
55876f3f |
| 16-Nov-2007 |
jmmv <jmmv@NetBSD.org> |
Drop trailing whitespace. On behalf of pooka.
|
#
0feebae5 |
| 16-Nov-2007 |
pooka <pooka@NetBSD.org> |
When checking if the file page cache should be invalidated, compare against cached mtime instead of attrread - attrread can be reset these days by sending SIGHUP.
Problem noticed by jmmv & atf (well
When checking if the file page cache should be invalidated, compare against cached mtime instead of attrread - attrread can be reset these days by sending SIGHUP.
Problem noticed by jmmv & atf (well.. namely by using atf through psshfs).
show more ...
|
#
6b4d0688 |
| 10-Nov-2007 |
pooka <pooka@NetBSD.org> |
Cache readlink results similarly to attributes. Makes "cd" fast for a slow connection if a symlink is along the path.
(this should be done elsewhere, but I want it for sshfs now)
|
#
c5afd8dc |
| 08-Nov-2007 |
pooka <pooka@NetBSD.org> |
Make it possible to force attribute/directory cache re-read by sending SIGHUP to mount_psshfs.
|
#
a56f46a5 |
| 08-Nov-2007 |
pooka <pooka@NetBSD.org> |
Make attribute & directory content caching timeout a command line option. Use -t -1 to never expire, which is nifty on a high-latency link where you know the server won't be modified from under you.
|
#
8543b6ba |
| 20-Oct-2007 |
pooka <pooka@NetBSD.org> |
Add option -r to specify maximum number of active read requests for each node. Setting this to a small number can be used to improve interactive performance on low-bandwidth links when performing bu
Add option -r to specify maximum number of active read requests for each node. Setting this to a small number can be used to improve interactive performance on low-bandwidth links when performing bulk data reads. Of course I could also open separate pipes for bulk and other, but this was quicker and less intrusive and doesn't require authenticating twice.
show more ...
|
#
38602220 |
| 08-Sep-2007 |
pooka <pooka@NetBSD.org> |
Free longname in all error branches. CID: 4545
|
#
485aeac1 |
| 25-Aug-2007 |
pooka <pooka@NetBSD.org> |
error branch management. CID 4503
|
#
c64b357f |
| 25-Aug-2007 |
pooka <pooka@NetBSD.org> |
jump to correct error branch. CID 4500
|