CVS commit: src/sbin/mount_puffs

2016-11-23 Thread Masatake Daimon
Module Name:src
Committed By:   pho
Date:   Wed Nov 23 14:33:29 UTC 2016

Modified Files:
src/sbin/mount_puffs: mount_puffs.8 mount_puffs.c

Log Message:
Major rework on mount_puffs(8) so that it can actually start file servers

Now you can do
  # mount_puffs -o rdonly rot13fs#/home/foo /mnt/rot13

or in fstab
  rot13fs#/home/foo  /mnt/rot13  puffs  rdonly

to start rot13fs with arguments identical to
  # rot13fs -o rdonly /home/foo /mnt/rot13


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sbin/mount_puffs/mount_puffs.8
cvs rdiff -u -r1.4 -r1.5 src/sbin/mount_puffs/mount_puffs.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/librefuse

2016-11-20 Thread Masatake Daimon
Module Name:src
Committed By:   pho
Date:   Sun Nov 20 13:28:32 UTC 2016

Modified Files:
src/lib/librefuse: fuse.h refuse.3 refuse.c

Log Message:
fuse_main(3): Support general fuse options via fuse_parse_cmdline(3)

* Prototypes for fuse_new(3), fuse_mount(3), and fuse_unmount(3) now
  matches to the original fuse interface.

* Add fuse_daemonize(3): needs to have a different prototype,
  otherwise we can't use puffs_daemon(3).

* Remove fuse_setup(3) and fuse_teardown(3). These obsolete functions
  has already been removed from the original interface.

* fuse_main(3) now supports the following command-line options
  compatible with the original fuse:

  -h, --help  print help message
  -V, --version   print library version (currently does nothing)
  -d, -o debugenable debug output (PUFFS_FLAG_OPDUMP), implies -f
  -f  foreground mode
  -s  single threaded mode (always enabled for now)
  -o fsname=NAME  explicitly set the name of the file system

* fuse_main(3) now daemonizes the process by default. This is for the
  compatibility with the original fuse.


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/lib/librefuse/fuse.h
cvs rdiff -u -r1.12 -r1.13 src/lib/librefuse/refuse.3
cvs rdiff -u -r1.97 -r1.98 src/lib/librefuse/refuse.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src

2016-11-20 Thread Masatake Daimon
Module Name:src
Committed By:   pho
Date:   Sun Nov 20 13:26:28 UTC 2016

Modified Files:
src/distrib/sets/lists/comp: mi
src/lib/librefuse: Makefile
Added Files:
src/lib/librefuse: fuse_lowlevel.h refuse_lowlevel.c

Log Message:
fuse_lowlevel.h: new file, currently only contains fuse_parse_cmdline(3) and 
struct fuse_cmdline_opts


To generate a diff of this commit:
cvs rdiff -u -r1.2068 -r1.2069 src/distrib/sets/lists/comp/mi
cvs rdiff -u -r1.10 -r1.11 src/lib/librefuse/Makefile
cvs rdiff -u -r0 -r1.1 src/lib/librefuse/fuse_lowlevel.h \
src/lib/librefuse/refuse_lowlevel.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/librefuse

2016-11-17 Thread Masatake Daimon
Module Name:src
Committed By:   pho
Date:   Thu Nov 17 14:20:26 UTC 2016

Modified Files:
src/lib/librefuse: refuse.c

Log Message:
Change the way how puffs_fuse_node_create() behaves.

In puffs "create" and "open" are two separate operations with
atomicity achieved by locking the parent vnode. In fuse, on the other
hand, "create" is actually a create-and-open-atomically and the open
flags (O_RDWR, O_APPEND, ...) are passed via fi.flags. So the only way
to emulate the fuse semantics is to open the file with dummy flags and
then immediately close it.

You might think that we could simply use fuse->op.mknod all the time
but no, that's not possible because most file systems nowadays expect
op.mknod to be called only for non-regular files and many don't even
support it.


To generate a diff of this commit:
cvs rdiff -u -r1.96 -r1.97 src/lib/librefuse/refuse.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src

2016-11-16 Thread Masatake Daimon
Module Name:src
Committed By:   pho
Date:   Wed Nov 16 16:11:42 UTC 2016

Modified Files:
src/lib/librefuse: TODO refuse_opt.c
src/tests/lib/librefuse: t_refuse_opt.c

Log Message:
Major rework of fuse_opt_parse(3) so that it supports all the functionality of 
the original function


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/librefuse/TODO
cvs rdiff -u -r1.17 -r1.18 src/lib/librefuse/refuse_opt.c
cvs rdiff -u -r1.5 -r1.6 src/tests/lib/librefuse/t_refuse_opt.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/librefuse

2016-11-14 Thread Masatake Daimon
Module Name:src
Committed By:   pho
Date:   Tue Nov 15 00:37:18 UTC 2016

Modified Files:
src/tests/lib/librefuse: t_refuse_opt.c

Log Message:
Rename test functions


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/tests/lib/librefuse/t_refuse_opt.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/librefuse

2016-11-14 Thread Masatake Daimon
Module Name:src
Committed By:   pho
Date:   Tue Nov 15 00:34:19 UTC 2016

Modified Files:
src/lib/librefuse: refuse.3 refuse_opt.c

Log Message:
fuse_opt_match(3): Support every form of templates, not just the simple strcmp 
case

Also it should return 1 for successful matches, not the way around.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/lib/librefuse/refuse.3
cvs rdiff -u -r1.16 -r1.17 src/lib/librefuse/refuse_opt.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib/librefuse

2016-11-14 Thread Masatake Daimon
Module Name:src
Committed By:   pho
Date:   Tue Nov 15 00:32:42 UTC 2016

Modified Files:
src/tests/lib/librefuse: t_refuse_opt.c

Log Message:
lib


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/lib/librefuse/t_refuse_opt.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/librefuse

2016-11-14 Thread Masatake Daimon
Module Name:src
Committed By:   pho
Date:   Mon Nov 14 17:48:57 UTC 2016

Modified Files:
src/lib/librefuse: refuse.3

Log Message:
Add missing macros


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/lib/librefuse/refuse.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src

2016-11-14 Thread Masatake Daimon
Module Name:src
Committed By:   pho
Date:   Mon Nov 14 17:19:29 UTC 2016

Modified Files:
src/lib/librefuse: fuse_opt.h refuse.3 refuse_opt.c
src/tests/lib/librefuse: t_refuse_opt.c

Log Message:
Implement missing fuse_opt_add_opt(3) and fuse_opt_add_opt_escaped(3)


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/lib/librefuse/fuse_opt.h
cvs rdiff -u -r1.9 -r1.10 src/lib/librefuse/refuse.3
cvs rdiff -u -r1.15 -r1.16 src/lib/librefuse/refuse_opt.c
cvs rdiff -u -r1.1 -r1.2 src/tests/lib/librefuse/t_refuse_opt.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/tests/lib

2016-11-14 Thread Masatake Daimon
Module Name:src
Committed By:   pho
Date:   Mon Nov 14 16:10:31 UTC 2016

Modified Files:
src/tests/lib: Makefile
Added Files:
src/tests/lib/librefuse: Makefile t_refuse_opt.c

Log Message:
Add some tests for librefuse


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/tests/lib/Makefile
cvs rdiff -u -r0 -r1.1 src/tests/lib/librefuse/Makefile \
src/tests/lib/librefuse/t_refuse_opt.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man4

2016-10-13 Thread Masatake Daimon
Module Name:src
Committed By:   pho
Date:   Thu Oct 13 13:04:02 UTC 2016

Modified Files:
src/share/man/man4: auich.4

Log Message:
PR kern/32569: Describe the sysctl variable the driver provides


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/share/man/man4/auich.4

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/distrib/notes/common

2014-01-06 Thread Masatake Daimon
Module Name:src
Committed By:   pho
Date:   Tue Jan  7 04:46:02 UTC 2014

Modified Files:
src/distrib/notes/common: main

Log Message:
Add pho@ to NetBSD Developers.


To generate a diff of this commit:
cvs rdiff -u -r1.499 -r1.500 src/distrib/notes/common/main

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.