[PATCH] Use libihash to store directory entries in ftpfs.

2016-02-08 Thread Flavio Cruz
* ftpfs/ftpfs.h: Add dir_locp for each directory entry and replace the table with a libihash table. * ftpfs/dir.c: Modify the code to use libihash. Remove several functions such as rehash and insert. --- ftpfs/dir.c | 158 +- ftpfs/ftpfs.

Re: [PATCH] Cast kernel server call arguments to the correct type when mach_port_t and ipc_port_t are used interchangeably

2016-02-08 Thread Samuel Thibault
Flávio Cruz, on Tue 09 Feb 2016 00:32:59 +0100, wrote: > Could anyone take another look at this patch? I wanted to sleep a bit over it, it seems I have overslept :) "itSpecial" is usually a bad sign, "Read comments on itCalculateNameInfo" is even more a bad sign :) Can we perhaps find a better na

Re: [PATCH] Cast kernel server call arguments to the correct type when mach_port_t and ipc_port_t are used interchangeably

2016-02-08 Thread Flávio Cruz
Could anyone take another look at this patch? Thanks On 31 December 2015 at 15:28, Flavio Cruz wrote: > On Thu, Dec 31, 2015 at 03:11:44PM +0100, Justus Winter wrote: > > Quoting Flavio Cruz (2015-12-30 18:03:58) > > > This fixes a warning when compiling the mig generated file > > > gnumach/ker

Re: RFC: [PATCH hurd 1/6] Add file record locking support: libfshelp_rlock.patch

2016-02-08 Thread Samuel Thibault
Svante Signell, on Mon 08 Feb 2016 12:51:42 +0100, wrote: > 1) Locks are inherited by fork, they should not. Test program: libfshelp- > tests/fork.c As I mentioned previously, this should be fine for now. > 2) The pid of a conflicting process locking a file is not returned. Similarly, we can mak

Re: RFC: [PATCH hurd 1/6] Add file record locking support: libfshelp_rlock.patch

2016-02-08 Thread Samuel Thibault
I can only repeat myself: Svante Signell, on Mon 08 Feb 2016 12:51:42 +0100, wrote: > +++ hurd-0.7.git20160114/libfshelp/rlock.h > + > +//#include Why not? That'd avoid copy/pasting the pthread_cond_init > +extern int pthread_cond_init (pthread_cond_t *__restrict cond, > +

[bug #17118] pflocal issues

2016-02-08 Thread Justus Winter
Update of bug #17118 (project hurd): Status:None => Works For Me Open/Closed:Open => Closed Wiki-like text discussion box: => I piped more than 8 tb of zeros through pfinet ov

Re: RFC: [PATCH hurd 3/6] Add file record locking support: libtrivfs_file_record_lock.patch

2016-02-08 Thread Justus Winter
Quoting Svante Signell (2016-02-08 14:44:09) > > That openstat is 0 has nothing to do with protected payloads.  I > > believe it is because the underlying node of the 'null' translator is > > opened with flags=0. > > Are you referring to the nullauth() call in null.c here? I've tried to remove > t

Re: RFC: [PATCH hurd 3/6] Add file record locking support: libtrivfs_file_record_lock.patch

2016-02-08 Thread Svante Signell
On Mon, 2016-02-08 at 14:19 +0100, Justus Winter wrote: > Quoting Svante Signell (2016-02-08 12:53:56) > > Proxy implementation added to the original patches. > >   > As I said on IRC, there is no evidence that the protected payload > mechanism is not working as expected.  We are using it for ever

Re: RFC: [PATCH hurd 3/6] Add file record locking support: libtrivfs_file_record_lock.patch

2016-02-08 Thread Justus Winter
Quoting Svante Signell (2016-02-08 12:53:56) > Proxy implementation added to the original patches. >   > Note: This proxy version does not work, e.g. set_fcntl /dev/null gives error > code EACCES. The problem has been traced down to fsServer.c: > > 3386: if (MACH_MSGH_BITS_LOCAL (In0P->Head.msgh_b

[bug #15329] exec doesn't like zip'ed binaries

2016-02-08 Thread Justus Winter
Update of bug #15329 (project hurd): Open/Closed:Open => Closed ___ Reply to this item at: ___ Messag

[bug #11509] fakeroot is not reliable

2016-02-08 Thread Justus Winter
Update of bug #11509 (project hurd): Status: Confirmed => Fixed Open/Closed:Open => Closed Wiki-like text discussion box: => We worked on fakeroot quite a bit, and do use it

[bug #6034] Active translator of ordinary user can't use stdout and stderr

2016-02-08 Thread Justus Winter
Update of bug #6034 (project hurd): Status:None => Works For Me Open/Closed:Open => Closed Wiki-like text discussion box: => stdout is closed (see libfshelp/start-translator.c

[bug #17341] booting a sub-hurd as non-root user

2016-02-08 Thread Justus Winter
Update of bug #17341 (project hurd): Assigned to:None => teythoon Wiki-like text discussion box: => I have a prototype. The required kernel change is already merged: 8c4d15d5. ___

RFC: [PATCH glibc 1/1]: Add file record locking support

2016-02-08 Thread Svante Signell
sysdeps/mach/hurd/Changelog 2014-08-21 Svante Signell * fcntl.c: Add support for file-record-lock RPC fixing posix file locking using the flock64 version of struct flock. * bits/fcntl.h: Since MIG cannot mix 32 bit and 64 bit integers define unique numbers for F_GETLK64, F

RFC: [PATCH hurd 6/6] Add file record locking support: libfshelp-tests_rlock.patch

2016-02-08 Thread Svante Signell
Test programs in libfshelp-tests: locks.c race.c fork.c set-flock.c set-fcntl.c ./ChangeLog 2014-08-21 Svante Signell * Makefile: Add sub-directory libfshelp-tests. libfshelp-tests/ChangeLog 2014-08-21 Svante Signell * Makefile: Link with pthread, add build of set-flock.c and set-fc

RFC: [PATCH hurd 5/6] Add file record locking support: hurd_add_RPC.patch

2016-02-08 Thread Svante Signell
hurd/ChangeLog 2014-08-21 Svante Signell * fs.defs: Added description. * hurd_types.defs: Make struct flock_t seven integers long since l_start and l_len are 64bit. * hurd_types.h: typedef flock_t as flock64. 2001-04-10 Neal H Walfield * fs.defs: New rpc file_record_lock. * hurd_typ

RFC: [PATCH hurd 4/6] Add file record locking support: libnetfs_file_record_lock.patch

2016-02-08 Thread Svante Signell
Note: Until all recent changes in libnetfs have settled: this patch relates to the changes before Flavios patches starting with the refcount_t usage for peropen references. Implementation of libnetfs is added to the original patches. Test cases: ftpfs and dh_gencontrol via fakeroot. ftpfs (F_RDL

RFC: [PATCH hurd 3/6] Add file record locking support: libtrivfs_file_record_lock.patch

2016-02-08 Thread Svante Signell
Proxy implementation added to the original patches.   Note: This proxy version does not work, e.g. set_fcntl /dev/null gives error code EACCES. The problem has been traced down to fsServer.c: 3386: if (MACH_MSGH_BITS_LOCAL (In0P->Head.msgh_bits) == MACH_MSG_TYPE_PROTECTED_PAYLOAD) 3387:   file =

RFC: [PATCH hurd 2/6] Add file record locking support: libdiskfs_file_record_lock.patch

2016-02-08 Thread Svante Signell
No issues here, except the ones mentioned in patch 1/6. libdiskfs/ChangeLog 2014-08-21 Svante Signell * define temporary CPP_FLAGS until glibc is updated * file-lock-stat.c: Port from cthreads to libpthread. * file-lock.c: Likewise * file-record-lock: Likewise 2001-04-11 Neal H Walfield

RFC: [PATCH hurd 1/6] Add file record locking support: libfshelp_rlock.patch

2016-02-08 Thread Svante Signell
Missing features: 1) Locks are inherited by fork, they should not. Test program: libfshelp- tests/fork.c 2) The pid of a conflicting process locking a file is not returned. Both problems will be solved by implementation of the proc_user_identify/proc_server_identify RPCs with corresponding adjust

RFC: [PATCH hurd 0/6] Add file record locking support (updated)

2016-02-08 Thread Svante Signell
Hi, Attached in subsequent mails is an updated patch series for file record locking support, mainly developed by Neal Walfield in 2001. The patch was published by Marcus Brinkmann and later re-diffed by Michael Banck in 2002. Now modified to use libpthread instead of cthreads. Additional fixes sin

[bug #19479] Using a buggy trivfs translator to kill you shell

2016-02-08 Thread Justus Winter
Update of bug #19479 (project hurd): Status:None => Invalid Open/Closed:Open => Closed ___ Reply to this item at:

[bug #20656] Init machinery: ``kill -HUP 1''

2016-02-08 Thread Justus Winter
Update of bug #20656 (project hurd): Status:None => Fixed Open/Closed:Open => Closed Wiki-like text discussion box: => This is fixed, PID 1 is now sysvinit or the like.

[bug #27807] ncursew.so is empty

2016-02-08 Thread Justus Winter
Update of bug #27807 (project hurd): Status:None => Fixed Open/Closed:Open => Closed Wiki-like text discussion box: => Fixed in c025e6a9. ___

[task #1429] ncurses driver

2016-02-08 Thread Justus Winter
Update of task #1429 (project hurd): Status:None => Done Percent Complete: Any => 0% Open/Closed:Open => Closed

[task #1618] Allowing filesystems larger than ~2 GB

2016-02-08 Thread Justus Winter
Update of task #1618 (project hurd): Status:None => Done Open/Closed:Open => Closed ___ Reply to this item at:

[task #3731] kill -1 should exclude system services

2016-02-08 Thread Justus Winter
Update of task #3731 (project hurd): Open/Closed:Open => Closed ___ Reply to this item at: ___ Message

[task #2562] Investigate other hash algorithms

2016-02-08 Thread Justus Winter
Update of task #2562 (project hurd): Should Start On: => Mon 08 Feb 2016 12:00:00 AM GMT Should be Finished on: => Mon 08 Feb 2016 12:00:00 AM GMT Percent Complete: Any => 0% O

Re: [PATCH v2] Fixed leaks in _netfs_translator_callback2_fn

2016-02-08 Thread Justus Winter
Quoting James Clarke (2016-02-08 00:18:11) > * libnetfs/trans-callback.c (_netfs_translator_callback2_fn): Fixed leaking > iouser and peropen structs on error. Merged, thanks! Justus

Re: [PATCH] Use libihash to store directory entries in ftpfs.

2016-02-08 Thread Justus Winter
Quoting Flavio Cruz (2016-02-07 15:03:10) > * ftpfs/ftpfs.h: Add dir_locp for each directory entry and replace the table > with a libihash table. > * ftpfs/dir.c: Modify the code to use libihash. Remove several functions such > as rehash and insert. Cool! > -/* Calculate NAME's hash value. */