František Dvořák [Wed, 12 Feb 2014 14:42:16 +0000 (15:42 +0100)]
Enable debug messages.
František Dvořák [Wed, 18 Dec 2013 18:44:40 +0000 (19:44 +0100)]
Fix access when mode metadata is missing (owner root, no permissions).
František Dvořák [Tue, 10 Dec 2013 18:22:17 +0000 (19:22 +0100)]
Fix build with debugging switched off.
František Dvořák [Sun, 23 Feb 2014 12:08:31 +0000 (13:08 +0100)]
Look at replica status too in accessReplica().
František Dvořák [Sun, 8 Dec 2013 23:20:50 +0000 (00:20 +0100)]
Disable most debug messages.
František Dvořák [Sun, 8 Dec 2013 22:59:55 +0000 (23:59 +0100)]
Implement extendedStatByRFN(), accessReplica(), and getReplicaByRFN().
František Dvořák [Sun, 8 Dec 2013 19:09:03 +0000 (20:09 +0100)]
Assemble replica entry path on single place.
František Dvořák [Sun, 8 Dec 2013 18:23:11 +0000 (19:23 +0100)]
Fix replicas with empty path, replica server only or replica path only is enough.
František Dvořák [Thu, 5 Dec 2013 19:39:32 +0000 (20:39 +0100)]
Prepare for RFN support:
- maintain RFN tree
- files with catalog entry name as content
- sanity checks for "foreign" RFN:
- avoid overwriting (=no duplicitis of RFN)
- check content before deleting (=not deleting RFN of other catalog entry)
- update RFN tree in rename() and unlink() calls
- cleanup empty directories
František Dvořák [Mon, 2 Dec 2013 12:58:36 +0000 (13:58 +0100)]
Properly truncate the file on re-create (using xattr with size instead of truncate()).
František Dvořák [Sun, 1 Dec 2013 20:41:50 +0000 (21:41 +0100)]
Check duplicity of RFN during adding or updating replicas.
František Dvořák [Sun, 1 Dec 2013 20:12:35 +0000 (21:12 +0100)]
Support full replicas serialization and additional replicas attributes.
František Dvořák [Sun, 1 Dec 2013 20:12:35 +0000 (21:12 +0100)]
Implement updateReplica().
František Dvořák [Sun, 1 Dec 2013 20:12:27 +0000 (21:12 +0100)]
Initial support for replicas and inode cache.
František Dvořák [Wed, 23 Oct 2013 17:39:39 +0000 (19:39 +0200)]
Proper umask usage.
František Dvořák [Sat, 19 Oct 2013 21:24:06 +0000 (23:24 +0200)]
Enable all certificates by default (we have file-level permissions now).
František Dvořák [Sat, 19 Oct 2013 19:15:59 +0000 (21:15 +0200)]
More elaborate error messages in removeDir().
František Dvořák [Sat, 19 Oct 2013 19:15:59 +0000 (21:15 +0200)]
Fix removeDir() - no metadata check just for checking cwd.
František Dvořák [Sat, 19 Oct 2013 19:15:59 +0000 (21:15 +0200)]
Update makeDir() to set owner, mode and ACLs.
František Dvořák [Sat, 19 Oct 2013 19:15:59 +0000 (21:15 +0200)]
Proper check for default ACL in create().
František Dvořák [Sat, 19 Oct 2013 19:15:59 +0000 (21:15 +0200)]
Implement setAcl() using xatrs, update setMode(), setOwner() and create().
František Dvořák [Sat, 19 Oct 2013 19:15:59 +0000 (21:15 +0200)]
Separate performer code of setMode() to vfsSetMode() function.
František Dvořák [Sat, 19 Oct 2013 19:15:59 +0000 (21:15 +0200)]
Parent directory permissions are enough for extendedStat().
František Dvořák [Sat, 19 Oct 2013 19:15:58 +0000 (21:15 +0200)]
Enable file-level permissions check.
František Dvořák [Fri, 21 Feb 2014 15:39:36 +0000 (16:39 +0100)]
Enable full authorization for enhanced version of VFS plugin.
František Dvořák [Fri, 21 Feb 2014 15:36:20 +0000 (16:36 +0100)]
Enable compilation of full authorization plugin.
František Dvořák [Thu, 17 Oct 2013 19:58:01 +0000 (21:58 +0200)]
Fix setMode() vs VFS internal xattr: use separated "mode" attribute for the mode and always set read+write for the owner on filesystem.
František Dvořák [Thu, 17 Oct 2013 19:58:01 +0000 (21:58 +0200)]
All stat fields updates to separate function (vfsUpdateExtendedStat()), use it in readDirx().
František Dvořák [Thu, 17 Oct 2013 19:58:01 +0000 (21:58 +0200)]
Implementation of setChecksum() using xattrs.
František Dvořák [Thu, 17 Oct 2013 19:57:57 +0000 (21:57 +0200)]
Implementation of setComment() using xattrs, new helper functions vfsGetXattr(), vfsRemoveXattr().
František Dvořák [Thu, 17 Oct 2013 19:55:30 +0000 (21:55 +0200)]
Implementation of setSize() using xattrs.
František Dvořák [Thu, 17 Oct 2013 19:55:24 +0000 (21:55 +0200)]
Implementation of setOwner() using xattrs.
František Dvořák [Thu, 17 Oct 2013 19:44:45 +0000 (21:44 +0200)]
Relaxed reaction on User Extended Attributes errors:
- catch and cancel exeption from vfsGetXattrs()
- returns VFS_UID_NONE or VFS_GID_NONE (currently it keeps original filesystem values)
It's good for dangling symlinks (they're always followed for xattrs).
František Dvořák [Thu, 17 Oct 2013 19:44:45 +0000 (21:44 +0200)]
Initial support for VFS-related metadata in User Extended Attributes.
František Dvořák [Sun, 23 Feb 2014 12:07:24 +0000 (13:07 +0100)]
Catch EACCES too in access().
František Dvořák [Wed, 4 Dec 2013 08:25:29 +0000 (09:25 +0100)]
Preparations for pools, public write support from the pool.
František Dvořák [Sat, 22 Feb 2014 22:11:56 +0000 (23:11 +0100)]
Always log exceptions to syslog, in debug level.
František Dvořák [Thu, 28 Nov 2013 15:30:14 +0000 (16:30 +0100)]
Always create at least one group - "nobody" with gid 65535 or higher.
František Dvořák [Wed, 23 Oct 2013 18:07:07 +0000 (20:07 +0200)]
Use exact types for UID/GID as required in dmlite.
František Dvořák [Sat, 19 Oct 2013 19:55:18 +0000 (21:55 +0200)]
Always preserve GID and UID, always reconstruct field list.
František Dvořák [Sat, 19 Oct 2013 19:17:30 +0000 (21:17 +0200)]
Implement updateUser()/updateGroup().
František Dvořák [Sat, 19 Oct 2013 19:17:29 +0000 (21:17 +0200)]
Check for forbidden characters in users and group identities. It's limited by the file format used for storing the information.
František Dvořák [Sat, 19 Oct 2013 19:17:29 +0000 (21:17 +0200)]
New version of identity management. Using general csv file, so any number of fields could be used.
František Dvořák [Sat, 19 Oct 2013 19:17:26 +0000 (21:17 +0200)]
Let authorization plugin working but only silently suffer (with LOG_NOTICE), when data files can't be created. Try to save them again on destroy.
František Dvořák [Sat, 19 Oct 2013 19:15:58 +0000 (21:15 +0200)]
Protect VFS plugin internal files.
František Dvořák [Fri, 21 Feb 2014 13:19:00 +0000 (14:19 +0100)]
Initial version of identity management.
František Dvořák [Fri, 21 Feb 2014 13:15:12 +0000 (14:15 +0100)]
Rename VfsAuthn to VfsAuthnSimple.
František Dvořák [Thu, 6 Feb 2014 12:25:25 +0000 (13:25 +0100)]
Document new config file options in comments.
František Dvořák [Thu, 6 Feb 2014 12:07:53 +0000 (13:07 +0100)]
Add build dependency on libattr-devel to rpm.
František Dvořák [Tue, 10 Dec 2013 18:24:38 +0000 (19:24 +0100)]
Fix warnings with debugging switched off.
František Dvořák [Mon, 25 Nov 2013 12:17:57 +0000 (13:17 +0100)]
Fix wrong memory access.
František Dvořák [Wed, 23 Oct 2013 17:14:46 +0000 (19:14 +0200)]
Better to inicializa prefix fully in the constructor body.
František Dvořák [Sat, 19 Oct 2013 19:17:29 +0000 (21:17 +0200)]
Care specially for the parent of the root (owned by root and 0755 permissions).
František Dvořák [Sat, 19 Oct 2013 19:15:59 +0000 (21:15 +0200)]
More elaborate error messages in removeDir().
František Dvořák [Sat, 19 Oct 2013 19:15:59 +0000 (21:15 +0200)]
Fix removeDir() - no metadata check just for checking cwd.
František Dvořák [Sat, 19 Oct 2013 19:15:59 +0000 (21:15 +0200)]
Cleanup around parent paths evaluation. "." is replaced by full current working directory, other relative paths are untouched.
František Dvořák [Thu, 17 Oct 2013 19:44:45 +0000 (21:44 +0200)]
No reading xattrs in extendedStat when not needed, follow symlinks by default.
František Dvořák [Thu, 17 Oct 2013 19:25:07 +0000 (21:25 +0200)]
Basic authn check (based only on the user name and catalog path).
František Dvořák [Thu, 17 Oct 2013 17:48:01 +0000 (19:48 +0200)]
Reshuffle extendedStat().
František Dvořák [Thu, 17 Oct 2013 17:48:01 +0000 (19:48 +0200)]
Replace all syslog() calls by internal macro.
František Dvořák [Thu, 17 Oct 2013 17:48:01 +0000 (19:48 +0200)]
Always enable syslog, new debug() and log() definitions.
František Dvořák [Thu, 17 Oct 2013 17:48:01 +0000 (19:48 +0200)]
Fix readLink() and namepsace local disk prefix, using class buffer instead of local buffer in the stack.
František Dvořák [Thu, 17 Oct 2013 17:48:00 +0000 (19:48 +0200)]
Helper function for setting user extended attribute.
František Dvořák [Thu, 17 Oct 2013 17:48:00 +0000 (19:48 +0200)]
No problem with bool type in Extensible class anymore.
František Dvořák [Thu, 17 Oct 2013 17:48:00 +0000 (19:48 +0200)]
Polishing comments (getParentPath()).
František Dvořák [Thu, 17 Oct 2013 17:48:00 +0000 (19:48 +0200)]
More friendly error message for makeDir("").
František Dvořák [Thu, 17 Oct 2013 17:47:55 +0000 (19:47 +0200)]
AllowWrite and DenyWrite config options.
František Dvořák [Tue, 15 Oct 2013 11:35:28 +0000 (13:35 +0200)]
Fix uploading into subdirectories (mkdir()s moved from PoolHandler to IO Driver), added debugging.
František Dvořák [Tue, 15 Oct 2013 11:35:28 +0000 (13:35 +0200)]
Insidious error in getParent(), but the bug probably didn't surface.
František Dvořák [Tue, 15 Oct 2013 11:35:28 +0000 (13:35 +0200)]
Disk prefix - support in VFS IO Driver.
František Dvořák [Tue, 15 Oct 2013 11:35:28 +0000 (13:35 +0200)]
More elaborate error messages from VFS IO driver and debugging.
František Dvořák [Tue, 15 Oct 2013 11:35:28 +0000 (13:35 +0200)]
PoolDriver needs the namespace prefix.
František Dvořák [Tue, 15 Oct 2013 11:35:28 +0000 (13:35 +0200)]
Disk prefix in PoolDriver.
František Dvořák [Tue, 15 Oct 2013 11:35:20 +0000 (13:35 +0200)]
Namespace prefix - NSPrefix.
František Dvořák [Tue, 15 Oct 2013 11:17:01 +0000 (13:17 +0200)]
Support for user extended attributes.
František Dvořák [Tue, 15 Oct 2013 11:17:00 +0000 (13:17 +0200)]
Check permissions when changing dir.
František Dvořák [Tue, 15 Oct 2013 11:17:00 +0000 (13:17 +0200)]
opendir()/readdir() improvements:
- detect errors even during readdir()
- more debugging to syslog
- separate raw opendir() (without additional VFS stuff)
- keep black magic code around st_nlink disabled
František Dvořák [Tue, 15 Oct 2013 11:17:00 +0000 (13:17 +0200)]
Debugging through syslog, only with -DDEBUG.
František Dvořák [Tue, 15 Oct 2013 11:17:00 +0000 (13:17 +0200)]
Write mode support in PoolHandler and PoolManager. PoolManager calls catalog functions.
František Dvořák [Tue, 15 Oct 2013 11:17:00 +0000 (13:17 +0200)]
Proper support for IODriver::kInsecure.
František Dvořák [Tue, 15 Oct 2013 11:16:54 +0000 (13:16 +0200)]
More verbose permission error messages.
František Dvořák [Thu, 10 Oct 2013 12:44:14 +0000 (14:44 +0200)]
checkPermission() implementation - possible to limit certificates by regular expressions (Allow and Deny in plugin configuration).
František Dvořák [Thu, 10 Oct 2013 12:44:14 +0000 (14:44 +0200)]
Comment out st_nlink workaround for now (fixes indirect recursion).
František Dvořák [Thu, 10 Oct 2013 12:44:14 +0000 (14:44 +0200)]
Add permissions check to catalog calls (but always returning OK for now, only print ugly debug message).
František Dvořák [Thu, 10 Oct 2013 12:44:14 +0000 (14:44 +0200)]
Fix recurion in utime().
František Dvořák [Thu, 10 Oct 2013 12:44:13 +0000 (14:44 +0200)]
Fix readLink(): readlink() doesn't add ending null character.
František Dvořák [Thu, 10 Oct 2013 12:44:13 +0000 (14:44 +0200)]
test-rename test hack.
František Dvořák [Thu, 10 Oct 2013 12:44:13 +0000 (14:44 +0200)]
Fix readDir() (no exception on the end), hacky fix of st_nlink on directories.
František Dvořák [Thu, 10 Oct 2013 12:44:13 +0000 (14:44 +0200)]
Fix the recursion in umask() call.
František Dvořák [Thu, 10 Oct 2013 12:44:13 +0000 (14:44 +0200)]
Check if we don't remove current directory in removeDir() (test-chdir).
František Dvořák [Thu, 10 Oct 2013 12:43:58 +0000 (14:43 +0200)]
Simple authentization: no credentials used and only current effective local user supported.
František Dvořák [Wed, 9 Oct 2013 12:05:57 +0000 (14:05 +0200)]
Better behaviour for test-access:
- updateReplica() do nothing and don't fail
- exception from access(..., R_OK) with code DMLITE_NO_SUCH_REPLICA
- more verbose exception messages
František Dvořák [Wed, 9 Oct 2013 12:05:57 +0000 (14:05 +0200)]
Catalog symlink(), unlink(), mkdir(), rename((), removeDir() implementations.
František Dvořák [Wed, 9 Oct 2013 12:05:57 +0000 (14:05 +0200)]
Catalog setSize() and utime() implementation.
František Dvořák [Wed, 9 Oct 2013 12:05:57 +0000 (14:05 +0200)]
Catalog create(), setMode() implementation, setOwner() not supported.
František Dvořák [Wed, 9 Oct 2013 12:05:57 +0000 (14:05 +0200)]
Catalog access() implementation.
František Dvořák [Wed, 9 Oct 2013 12:05:46 +0000 (14:05 +0200)]
Add format strings versions of throw helper functions.
František Dvořák [Thu, 12 Sep 2013 15:38:47 +0000 (17:38 +0200)]
Add support for classname (using getImplId()).
František Dvořák [Wed, 11 Sep 2013 13:59:42 +0000 (15:59 +0200)]
Change wrap calls in VFS plugin.
Alejandro Álvarez Ayllón [Tue, 18 Dec 2012 10:07:57 +0000 (10:07 +0000)]
LCGDM-902: VFS adapted to new API
git-svn-id: https://svn.cern.ch/reps/lcgdm/dmlite-plugins-vfs/trunk@8050
4525493e-7705-40b1-a816-
d608a930855b