#
1.26 |
|
08-Aug-2021 |
nia |
introduce a SOL_LOCAL for unix-domain socket level socket options as an alias of the current 0 used for these options, as in FreeBSD.
reviewed by many.
|
Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 netbsd-9-2-RELEASE cjep_staticlib_x-base netbsd-9-1-RELEASE phil-wifi-20200421 phil-wifi-20200411 is-mlppp-base phil-wifi-20200406 netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609
|
#
1.25 |
|
17-Apr-2019 |
maya |
fix typo
|
Revision tags: netbsd-8-2-RELEASE netbsd-8-1-RELEASE netbsd-8-1-RC1 pgoyette-compat-merge-20190127 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 netbsd-8-0-RELEASE phil-wifi-base pgoyette-compat-0625 netbsd-8-0-RC2 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 netbsd-8-0-RC1 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104
|
#
1.24 |
|
19-Oct-2016 |
christos |
branches: 1.24.14; remove dup function
|
#
1.23 |
|
18-Oct-2016 |
manu |
Make FUSE socket buffer tunable
When dealing with high I/O throughput, we could run out of buffer space if the filesystem was not consuming requests fast enough. Here we slightly raise the buffer size, and we make it tunable through the PERFUSE_BUFSIZE environment variable so that we can cope with higher requirement later.
While there, document PERFUSE_OPTIONS environment variable.
|
Revision tags: localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
|
#
1.22 |
|
16-Aug-2014 |
manu |
branches: 1.22.2; Remove a warning that happens when the filesystem cleanly exits. Just display a message when running in debug mode.
|
Revision tags: netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3 riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base yamt-pagecache-base8 yamt-pagecache-base7 yamt-pagecache-base6 tls-maxphys-base
|
#
1.21 |
|
21-Jul-2012 |
manu |
branches: 1.21.10; - Fix same vnodes associated with multiple cookies The scheme used to retreive known nodes on lookup was flawed, as it only used parent and name. This produced a different cookie for the same file if it was renamed, when looking up ../ or when dealing with multiple files associated with the same name through link(2).
We therefore abandon the use of node name and introduce hashed lists of inodes. This causes a huge rewrite of reclaim code, which do not attempt to keep parents allocated until all their children are reclaimed
- Fix race conditions in reclaim There are a few situations where we issue multiple FUSE operations for a PUFFS operation. On reclaim, we therefore have to wait for all FUSE operation to complete, not just the current exchanges. We do this by introducing node reference count with node_ref() and node_rele().
- Detect data loss caused by FAF VOP_PUTPAGES causes FAF writes where the kernel does not check the operation result. At least issue a warning on error.
- Enjoy FAF shortcut on setattr No need to wait for the result if the kernel does not want it. There is however an exception for setattr that touch the size, we need to wait for completion because we have other operations queued for after the resize.
- Fix fchmod() on write-open file fchmod() on a node open with write privilege will send setattr with both mode and size set. This confuses some FUSE filesystem. Therefore we send two FUSE operations, one for mode, and one for size.
- Remove node TTL handling for netbsd-5 for simplicity sake. The code still builds on netbsd-5 but does not have the node TTL feature anymore. It works fine with kernel support on netbsd-6.
|
Revision tags: yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
|
#
1.20 |
|
04-Feb-2012 |
joerg |
branches: 1.20.2; Mark perfused_panic as dead. Canonical form of infinite loops is for (;;). Remove completely redundant NOTREACHED markers.
|
#
1.19 |
|
03-Feb-2012 |
manu |
Make sure perfused exit when the filesystem crashed, so that unmount is done. Failure to do so caused deadlocks, with operation that held a lock on the root vnode and got stuck in perfused forever.
Approved by releng.
|
#
1.18 |
|
30-Jan-2012 |
christos |
- remove dup included files - use intptr_t instead of long where appropriate - use perfused_ instead of perfuse_ for our own functions. - more static Fixes namespace collision of perfuse_mount with this and libperfuse.
|
Revision tags: yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
|
#
1.17 |
|
30-Oct-2011 |
manu |
branches: 1.17.2; Fix the confusion between nodeid and inode numbers
|
#
1.16 |
|
30-Aug-2011 |
joerg |
Fast backward code to 1989 and use ANSI C consistently. Use __dead.
|
#
1.15 |
|
09-Aug-2011 |
manu |
Fix warning
|
#
1.14 |
|
02-Aug-2011 |
manu |
Fix creds passed to FUSE when requests are done on behalf of the kernel. We previously sent uid/gid set to -1, we now set it to 0.
|
Revision tags: cherry-xenmp-base
|
#
1.13 |
|
30-May-2011 |
manu |
Use SOCK_SEQPACKET in perfuse if available. This fix file operations hangs where the FUSE filesyste replied to an operation and got an ENOBUFS it did not handle.
We now are also able to cleanly unmount
|
#
1.12 |
|
09-May-2011 |
manu |
Enable the build of perfused and libperfuse
|
#
1.11 |
|
06-May-2011 |
manu |
Display actual error from FUSE on failures
|
#
1.10 |
|
25-Apr-2011 |
manu |
- fix warnings - try to handle ENOBUFS in a nicer way - use errx() for usage message, not err(), as we do not waht strerror(errno)
|
Revision tags: bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231
|
#
1.9 |
|
11-Oct-2010 |
manu |
Remove code supporting SOCK_STREAM, as SOCK_DGRAM works fine
|
#
1.8 |
|
11-Oct-2010 |
manu |
Interm hack raising buffers for /dev/fuse socket used in the filesystem. This works around read(2) system callsfailing with ENOBUFS.
This is a hack bedause there is no way to know that 4 * FUSE_BUFSIZE will be enough to hold queued FUSE frames. It seems good enough at mine.
|
#
1.7 |
|
20-Sep-2010 |
manu |
- Add debug santity checks - Do not request peer creds anymore once we have them.
|
#
1.6 |
|
15-Sep-2010 |
manu |
- Use SOCK_DGRAM instead of SOCK_STREAM, as the filesystem seems to assume datagram semantics: when using SOCK_STREAM, if perfused sends frames faster than the filesystem consumes them, it will grab multiple frames at once and discard anything beyond the first one. For now the code can work both with SOCK_DGRAM and SOCK_STREAM, but SOCK_STREAM support will probably have to be removed for the sake of readability.
- Remeber to sync parent directories when moving a node
- In debug output, display the requeue type (readdir, write, etc...)
|
#
1.5 |
|
07-Sep-2010 |
manu |
- Do not checkfor peer credentials when perfused is autostarted and therefore runs with filesystem privileges
- shut up warnings and debug messages when perfused is autostarted
- make perfused patch modifiable with CFLAGS for easier pkgsrc integration
- Fix build warnings
|
#
1.4 |
|
06-Sep-2010 |
manu |
More LP64 fixes
|
#
1.3 |
|
01-Sep-2010 |
manu |
Build fixes for LP64
|
#
1.2 |
|
27-Aug-2010 |
manu |
- if perfused is not already started (cannot connect to /dev/fuse), FUSE filesystems will attempt to start it on their own, and will communicate using a socketpair
- do not advertise NULL file handle as being valid when sending themback to the FUSE filesystem.
- unmount if we cannot talk to the FUSE process anymore
- set calling process gid properly
- debug message cleanup
|
#
1.1 |
|
25-Aug-2010 |
manu |
perfused(8) creates a /dev/fuse socket and performs PUFFS to FUSE relaying. This is still a work in progress.
|
#
1.25 |
|
17-Apr-2019 |
maya |
fix typo
|
Revision tags: pgoyette-compat-merge-20190127 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 netbsd-8-0-RELEASE phil-wifi-base pgoyette-compat-0625 netbsd-8-0-RC2 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 netbsd-8-0-RC1 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104
|
#
1.24 |
|
19-Oct-2016 |
christos |
remove dup function
|
#
1.23 |
|
18-Oct-2016 |
manu |
Make FUSE socket buffer tunable
When dealing with high I/O throughput, we could run out of buffer space if the filesystem was not consuming requests fast enough. Here we slightly raise the buffer size, and we make it tunable through the PERFUSE_BUFSIZE environment variable so that we can cope with higher requirement later.
While there, document PERFUSE_OPTIONS environment variable.
|
Revision tags: localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
|
#
1.22 |
|
16-Aug-2014 |
manu |
branches: 1.22.2; Remove a warning that happens when the filesystem cleanly exits. Just display a message when running in debug mode.
|
Revision tags: netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3 riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base yamt-pagecache-base8 yamt-pagecache-base7 yamt-pagecache-base6 tls-maxphys-base
|
#
1.21 |
|
21-Jul-2012 |
manu |
branches: 1.21.10; - Fix same vnodes associated with multiple cookies The scheme used to retreive known nodes on lookup was flawed, as it only used parent and name. This produced a different cookie for the same file if it was renamed, when looking up ../ or when dealing with multiple files associated with the same name through link(2).
We therefore abandon the use of node name and introduce hashed lists of inodes. This causes a huge rewrite of reclaim code, which do not attempt to keep parents allocated until all their children are reclaimed
- Fix race conditions in reclaim There are a few situations where we issue multiple FUSE operations for a PUFFS operation. On reclaim, we therefore have to wait for all FUSE operation to complete, not just the current exchanges. We do this by introducing node reference count with node_ref() and node_rele().
- Detect data loss caused by FAF VOP_PUTPAGES causes FAF writes where the kernel does not check the operation result. At least issue a warning on error.
- Enjoy FAF shortcut on setattr No need to wait for the result if the kernel does not want it. There is however an exception for setattr that touch the size, we need to wait for completion because we have other operations queued for after the resize.
- Fix fchmod() on write-open file fchmod() on a node open with write privilege will send setattr with both mode and size set. This confuses some FUSE filesystem. Therefore we send two FUSE operations, one for mode, and one for size.
- Remove node TTL handling for netbsd-5 for simplicity sake. The code still builds on netbsd-5 but does not have the node TTL feature anymore. It works fine with kernel support on netbsd-6.
|
Revision tags: yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
|
#
1.20 |
|
04-Feb-2012 |
joerg |
branches: 1.20.2; Mark perfused_panic as dead. Canonical form of infinite loops is for (;;). Remove completely redundant NOTREACHED markers.
|
#
1.19 |
|
03-Feb-2012 |
manu |
Make sure perfused exit when the filesystem crashed, so that unmount is done. Failure to do so caused deadlocks, with operation that held a lock on the root vnode and got stuck in perfused forever.
Approved by releng.
|
#
1.18 |
|
30-Jan-2012 |
christos |
- remove dup included files - use intptr_t instead of long where appropriate - use perfused_ instead of perfuse_ for our own functions. - more static Fixes namespace collision of perfuse_mount with this and libperfuse.
|
Revision tags: yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
|
#
1.17 |
|
30-Oct-2011 |
manu |
branches: 1.17.2; Fix the confusion between nodeid and inode numbers
|
#
1.16 |
|
30-Aug-2011 |
joerg |
Fast backward code to 1989 and use ANSI C consistently. Use __dead.
|
#
1.15 |
|
09-Aug-2011 |
manu |
Fix warning
|
#
1.14 |
|
02-Aug-2011 |
manu |
Fix creds passed to FUSE when requests are done on behalf of the kernel. We previously sent uid/gid set to -1, we now set it to 0.
|
Revision tags: cherry-xenmp-base
|
#
1.13 |
|
30-May-2011 |
manu |
Use SOCK_SEQPACKET in perfuse if available. This fix file operations hangs where the FUSE filesyste replied to an operation and got an ENOBUFS it did not handle.
We now are also able to cleanly unmount
|
#
1.12 |
|
09-May-2011 |
manu |
Enable the build of perfused and libperfuse
|
#
1.11 |
|
06-May-2011 |
manu |
Display actual error from FUSE on failures
|
#
1.10 |
|
25-Apr-2011 |
manu |
- fix warnings - try to handle ENOBUFS in a nicer way - use errx() for usage message, not err(), as we do not waht strerror(errno)
|
Revision tags: bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231
|
#
1.9 |
|
11-Oct-2010 |
manu |
Remove code supporting SOCK_STREAM, as SOCK_DGRAM works fine
|
#
1.8 |
|
11-Oct-2010 |
manu |
Interm hack raising buffers for /dev/fuse socket used in the filesystem. This works around read(2) system callsfailing with ENOBUFS.
This is a hack bedause there is no way to know that 4 * FUSE_BUFSIZE will be enough to hold queued FUSE frames. It seems good enough at mine.
|
#
1.7 |
|
20-Sep-2010 |
manu |
- Add debug santity checks - Do not request peer creds anymore once we have them.
|
#
1.6 |
|
15-Sep-2010 |
manu |
- Use SOCK_DGRAM instead of SOCK_STREAM, as the filesystem seems to assume datagram semantics: when using SOCK_STREAM, if perfused sends frames faster than the filesystem consumes them, it will grab multiple frames at once and discard anything beyond the first one. For now the code can work both with SOCK_DGRAM and SOCK_STREAM, but SOCK_STREAM support will probably have to be removed for the sake of readability.
- Remeber to sync parent directories when moving a node
- In debug output, display the requeue type (readdir, write, etc...)
|
#
1.5 |
|
07-Sep-2010 |
manu |
- Do not checkfor peer credentials when perfused is autostarted and therefore runs with filesystem privileges
- shut up warnings and debug messages when perfused is autostarted
- make perfused patch modifiable with CFLAGS for easier pkgsrc integration
- Fix build warnings
|
#
1.4 |
|
06-Sep-2010 |
manu |
More LP64 fixes
|
#
1.3 |
|
01-Sep-2010 |
manu |
Build fixes for LP64
|
#
1.2 |
|
27-Aug-2010 |
manu |
- if perfused is not already started (cannot connect to /dev/fuse), FUSE filesystems will attempt to start it on their own, and will communicate using a socketpair
- do not advertise NULL file handle as being valid when sending themback to the FUSE filesystem.
- unmount if we cannot talk to the FUSE process anymore
- set calling process gid properly
- debug message cleanup
|
#
1.1 |
|
25-Aug-2010 |
manu |
perfused(8) creates a /dev/fuse socket and performs PUFFS to FUSE relaying. This is still a work in progress.
|
Revision tags: pgoyette-localcount-20161104
|
#
1.24 |
|
19-Oct-2016 |
christos |
remove dup function
|
#
1.23 |
|
18-Oct-2016 |
manu |
Make FUSE socket buffer tunable
When dealing with high I/O throughput, we could run out of buffer space if the filesystem was not consuming requests fast enough. Here we slightly raise the buffer size, and we make it tunable through the PERFUSE_BUFSIZE environment variable so that we can cope with higher requirement later.
While there, document PERFUSE_OPTIONS environment variable.
|
Revision tags: localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
|
#
1.22 |
|
16-Aug-2014 |
manu |
branches: 1.22.2; Remove a warning that happens when the filesystem cleanly exits. Just display a message when running in debug mode.
|
Revision tags: netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3 riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base yamt-pagecache-base8 yamt-pagecache-base7 yamt-pagecache-base6 tls-maxphys-base
|
#
1.21 |
|
21-Jul-2012 |
manu |
branches: 1.21.10; - Fix same vnodes associated with multiple cookies The scheme used to retreive known nodes on lookup was flawed, as it only used parent and name. This produced a different cookie for the same file if it was renamed, when looking up ../ or when dealing with multiple files associated with the same name through link(2).
We therefore abandon the use of node name and introduce hashed lists of inodes. This causes a huge rewrite of reclaim code, which do not attempt to keep parents allocated until all their children are reclaimed
- Fix race conditions in reclaim There are a few situations where we issue multiple FUSE operations for a PUFFS operation. On reclaim, we therefore have to wait for all FUSE operation to complete, not just the current exchanges. We do this by introducing node reference count with node_ref() and node_rele().
- Detect data loss caused by FAF VOP_PUTPAGES causes FAF writes where the kernel does not check the operation result. At least issue a warning on error.
- Enjoy FAF shortcut on setattr No need to wait for the result if the kernel does not want it. There is however an exception for setattr that touch the size, we need to wait for completion because we have other operations queued for after the resize.
- Fix fchmod() on write-open file fchmod() on a node open with write privilege will send setattr with both mode and size set. This confuses some FUSE filesystem. Therefore we send two FUSE operations, one for mode, and one for size.
- Remove node TTL handling for netbsd-5 for simplicity sake. The code still builds on netbsd-5 but does not have the node TTL feature anymore. It works fine with kernel support on netbsd-6.
|
Revision tags: yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
|
#
1.20 |
|
04-Feb-2012 |
joerg |
branches: 1.20.2; Mark perfused_panic as dead. Canonical form of infinite loops is for (;;). Remove completely redundant NOTREACHED markers.
|
#
1.19 |
|
03-Feb-2012 |
manu |
Make sure perfused exit when the filesystem crashed, so that unmount is done. Failure to do so caused deadlocks, with operation that held a lock on the root vnode and got stuck in perfused forever.
Approved by releng.
|
#
1.18 |
|
30-Jan-2012 |
christos |
- remove dup included files - use intptr_t instead of long where appropriate - use perfused_ instead of perfuse_ for our own functions. - more static Fixes namespace collision of perfuse_mount with this and libperfuse.
|
Revision tags: yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
|
#
1.17 |
|
30-Oct-2011 |
manu |
branches: 1.17.2; Fix the confusion between nodeid and inode numbers
|
#
1.16 |
|
30-Aug-2011 |
joerg |
Fast backward code to 1989 and use ANSI C consistently. Use __dead.
|
#
1.15 |
|
09-Aug-2011 |
manu |
Fix warning
|
#
1.14 |
|
02-Aug-2011 |
manu |
Fix creds passed to FUSE when requests are done on behalf of the kernel. We previously sent uid/gid set to -1, we now set it to 0.
|
Revision tags: cherry-xenmp-base
|
#
1.13 |
|
30-May-2011 |
manu |
Use SOCK_SEQPACKET in perfuse if available. This fix file operations hangs where the FUSE filesyste replied to an operation and got an ENOBUFS it did not handle.
We now are also able to cleanly unmount
|
#
1.12 |
|
09-May-2011 |
manu |
Enable the build of perfused and libperfuse
|
#
1.11 |
|
06-May-2011 |
manu |
Display actual error from FUSE on failures
|
#
1.10 |
|
25-Apr-2011 |
manu |
- fix warnings - try to handle ENOBUFS in a nicer way - use errx() for usage message, not err(), as we do not waht strerror(errno)
|
Revision tags: bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231
|
#
1.9 |
|
11-Oct-2010 |
manu |
Remove code supporting SOCK_STREAM, as SOCK_DGRAM works fine
|
#
1.8 |
|
11-Oct-2010 |
manu |
Interm hack raising buffers for /dev/fuse socket used in the filesystem. This works around read(2) system callsfailing with ENOBUFS.
This is a hack bedause there is no way to know that 4 * FUSE_BUFSIZE will be enough to hold queued FUSE frames. It seems good enough at mine.
|
#
1.7 |
|
20-Sep-2010 |
manu |
- Add debug santity checks - Do not request peer creds anymore once we have them.
|
#
1.6 |
|
15-Sep-2010 |
manu |
- Use SOCK_DGRAM instead of SOCK_STREAM, as the filesystem seems to assume datagram semantics: when using SOCK_STREAM, if perfused sends frames faster than the filesystem consumes them, it will grab multiple frames at once and discard anything beyond the first one. For now the code can work both with SOCK_DGRAM and SOCK_STREAM, but SOCK_STREAM support will probably have to be removed for the sake of readability.
- Remeber to sync parent directories when moving a node
- In debug output, display the requeue type (readdir, write, etc...)
|
#
1.5 |
|
07-Sep-2010 |
manu |
- Do not checkfor peer credentials when perfused is autostarted and therefore runs with filesystem privileges
- shut up warnings and debug messages when perfused is autostarted
- make perfused patch modifiable with CFLAGS for easier pkgsrc integration
- Fix build warnings
|
#
1.4 |
|
06-Sep-2010 |
manu |
More LP64 fixes
|
#
1.3 |
|
01-Sep-2010 |
manu |
Build fixes for LP64
|
#
1.2 |
|
27-Aug-2010 |
manu |
- if perfused is not already started (cannot connect to /dev/fuse), FUSE filesystems will attempt to start it on their own, and will communicate using a socketpair
- do not advertise NULL file handle as being valid when sending themback to the FUSE filesystem.
- unmount if we cannot talk to the FUSE process anymore
- set calling process gid properly
- debug message cleanup
|
#
1.1 |
|
25-Aug-2010 |
manu |
perfused(8) creates a /dev/fuse socket and performs PUFFS to FUSE relaying. This is still a work in progress.
|