aboutsummaryrefslogtreecommitdiff
path: root/libnetfs/make-peropen.c
Commit message (Collapse)AuthorAgeFilesLines
* Use refcount_t for peropen reference counting in libnetfs.Flavio Cruz2016-02-071-1/+1
| | | | | | | | | | * libnetfs/netfs.h: Use refcount_t. * libnetfs/make-peropen.c: Initialize to 1 with refcount_init just like in libdiskfs. * libnetfs/make-protid.c: Don't increment the count here. Do it like libdiskfs. * libnetfs/io-duplicate.c: Add refcount_ref since netfs_make_protid no longer increments the refcount. * libnetfs/io-reauthenticate.c: Likewise. * libnetfs/io-restrict-auth.c: Likewise. * libnetfs/release-peropen.c: Dereference without locking.
* Normalize whitespace at the end of each file to '\n'Justus Winter2013-11-091-1/+0
| | | | | Some files were not normalized. In console/motd.UTF8 the additional newline is intentional. Empty files were excluded as well.
* Fix ENOMEM handling in *_make_peropenSamuel Thibault2013-09-211-8/+13
| | | | | | | * libdiskfs/peropen-make.c (diskfs_make_peropen): Move `strdup` before port reference modifications, to fix abortion. * libnetfs/make-peropen.c (netfs_make_peropen): Check for `malloc` failure. Move `strdup` before port reference modifications, to fix abortion.
* libnetfs: track file name in struct peropenJustus Winter2013-09-151-0/+8
| | | | | | | | | | | Track the relative path used to obtain a file handle in the struct peropen. * libnetfs/netfs.h (struct peropen): New field path. * libnetfs/make-peropen.c (netfs_make_peropen): Initialize path. * libnetfs/release-peropen.c (netfs_release_peropen): Free path. * libnetfs/fsys-getroot.c (netfs_S_fsys_getroot): Initialize path. * libnetfs/dir-lookup.c (netfs_S_dir_lookup): Preserve the path.
* (netfs_make_peropen):Miles Bader1997-03-021-6/+21
| | | | Add and use CONTEXT parameter.
* entered into RCSMichael I. Bushnell1995-12-151-1/+4
|
* Initial revisionMichael I. Bushnell1995-12-151-0/+38