default to erroring if we can't remap a uid/gid
[platform/upstream/sshfs.git] / ChangeLog
1 2011-12-16  Mike Kelly <mike@pair.com>
2
3         * Add -o idmap=file, -o uidmap=FILE, -o gidmap=FILE. These options
4         allow you to create a pair of local files, similar to /etc/passwd or
5         /etc/group files from the remote server, and use those to remap all
6         the given UIDs/GIDs.
7
8 2011-11-25  Miklos Szeredi <miklos@szeredi.hu>
9
10         * Make chown respect the UID mapping policy.  Reported and tested
11         by Vivenzio Pagliari
12
13 2011-11-16  Miklos Szeredi <miklos@szeredi.hu>
14
15         * Submit max 32k reads and writes to the sftp server.  Also don't
16         limit the kernel to 64k reads and writes, rather split into 32k
17         sized chunks and send them to the server all at once.  This is
18         more efficient and less demanding from the server.  Reported by
19         Ludovic Courtès.  Fix suggested by Niels Möller
20
21 2011-11-14  Miklos Szeredi <miklos@szeredi.hu>
22
23         * Fix double free if reconnection races with request sending.
24         Patch by E. Kuemmerle
25
26         * Add locking around modifver and connver
27
28 2011-10-21  Miklos Szeredi <miklos@szeredi.hu>
29
30         * Remove "-oPreferredAuthentications" from ssh options if the
31         "password_stdin" option is used.  Reported by E. Kuemmerle
32
33 2011-08-24  Miklos Szeredi <miklos@szeredi.hu>
34
35         * Add "-oworkaround=fstat" for SFTP servers which don't support
36         the FSTAT message.  Patch by: Percy Jahn
37
38 2011-07-01  Miklos Szeredi <miklos@szeredi.hu>
39
40         * Released 2.3
41
42 2011-07-01  Miklos Szeredi <miklos@szeredi.hu>
43
44         * Add hard link operation.  Works if the server supports the
45         "hardlink@openssh.com" protocol extension.
46
47 2011-03-25  Miklos Szeredi <miklos@szeredi.hu>
48
49         * Fix possible deadlock on reconnection.  Reported by Florian
50         Zumbiehl
51
52 2011-01-25  Miklos Szeredi <miklos@szeredi.hu>
53
54         * Fix cleanup when ssh connection is terminated.  This prevents
55         sshfs hanging when the server is rebooted, for example.
56
57 2010-03-16  Miklos Szeredi <miklos@szeredi.hu>
58
59         * Set FD_CLOEXEC on fuse device.  This prevents deadlocks that
60         happen in some circumstances (bugzilla.kernel.org #12864).
61         Reported by Tim Connors
62
63 2009-07-15  Miklos Szeredi <miklos@szeredi.hu>
64
65         * Check mountpoint and fuse options before starting an ssh
66         session (debian bug #535333).  This is only supported if compiled
67         against libfuse-2.6 or later. Reported by Greg Kochanski
68
69         * Check that the remote path specified refers to the same type of
70         file as the mountpoint, i.e. both are directories or both are
71         non-directories (debian bug #535343).  Reported by Greg Kochanski
72
73         * Allow mounting a single non-directory from the server
74
75 2009-07-15  Sebastian Dransfeld <sebastid@tango.flipp.net>
76
77         * Add option 'delay_connect': This will always create the sshfs mount,
78         even if the connection to the server can't be established.
79
80 2009-01-27  Miklos Szeredi <miklos@szeredi.hu>
81
82         * Print usage information and version to stdout, not stderr.
83         Libfuse also needs to be fixed up.  Reported by Kārlis Repsons
84
85 2008-10-20  Miklos Szeredi <miklos@szeredi.hu>
86
87         * Released 2.2
88
89 2008-10-20  Miklos Szeredi <miklos@szeredi.hu>
90
91         * Escape commas in fsname option if libfuse supports it
92
93 2008-10-08  Miklos Szeredi <miklos@szeredi.hu>
94
95         * Handle numerical IPv6 addresses enclosed in square brackets.
96         Reported by Andre-John Mas
97
98         * Fix error if username contains a comma character.  Reported by
99         Yang Zhang
100
101         * Fix harmless glib assertations with "cache=no"
102
103 2008-07-11  Miklos Szeredi <miklos@szeredi.hu>
104
105         * Released 2.1
106
107 2008-07-11  Miklos Szeredi <miklos@szeredi.hu>
108
109         * Fix statvfs extension to match the current protocol in
110         opensshfs
111
112         * Check version numbers of extensions, so such changes wouldn't
113         cause stupid behavior
114
115 2008-06-24  Miklos Szeredi <miklos@szeredi.hu>
116
117         * Add '-F' option to specify the ssh config file.  Patch by Pat
118         Pascal.
119
120 2008-05-06  Miklos Szeredi <miklos@szeredi.hu>
121
122         * Fix bug in caching which could cause file corruption for append
123         mode writes.  Reported by Jose Alonso
124
125 2008-05-05  Miklos Szeredi <miklos@szeredi.hu>
126
127         * Fix compile on OS X.  Original patch from Michael G Schwern
128
129         * Fix compile on Solaris.  Reported by Jean-Jacques Sarton
130
131 2008-04-23  Miklos Szeredi <miklos@szeredi.hu>
132
133         * Released 2.0
134
135 2008-04-23  Miklos Szeredi <miklos@szeredi.hu>
136
137         * Add manual page.  Written by Bartosz Fenski
138
139 2008-04-22  Miklos Szeredi <miklos@szeredi.hu>
140
141         * Add missing ssh options: ControlMaster, ControlPath,
142         KbdInteractiveAuthentication, KbdInteractiveDevices, LocalCommand,
143         RekeyLimit (Debian bug #430225).
144
145         * Allow the '-ossh_command=CMD' command to contain parameters.
146         Escape charater is backslash.
147
148         * Limit write requests to 64kB.
149
150         * Support "statvfs@openssh.com" extension, which will be available
151         in OpenSSH 5.1.
152
153 2008-04-21  Miklos Szeredi <miklos@szeredi.hu>
154
155         * Fix incorrect disk usage reported by 'du' for files of size 4GB
156         or above.  Reported by Christian Boltz.
157
158 2008-04-16  Miklos Szeredi <miklos@szeredi.hu>
159
160         * If debugging is enabled, print some statistics at exit about the
161         number of bytes transferred, etc..
162
163 2008-03-31  Miklos Szeredi <miklos@szeredi.hu>
164
165         * Support "posix-rename@openssh.com" extension available in
166         OpenSSH 4.9.  This allows rename to be atomic even when target
167         file or directory exists.  If available, the extension will be
168         used instead of the rename operation in the original protocol and
169         the "-oworkaround=rename" option will be ignored.
170
171 2008-03-28  Miklos Szeredi <miklos@szeredi.hu>
172
173         * Add support for password authentication with pam_mount.
174         Original patch and help with testing: John S. Skogtvedt
175
176 2008-03-03  Miklos Szeredi <miklos@szeredi.hu>
177
178         * Fix ssh debug only appearing if "-d" is used.  Reported by
179         Michael Gorbach
180
181 2008-01-03  Miklos Szeredi <miklos@szeredi.hu>
182
183         * Fix condition for building of sshnodelay.so
184
185 2007-12-17  Miklos Szeredi <miklos@szeredi.hu>
186
187         * Released 1.9
188
189 2007-12-12  Miklos Szeredi <miklos@szeredi.hu>
190
191         * Fix checking for fuse_opt_parse in configure
192
193 2007-12-11  Miklos Szeredi <miklos@szeredi.hu>
194
195         * Fill in st_ctime attribute with st_mtime, instead of leaving it
196         zero
197
198         * Check for OpenSSH version >= 4.4, and if found, don't build the
199         sshnodelay.so workaround
200
201 2007-12-10  Miklos Szeredi <miklos@szeredi.hu>
202
203         * Fix crash on writing files, caused by missing locking around
204         sshfs_file_get()
205
206         * Don't time requests when not debugging
207
208         * Add subtype support with libfuse >= 2.7.0
209
210         * Abort on allocation failure instead of exit
211
212         * Correctly show default of nodelaysrv workaround in help message
213
214 2007-05-16  Miklos Szeredi <miklos@szeredi.hu>
215
216         * Released 1.8
217
218 2007-05-15  Miklos Szeredi <miklos@szeredi.hu>
219
220         * Add needed g_thread_init() to fix rare crashes.  Reported by
221         Dimitrios Apostolou
222
223         * Fix memory leak in sshfs_open_common()
224
225 2007-04-18  Miklos Szeredi <miklos@szeredi.hu>
226
227         * Fix crash within gdb, caused by sem_wait() returning with an
228         error on interrupt.  Reported by Dimitrios Apostolou
229
230         * Fix spurious cache entries remaining after renaming a directory
231
232 2007-02-28  Miklos Szeredi <miklos@szeredi.hu>
233
234         * Don't set DISPLAY environment variable to "", because it breaks
235         ssh-askpass.  Make nodelaysrv_workaround default to off, because
236         with this change it may have security implications.
237
238 2007-02-19  Miklos Szeredi <miklos@szeredi.hu>
239
240         * OpenSSH sftp-server can read requests faster, than it processes
241         them, when it's buffer is full it aborts.  This can happen on a
242         large upload to a slow server.  Work around this by limiting the
243         total size of outstanding reqests.  Debian bug #365541.  Tracked
244         down by Thue Janus Kristensen
245
246         * Add --disable-sshnodelay configure option.  The sshnodelay.so
247         hack shouldnt be needed with OpenSSH client versions >= 4.3
248
249 2006-12-20  Miklos Szeredi <miklos@szeredi.hu>
250
251         * Work around write performace issues due to missing TCP_NODELAY
252         in sshd.  Reported by Justin Searle
253
254 2006-11-10  Miklos Szeredi <miklos@szeredi.hu>
255
256         * Fix bug which ommitted directory entries for symlinks with the
257         -ofollow_symlinks option.  Bug reported by Mikael Ståldal
258
259 2006-09-29  Miklos Szeredi <miklos@szeredi.hu>
260
261         * Fix segfault if there are outstanding writes to the server after
262         release on the file descriptor.  This only happened on FreeBSD.
263         Reported by Andriy Gapon
264
265 2006-08-18  Miklos Szeredi <miklos@szeredi.hu>
266
267         * Released 1.7
268
269 2006-08-17  Miklos Szeredi <miklos@szeredi.hu>
270
271         * Cosmetics on bogus statfs numbers
272
273 2006-08-16  Miklos Szeredi <miklos@szeredi.hu>
274
275         * Add option 'follow_symlinks' to resolve symlinks on the server.
276
277         * On setups where the login shell prints a banner, the sftp
278         protocol was confused, and bailed out with "reply len too large:
279         ...".  So iterate over any rubbish read immediately after login
280         until a valid reply is found.
281
282         * Check remote directory for existence before mounting.  Closes
283         Ubuntu bug #46633
284
285 2006-03-10  Miklos Szeredi <miklos@szeredi.hu>
286
287         * Use socketpair() instead of pipe() for communication between ssh
288         and sshfs.  Patch from Csaba Henk
289
290         * Update to FUSE interface version 26
291
292 2006-03-09  Miklos Szeredi <miklos@szeredi.hu>
293
294         * Released 1.6
295
296 2006-03-09  Miklos Szeredi <miklos@szeredi.hu>
297
298         * Fix segfault if remote host is down and reconnection is enabled
299
300 2006-03-08  Miklos Szeredi <miklos@szeredi.hu>
301
302         * Fix bug in symlink transformation.  Reported by Ralf Hoffmann
303
304 2006-02-24  Miklos Szeredi <miklos@szeredi.hu>
305
306         * Add workaround for broken truncate on old sftp servers.  Can be
307         enabled with '-oworkaround=truncate'.  Patch from Joseph M Link
308
309 2006-02-23  Miklos Szeredi <miklos@szeredi.hu>
310
311         * Avoid double memcpy on writes.  Patch by Joseph M Link
312
313         * More memory copy avoidance
314
315 2006-02-22  Miklos Szeredi <miklos@szeredi.hu>
316
317         * Add -fPIC to the comile flags of sshnodelay.so.  Reported by
318         Anthony Kolasny
319
320 2006-02-20  Miklos Szeredi <miklos@szeredi.hu>
321
322         * Released 1.5
323
324 2006-02-19  Miklos Szeredi <miklos@szeredi.hu>
325
326         * Fix compilation with old FUSE versions.  Report by Kurt George
327         Gjerde
328
329 2006-02-16  Miklos Szeredi <miklos@szeredi.hu>
330
331         * Block TERM/INT/HUP/QUIT signals in sshfs reading thread, so they
332         will always be received by the FUSE main thread.  Fixes the
333         "double ^C" problem seen on FreeBSD.
334
335         * Use 'auto_cache' option if available, so that file cache is not
336         thrown away on each open.  This should make repeated reading of a
337         file much much faster.
338
339 2006-01-31  Miklos Szeredi <miklos@szeredi.hu>
340
341         * Fix problems with nodelay workaround on FreeBSD.
342
343 2006-01-30  Miklos Szeredi <miklos@szeredi.hu>
344
345         * Fix data consitency bug if readahead is enabled and writes are
346         intermixed with reads.  Solution is far from optimal, since it
347         will prevent readahead in the above situation.  If used with FUSE
348         >= 2.6.0 with Linux-2.6.X, readahead will be done by the kernel,
349         and hence there will be no performance penalty.  Bug reported and
350         test program written by Wolfgang Köbler.  Further testing on
351         FreeBSD by Csaba Henk
352
353 2006-01-29  Miklos Szeredi <miklos@szeredi.hu>
354
355         * Add '-olarge_read' option for Linux-2.4.*.  This should
356         generally improve download performance
357
358 2006-01-27  Miklos Szeredi <miklos@szeredi.hu>
359
360         * Add workaround (enabled by default) for ssh clients not setting
361         TCP_NODELAY on the network connection.  Currently this is all
362         known versions of openssh.  This may improve download speed in
363         some circumstances
364
365         * Make it possible to idividually disable workarounds with a "no"
366         prefix
367
368         * Change '-otransform_symlinks' not to prefix with the mountpoint
369         (which is fragile wrt. moving/binding the mount).  Rather convert
370         absolute symlinks to relative if possible.  Does not yet work if
371         base path is itself relative
372
373 2006-01-25  Miklos Szeredi <miklos@szeredi.hu>
374
375         * Use TCP_NODELAY socket option for direct connection.  This may
376         improve download speed in some circumstances
377
378 2006-01-20  Miklos Szeredi <miklos@szeredi.hu>
379
380         * Update to fuse API 2.6
381
382         * Don't do readahead in sshfs if it's done in kernel
383
384 2006-01-14  Miklos Szeredi <miklos@szeredi.hu>
385
386         * Released 1.4
387
388 2006-01-09  Miklos Szeredi <miklos@szeredi.hu>
389
390         * Added 'transform_symlinks' option to "fix-up" absolute symlinks.
391         Patch by Paul Jarc
392
393         * Add option parsing implementation, so linking with older than
394         2.5.0 libfuse still works.
395
396 2005-12-09  Miklos Szeredi <miklos@szeredi.hu>
397
398         * Use new option parsing interface of FUSE
399
400 2005-11-28  Miklos Szeredi <miklos@szeredi.hu>
401
402         * Set statvfs::f_frsize
403
404 2005-11-23  Miklos Szeredi <miklos@szeredi.hu>
405
406         * Fix warnings on 64bit systems.  Reported by D. R. Evans
407
408 2005-11-16  Miklos Szeredi <miklos@szeredi.hu>
409
410         * Replace EPROTO with the more portable EIO
411
412         * Fix bug in option parsing.  Reported by Csaba Henk
413
414 2005-10-29  Miklos Szeredi <miklos@szeredi.hu>
415
416         * Use FUSE version 25 if available
417
418         * Add <sys/socket.h> include.  Reported by Csaba Henk
419
420 2005-10-29  Miklos Szeredi <miklos@szeredi.hu>
421
422         * Released 1.3
423
424 2005-10-28  Miklos Szeredi <miklos@szeredi.hu>
425
426         * Add atomic create+open and ftruncate operation.  This should fix
427         issues with 'cp' and other programs failing with "Permission
428         denied".  To be effective, needs FUSE version 2.5 and kernel
429         version 2.6.15 (just a guess, since neither of them is released
430         yet).
431
432 2005-10-27  Miklos Szeredi <miklos@szeredi.hu>
433
434         * Add support for SSH protocol version 1.  Bug reported by Miklos
435         Bagi Jr.
436
437 2005-10-26  Miklos Szeredi <miklos@szeredi.hu>
438
439         * Fix typo (ConnectTimeout -> ConnectionTimeout) in ssh options.
440         Bug reported by Miklos Bagi Jr.
441
442 2005-10-19  Miklos Szeredi <miklos@szeredi.hu>
443
444         * GNOME Nautilus fails to copy file to sshfs filesystem, because
445         FUSE returns zero free space.  So instead return huge (999999999
446         kbytes) amount of free space, yet it should be obvious that the
447         number is artificial.  Bug report by Peter Kronheimer
448
449 2005-10-18  Miklos Szeredi <miklos@szeredi.hu>
450
451         * Add remote uid detection and translation ('idmap=user' option).
452         Idea and implementation details worked out by Jean-Marc Valin
453
454 2005-10-17  Miklos Szeredi <miklos@szeredi.hu>
455
456         * Add one more missing lock.
457
458         * Add workaround for failure to rename to an existing file.  Based
459         on patch by Michael Best
460
461 2005-10-15  Miklos Szeredi <miklos@szeredi.hu>
462
463         * Protect request ID allocation with mutex.  Bug report by Tvrtko
464         Ursulin
465
466 2005-08-17  Miklos Szeredi <miklos@szeredi.hu>
467
468         * Try to calculate approximate disk usage of files from their
469         size, so that 'du' returns meaningful results.  Problem reported
470         by Bernd Amend.
471
472 2005-08-15  Miklos Szeredi <miklos@szeredi.hu>
473
474         * Released 1.2
475
476 2005-08-13  Miklos Szeredi <miklos@szeredi.hu>
477
478         * Add 'reconnect' option, which tries to reconnect to the server
479         when the connection is broken.  If a password is required for
480         connection, it is recommended that you install ssh-askpass, and
481         set the SSH_ASKPASS environment variable (see 'man ssh' for more
482         details).
483
484 2005-05-05  Miklos Szeredi <miklos@szeredi.hu>
485
486         * Work around missing truncate() support in some older sftp
487         servers (only works for zero size truncate).  Thanks to Eduard
488         Czimbalmos for the bug report and help with testing
489
490 2005-04-13  Miklos Szeredi <miklos@szeredi.hu>
491
492         * Fix compilation with gcc-2.95.  Reported by David A. Gershman
493
494 2005-03-08  Miklos Szeredi <miklos@szeredi.hu>
495
496         * Make it work on server version 2 (e.g. Sun_SSH_1.0.1).  Report
497         and testing by Pieter J. Kersten
498
499 2005-03-04  Miklos Szeredi <miklos@szeredi.hu>
500
501         * Released 1.1
502
503 2005-03-03  Miklos Szeredi <miklos@szeredi.hu>
504
505         * Slightly optimize readahead.  Still not clever enough to always
506         keep the pipe filled.
507
508         * Add 'sshfs_debug' option
509
510 2005-02-17  Miklos Szeredi <miklos@szeredi.hu>
511
512         * Parse 'max_read' mount option and if smaller than 65536 forward
513         to FUSE
514
515 2005-02-16  Miklos Szeredi <miklos@szeredi.hu>
516
517         * Added simple readahead (big performance gain in case of
518         sequential read pattern).  Can be disabled with '-o no_readahead'
519
520 2005-02-14  Miklos Szeredi <miklos@szeredi.hu>
521
522         * Added asynchronous writeback (big performance gain) and made
523         this the default.  Can be disabled with '-o sshfs_sync'
524
525 2005-02-09  Miklos Szeredi <miklos@szeredi.hu>
526
527         * Added option to start arbitary command instead of 'ssh'
528
529         * Re-added '-p PORT' as a convenience option, also '-C' works as
530         in ssh.
531
532 2005-02-08  Miklos Szeredi <miklos@szeredi.hu>
533
534         * Add caching of symlinks
535
536         * Add support for many ssh options to be passed to ssh
537
538         * Port number can now actually be specified with "-o port=PORT",
539         bug spotted by Andrew Ukrainec
540
541 2005-02-07  Miklos Szeredi <miklos@szeredi.hu>
542
543         * Separate attribute caching to a separate layer
544
545         * Add caching of directory contents
546
547 2005-02-03  Miklos Szeredi <miklos@szeredi.hu>
548
549         Fix PKG_CONFIG_PATH setting in configure.ac (reported by Alpar
550         Juttner)
551
552 2005-01-09  Miklos Szeredi <miklos@szeredi.hu>
553
554         * Released 1.0
555
556 2004-12-04  Miklos Szeredi <miklos@szeredi.hu>
557
558         * Started ChangeLog