The NetBSD Project

CVS log for src/usr.sbin/puffs/mount_9p/ninepuffs.c

[BACK] Up to [cvs.NetBSD.org] / src / usr.sbin / puffs / mount_9p

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.34: download - view: text, markup, annotated - select for diffs
Thu Feb 10 09:29:39 2022 UTC (2 years, 10 months ago) by ozaki-r
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, HEAD
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +10 -3 lines
mount_9p: don't cache path names by default

Caching path names doesn't handle file changes by host, which is
not expected for normal usages.  So turn it off by default.

Instead, -C option is added to turn it on.

Patch from k-goda@IIJ with my tweaks

Revision 1.33: download - view: text, markup, annotated - select for diffs
Sun Jun 14 00:30:20 2020 UTC (4 years, 5 months ago) by uwe
Branches: MAIN
CVS tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +28 -10 lines
Support optional square brackets around the host name.

The brackets are required when using numeric IPv6 addresses as they
contain colons as part of their syntax.  We do not enforce that the
thing in the brackets is a numeric IPv6 address - this matches scp
syntax and behavior.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Sat Jun 13 21:23:27 2020 UTC (4 years, 5 months ago) by uwe
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +3 -3 lines
Remove -46 from the -c usage.  While here, sync usage with man page
(s/devfile/device).

Revision 1.31: download - view: text, markup, annotated - select for diffs
Sat Jun 13 16:56:46 2020 UTC (4 years, 5 months ago) by wiz
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +4 -4 lines
Add -46 to usage.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Sat Jun 13 13:45:06 2020 UTC (4 years, 5 months ago) by uwe
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +70 -32 lines
Support IPv6.

Use getaddrinfo(3).  Add -4 and -6 command line options.  Obey USE_INET6.

Revision 1.29: download - view: text, markup, annotated - select for diffs
Sat May 30 02:53:30 2020 UTC (4 years, 6 months ago) by uwe
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +4 -3 lines
Initialize puffs9p::server (though it's not used anywhere).

Revision 1.28: download - view: text, markup, annotated - select for diffs
Fri May 29 23:49:08 2020 UTC (4 years, 6 months ago) by uwe
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +3 -3 lines
Fix vio9p device name in a comment.

Revision 1.24.42.2: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:05:56 2020 UTC (4 years, 8 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.24.42.1: preferred, colored; branchpoint 1.24: preferred, colored; next MAIN 1.25: preferred, colored
Changes since revision 1.24.42.1: +39 -6 lines
Mostly merge changes from HEAD upto 20200411

Revision 1.27: download - view: text, markup, annotated - select for diffs
Mon Oct 28 02:59:25 2019 UTC (5 years, 1 month ago) by ozaki-r
Branches: MAIN
CVS tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, is-mlppp-base, is-mlppp
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +39 -6 lines
mount_9p: enable to communicate with vio9p via its character device file

With this feature, we can mount an exported filesystem by a VM host via
virtio-9p.

Revision 1.24.42.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:10:35 2019 UTC (5 years, 6 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +10 -4 lines
Sync with HEAD

Revision 1.26: download - view: text, markup, annotated - select for diffs
Mon May 20 08:55:31 2019 UTC (5 years, 6 months ago) by ozaki-r
Branches: MAIN
CVS tags: phil-wifi-20190609, netbsd-9-base, netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +3 -3 lines
mount_9p: add missing -u option to the help message

Revision 1.25: download - view: text, markup, annotated - select for diffs
Fri May 17 08:48:04 2019 UTC (5 years, 6 months ago) by ozaki-r
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +9 -3 lines
mount_9p: add initial support for 9P2000.u

The implementation enables to work with a server talking 9P2000.u.  However, it
doesn't use the extended fields yet; it just ignores those of received messages
and sets "please ignore" values to those of sending messages such as zero-length
strings and maximum unsigned values.

The feature is enabled by the -u option.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Wed Aug 31 13:32:39 2011 UTC (13 years, 3 months ago) by joerg
Branches: MAIN
CVS tags: yamt-pagecache-tag8, yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-pagecache, tls-maxphys-base, tls-maxphys, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb8-mediatek-base, matt-nb8-mediatek, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, localcount-20160914, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan, agc-symver-base, agc-symver
Branch point for: phil-wifi
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +3 -3 lines
Use __dead

Revision 1.16.4.2: download - view: text, markup, annotated - select for diffs
Wed Jan 9 02:02:17 2008 UTC (16 years, 11 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.16.4.1: preferred, colored; branchpoint 1.16: preferred, colored; next MAIN 1.17: preferred, colored
Changes since revision 1.16.4.1: +8 -8 lines
sync with HEAD

Revision 1.23: download - view: text, markup, annotated - select for diffs
Sun Dec 2 21:03:39 2007 UTC (17 years ago) by wiz
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, mjf-devfs2-base, mjf-devfs2, matt-premerge-20091211, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-premerge-20101231, matt-mips64-base2, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, hpcarm-cleanup-nbase, hpcarm-cleanup-base, cube-autoconf-base, cube-autoconf, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +3 -3 lines
Sort options.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Fri Nov 16 18:39:01 2007 UTC (17 years ago) by pooka
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +4 -4 lines
use puffs_daemon() instead of daemon()

Revision 1.16.4.1: download - view: text, markup, annotated - select for diffs
Tue Nov 6 23:36:30 2007 UTC (17 years, 1 month ago) by matt
Branches: matt-armv6
CVS tags: matt-armv6-prevmlocking
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +17 -10 lines
sync with HEAD

Revision 1.21: download - view: text, markup, annotated - select for diffs
Tue Nov 6 15:09:08 2007 UTC (17 years, 1 month ago) by pooka
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +5 -5 lines
Open the kernel descriptor as part of mount(), not init().  Then
it doesn't matter if someone fork()s or does other tricks between
init() and mount() (and besides, now it's where it logically should be).

Revision 1.20: download - view: text, markup, annotated - select for diffs
Mon Nov 5 17:54:32 2007 UTC (17 years, 1 month ago) by pooka
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +5 -6 lines
Actually, daemonize the file servers before mounting.  I might require
at some point that the local protocol handler does not change after
the file system has been mounted.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Mon Nov 5 17:48:18 2007 UTC (17 years, 1 month ago) by pooka
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +14 -7 lines
Pull the daemonizing code out of the library mainloop into the file
servers.  Calling daemon() (i.e. fork()ing) inside a library can
cause nice surprises for e.g. threaded programs.  As discussed with
Greg Oster & others.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Mon Oct 15 17:28:13 2007 UTC (17 years, 2 months ago) by pooka
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +5 -4 lines
update usage to match reality.  caught by jmcneill

Revision 1.17: download - view: text, markup, annotated - select for diffs
Sat Sep 1 16:43:10 2007 UTC (17 years, 3 months ago) by pooka
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +3 -3 lines
Adapt to new puffs_framev_init() signature - gotfb.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Tue Jul 17 11:34:53 2007 UTC (17 years, 5 months ago) by pooka
Branches: MAIN
CVS tags: matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: matt-armv6
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +3 -3 lines
* add mntfromname parameter to puffs_init()
* set it in file servers

Revision 1.15: download - view: text, markup, annotated - select for diffs
Tue Jul 17 10:06:04 2007 UTC (17 years, 5 months ago) by pooka
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +36 -17 lines
support standard user@host:path mount argument

Revision 1.14: download - view: text, markup, annotated - select for diffs
Sun Jul 8 16:29:29 2007 UTC (17 years, 5 months ago) by pooka
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +15 -10 lines
Accept user as a flag.  This way the usage is fstab-compliant:
  mount_9p argument mountpoint

Revision 1.13: download - view: text, markup, annotated - select for diffs
Sat Jul 7 21:14:28 2007 UTC (17 years, 5 months ago) by pooka
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +4 -3 lines
adapt to puffs_framebuf changes

Revision 1.12: download - view: text, markup, annotated - select for diffs
Sat May 19 10:38:23 2007 UTC (17 years, 6 months ago) by pooka
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +3 -3 lines
support reclaim.  set noref setback when removing a node to prompt
immediate reclaim.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Thu May 17 14:13:05 2007 UTC (17 years, 7 months ago) by pooka
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +5 -10 lines
reflect changes in fs mount: use puffs_mount() instead of
puffs_domount() & puffs_start()

Revision 1.10: download - view: text, markup, annotated - select for diffs
Tue May 15 13:46:47 2007 UTC (17 years, 7 months ago) by pooka
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +5 -6 lines
adapt to "step 3" of puffs_framebuf changes

Revision 1.9: download - view: text, markup, annotated - select for diffs
Fri May 11 21:27:45 2007 UTC (17 years, 7 months ago) by pooka
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +12 -12 lines
use puffs_mainloop(); puffs_framebuf_eventloop() is a goner

Revision 1.8: download - view: text, markup, annotated - select for diffs
Fri May 11 16:23:00 2007 UTC (17 years, 7 months ago) by pooka
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +3 -3 lines
adapt to puffs_framebuf changes

Revision 1.7: download - view: text, markup, annotated - select for diffs
Mon May 7 17:20:58 2007 UTC (17 years, 7 months ago) by pooka
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +3 -3 lines
Use inactive-on-demand, set inactive request in open() to close
file handles when last reference is removed from the kernel.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Sun May 6 21:58:24 2007 UTC (17 years, 7 months ago) by pooka
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +3 -3 lines
Close file handles in inactive instead of close - a memory mapping
may still be active after a vnode is closed

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sun May 6 10:51:19 2007 UTC (17 years, 7 months ago) by pooka
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +3 -3 lines
adapt to puffs_framebuf_eventloop signature change

Revision 1.4: download - view: text, markup, annotated - select for diffs
Sat May 5 15:49:51 2007 UTC (17 years, 7 months ago) by pooka
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +4 -195 lines
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.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Wed May 2 18:50:30 2007 UTC (17 years, 7 months ago) by pooka
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +3 -2 lines
For consistency destroy kernel request putbuffers also when
escaping event loop (the process is going to exit anyway, but ...)

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sun Apr 22 18:10:48 2007 UTC (17 years, 7 months ago) by pooka
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +3 -2 lines
Alter the strategy for reading/writing a bit.  First of all, use
PUFFS_KFLAG_WTCACHE.  Second, create separate fids for reading and
writing.  If opening for read, open a read-only fid and for write
a write-only fid; use these for reading and writing.  When the
open-count for a node drops to zero, clunk both.  This avoids hitting
the fid limit when accessing large directory hierarchies.

Two problems remain:
* does not take credentials into account, although we can only mount
  the remote 9P file server with one set of credentials, so not a
  huge worry
* doesn't work for the open/mmap/close/access_memory_window case, but
  that will require some further kernel changes

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sat Apr 21 14:21:43 2007 UTC (17 years, 7 months ago) by pooka
Branches: MAIN
mount_9p: mount a file server using the Plan9 file sharing protocol

Works, but lots of little things to nibble on:
* fix permissions to work better
* limit the amount of open files required
* do constant folding with psshfs code
* support authentication
etcetc.

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>