216 Commits

Author SHA1 Message Date
Vijay Bellur
2854c55934 Copyright changes
Signed-off-by: Vijay Bellur <vijay@gluster.com>
Signed-off-by: Vijay Bellur <vijay@dev.gluster.com>

BUG: 971 (dynamic volume management)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=971
2010-10-11 07:31:12 -07:00
Pranith K
85c013f3ac Change GNU GPL to GNU AGPL
Signed-off-by: Pranith Kumar K <pranithk@gluster.com>
Signed-off-by: Vijay Bellur <vijay@dev.gluster.com>

BUG: 1388 ()
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1388
2010-10-04 07:50:05 -07:00
shishir gowda
f9431f330e mem pool for fd_t
Ran posix compliance test and sanity test
Signed-off-by: shishir gowda <shishirng@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 329 (Replacing memory allocation functions with mem-type functions)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=329
2010-08-06 03:37:36 -07:00
shishir gowda
767b6b7d3f Implement mem pool for inode dentry
Ran posix compliance test and sanity test
Signed-off-by: shishir gowda <shishirng@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 329 (Replacing memory allocation functions with mem-type functions)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=329
2010-08-06 03:37:32 -07:00
Amar Tumballi
7840d9de27 frame's 'op', 'type' restructured
Signed-off-by: Amar Tumballi <amar@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 875 (Implement a new protocol to provide proper backward/forward compatibility)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=875
2010-05-03 23:40:10 -07:00
Anand V. Avati
283ec9608e iatt: changes across the codebase
- libglusterfs
  -- call-stub
  -- inode
  -- protocol
- libglusterfsclient
- cluster/replicate
- cluster/{dht,nufa,switch}
- cluster/unify
- cluster/HA
- cluster/map
- cluster/stripe
- debug/error-gen
- debug/trace
- debug/io-stats
- encryption/rot-13
- features/filter
- features/locks
- features/path-converter
- features/quota
- features/trash
- mount/fuse
- performance/io-threads
- performance/io-cache
- performance/quick-read
- performance/read-ahead
- performance/stat-prefetch
- performance/symlink-cache
- performance/write-behind
- protocol/client
- protocol/server
- storage-posix

Signed-off-by: Anand V. Avati <avati@blackhole.gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 361 (GlusterFS 3.0 should work on Mac OS/X)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=361
2010-03-16 08:31:32 -07:00
Raghavendra G
da09bf7faf libglusterfsclient/readv: fix data corruption.
- libgf_client_readv should return the total number of bytes read by
     multiple invocations of libgf_client_iobuf_readv, instead of return value
     of last invocation.

Signed-off-by: Raghavendra G <raghavendra@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 531 (accessing a file through apache results in Permission denied errors.)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=531
2010-01-14 23:23:45 -08:00
Vijay Bellur
96ae032a9c Support for Compilation on Solaris
This is based on patch at:

http://node3.rnode.ru/glusterfs-3.0.0-p1.patch

Thanks to Petrunin Egor <shellcode@mail.ru> for this patch.

Signed-off-by: Vijay Bellur <vijay@gluster.com>
Signed-off-by: Vijay Bellur <vijay@dev.gluster.com>

BUG: 481 (Fix compilation failures in Solaris)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=481
2009-12-20 21:38:36 -08:00
Anand Avati
7a3c372c7a libglusterfsclient: fix libgf_client_read to handle short reads
Fixes two issues in the current code
-short reads (reading larger than file size) result in failure of full read
-reads which span multiple iterations return with the op_ret of only
   the last read

Signed-off-by: Anand V. Avati <avati@blackhole.gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 334 (glusterfs_read/readv should break large-reads into 128Kb block sizes)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=334
2009-12-06 02:30:28 -08:00
Raghavendra G
b5da783482 libglusterfsclient/chdir: assign op_ret the return value of libgf_client_chdir.
Signed-off-by: Raghavendra G <raghavendra@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 446 (apache does not start in daemon mode on fedora core 11.)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=446
2009-12-06 02:30:06 -08:00
Shehjar Tikoo
2615d1a955 libglusterfsclient: Separate order of path compaction and VMP search for abs and rel paths
The previous set of changes for relative paths in libglusterfsclient
break the absolute path operation. The fix involves differentiating
between absolute and relative paths in terms of the order
in which the 2 operations are performed:

- path compaction
- VMP search

For absolute paths, since we assume that VMP is already perfixed to the
path, we need the following order of operation:

1. VMP search
2. path compaction on the path components beyond the VMP.

For relative paths, the operations are reversed because there
we do not have a VMP pre-fixed in order to perform a VMP search.
This means that a path compaction combined with prepending of the
CWD is needed to get an absolute path before the VMP is searched for.

Signed-off-by: Shehjar Tikoo <shehjart@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 369 (Samba does not work with booster.)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=369
2009-12-03 02:21:24 -08:00
Raghavendra G
6afe4faeaa libglusterfsclient/read: break reads bigger than the iobuffer size into smaller ones.
Signed-off-by: Raghavendra G <raghavendra@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 334 (glusterfs_read/readv should break large-reads into 128Kb block sizes)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=334
2009-12-01 17:52:43 -08:00
Raghavendra G
435b234325 libglusterfsclient/readv: break reads bigger than the iobuffer size into smaller ones.
Signed-off-by: Raghavendra G <raghavendra@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 334 (glusterfs_read/readv should break large-reads into 128Kb block sizes)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=334
2009-12-01 17:52:40 -08:00
Raghavendra G
71d6a1c8aa libglusterfsclient/umount: fix double free.
- calling glusterfs_fini results in double free.

Signed-off-by: Raghavendra G <raghavendra@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 369 (Samba does not work with booster.)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=369
2009-11-18 21:15:16 -08:00
Raghavendra G
9d9cbb8936 libglusterfsclient: don't change the st_dev in stat-structure before doing inode_link.
- st_dev is used for storing generation number of the inode in
    inode_link and libgf_iattr_transform changes the st_dev to fake_fsid.
    If inode_link is done after libgf_iattr_transform, the generation number
    stored will be wrong and will result in ESTALE errors from server.

Signed-off-by: Raghavendra G <raghavendra@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 369 (Samba does not work with booster.)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=369
2009-11-18 21:15:11 -08:00
Raghavendra G
ed75d65888 libglusterfsclient/open: don't send create call if the file is already present, instead send open.
Signed-off-by: Raghavendra G <raghavendra@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 369 (Samba does not work with booster.)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=369
2009-11-18 21:15:07 -08:00
Raghavendra G
9e481a7aee libglusterfsclient: update iattr cache only if operation was successful.
Signed-off-by: Raghavendra G <raghavendra@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 369 (Samba does not work with booster.)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=369
2009-11-18 21:14:58 -08:00
Raghavendra G
2bf35da812 libglusterfsclient: fix memory leak.
- glusterfs_glh_getxattr was implemented using libgf_client_lookup. Hence the
    inode corresponding to the path on which getxattr was done was refed twice
    - one during path_lookup and the other in libgf_client_lookup - but unrefed
    only once.
  - with inode generation number changes the inode returned by inode_link may
    not be the same as the input argument. Hence the inode returned by
    inode_link should be used, not the one returned in libgf_client_lookup_cbk.

Signed-off-by: Raghavendra G <raghavendra@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 369 (Samba does not work with booster.)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=369
2009-11-18 21:14:54 -08:00
Raghavendra G
95d31d089e libglusterfsclient: change the prototype of glusterfs_lsetxattr.
- it no longer needs handle to be passed as arguement. handle is searched
    in the vmp table based on the path.

Signed-off-by: Raghavendra G <raghavendra@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 369 (Samba does not work with booster.)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=369
2009-11-18 21:14:45 -08:00
Raghavendra G
8d22d68815 libglusterfsclient: fix __do_path_resolve to return zero if the path happens to be resolved in path_to_parenti.
Signed-off-by: Raghavendra G <raghavendra@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 369 (Samba does not work with booster.)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=369
2009-11-18 21:14:41 -08:00
Raghavendra G
134d85015b libglusterfsclient: getxattr should return the length of the xattr when size is zero
Signed-off-by: Raghavendra G <raghavendra@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 369 (Samba does not work with booster.)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=369
2009-11-18 21:14:37 -08:00
Raghavendra G
1f1d1569f4 libglusterfsclient/ftruncate: add braces to ensure proper evaluation of if conditional.
Signed-off-by: Raghavendra G <raghavendra@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 369 (Samba does not work with booster.)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=369
2009-11-18 21:14:32 -08:00
Raghavendra G
9c5547193f libglusterfsclient: implement glusterfs_truncate.
Signed-off-by: Raghavendra G <raghavendra@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 369 (Samba does not work with booster.)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=369
2009-11-18 21:14:20 -08:00
Raghavendra G
a33380068a libglusterfsclient: fix libgf_vmp_virtual_path. - This procedure used to return garbage as virtual path if the path happens to be exact mount point but without the trailing slash and the vmp had a trailing slash.
Signed-off-by: Raghavendra G <raghavendra@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 369 (Samba does not work with booster.)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=369
2009-11-18 21:14:12 -08:00
Raghavendra G
3940cf2fc2 libglusterfsclient: implement glusterfs_getcwd.
Signed-off-by: Raghavendra G <raghavendra@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 369 (Samba does not work with booster.)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=369
2009-11-18 21:13:55 -08:00
Raghavendra G
7894bef217 libglusterfsclient: implement glusterfs_fchdir.
Signed-off-by: Raghavendra G <raghavendra@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 369 (Samba does not work with booster.)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=369
2009-11-18 21:13:51 -08:00
Raghavendra G
d779e00360 libglusterfsclient: implement glusterfs_chdir.
Signed-off-by: Raghavendra G <raghavendra@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 369 (Samba does not work with booster.)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=369
2009-11-18 21:13:46 -08:00
Raghavendra G
43ffa430d6 libglusterfsclient: Support relative paths.
- This patch is a port of the patch with same title on 2.0 branch.
    The original patch was sent by Shehjar <shehjart@gluster.com>.

Signed-off-by: Raghavendra G <raghavendra@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 369 (Samba does not work with booster.)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=369
2009-11-18 21:13:42 -08:00
Raghavendra G
8cf1cd070e Revert "booster, libglusterfsclient: Support samba specific relative paths"
This reverts commit e6fc0cbe716a18f02891d3911481fdcb121d8840.

Signed-off-by: Raghavendra G <raghavendra@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 369 (Samba does not work with booster.)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=369
2009-11-18 21:13:38 -08:00
Shehjar Tikoo
612aed4b6a libglusterfsclient: Dont alloc root inode context
....because the lookup on root inode done a few lines before this
call already allocates an inode context. This one just over-writes
that context, results in invalidation of the cached iattrs.

Signed-off-by: Shehjar Tikoo <shehjart@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 354 (Stale file handle on unfs3 booster)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=354
2009-11-03 22:21:47 -08:00
Shehjar Tikoo
f04b9fcfeb libglusterfsclient: Prevent root inode number clobbering
Signed-off-by: Shehjar Tikoo <shehjart@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 354 (Stale file handle on unfs3 booster)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=354
2009-11-03 22:21:43 -08:00
Shehjar Tikoo
e6fc0cbe71 booster, libglusterfsclient: Support samba specific relative paths
Signed-off-by: Shehjar Tikoo <shehjart@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 158 (libglusterfsclient: Applications are restricted to using absolute paths)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=158
2009-10-30 03:37:39 -07:00
Raghavendra G
ef2d6b3449 libglusterfsclient: don't do inode_link on root inode.
Signed-off-by: Raghavendra G <raghavendra@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 348 (touch on booster segfaults)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=348
2009-10-30 01:49:57 -07:00
Raghavendra G
106a651826 booster: seperate out the implementations of readdir and readdir64.
- readdir and readdir64 should not call same procedure booster_readdir
    in their implementation, since the layout of dirent structures returned by
    libc implementations of readdir and readdir64 is different (readdir returns
    struct dirent *, where as readdir64 returns struct dirent64 *).

Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 333 (ls on paths not on virtual mounts report wrong directory contents)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=333
2009-10-26 07:09:12 -07:00
Vijay Bellur
0b1197defa Changed occurrences of Z Research to Gluster.
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
2009-10-07 03:54:49 -07:00
Shehjar Tikoo
d03e51668d libglusterfsclient: Port directory reading to readdirp fop
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 292 (Separate readdirp functionality from readdir fop)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=292
2009-10-06 06:35:37 -07:00
Shehjar Tikoo
b441730b5b libglusterfsclient: Remove redundant fchown and fchmod
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 146 (Add setattr FOP)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=146
2009-10-01 07:24:33 -07:00
Shehjar Tikoo
23d896068f libglusterfsclient: Use fsetattr for fchown
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 146 (Add setattr FOP)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=146
2009-10-01 07:24:30 -07:00
Shehjar Tikoo
1640178a10 libglusterfsclient: Use fsetattr for fchmod
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 146 (Add setattr FOP)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=146
2009-10-01 07:24:26 -07:00
Shehjar Tikoo
507a4aa75d libglusterfsclient: Support fsetattr fop
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 146 (Add setattr FOP)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=146
2009-10-01 07:24:23 -07:00
Shehjar Tikoo
3dc513b108 libglusterfsclient: Remove redundant chown code
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 146 (Add setattr FOP)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=146
2009-10-01 07:24:19 -07:00
Shehjar Tikoo
0778d42be1 libglusterfsclient: Remove redundant chmod code
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 146 (Add setattr FOP)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=146
2009-10-01 07:24:15 -07:00
Shehjar Tikoo
52193c0a79 libglusterfsclient: Remove redundant utimens code
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 146 (Add setattr FOP)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=146
2009-10-01 07:24:12 -07:00
Shehjar Tikoo
46c23afc98 libglusterfsclient: Use setattr for utime
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 146 (Add setattr FOP)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=146
2009-10-01 07:24:08 -07:00
Shehjar Tikoo
a2013f6bc7 libglusterfsclient: Use setattr for utimes
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 146 (Add setattr FOP)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=146
2009-10-01 07:24:04 -07:00
Shehjar Tikoo
bdeb23cac1 libglusterfsclient: Use setattr for chown
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 146 (Add setattr FOP)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=146
2009-10-01 07:24:01 -07:00
Shehjar Tikoo
b017bcb852 libglusterfsclient: Use setattr for chmod
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 146 (Add setattr FOP)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=146
2009-10-01 07:23:57 -07:00
Shehjar Tikoo
709d46bcdb libglusterfsclient: Support setattr fop
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 146 (Add setattr FOP)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=146
2009-10-01 07:23:54 -07:00
Shehjar Tikoo
e11d66c8d6 Global: NFS-friendly prototype changes
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 145 (NFSv3 related additions to 2.1 task list)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=145
2009-10-01 07:22:46 -07:00
Raghavendra G
03b5a87b2f libglusterfsclient: don't destroy the iobuf pool during fini.
- some of the iobufs in pool will be cached by io-cache and hence refcount
    will not be zero. Hence the assertion of ref being zero in
    __iobuf_arena_destroy fails. Commenting out iobuf_pool_destroy during fini, till
    we introduce proper cleanup in all translators, thereby allowing io-cache
    to release the buffers it has held.

Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 283 (booster aborts complaining the refcount of iobuf is not zero during glusterfs_umount_all.)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=283
2009-09-28 18:57:13 -07:00