[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gluster-devel] New QUOTA translator (max size limit on posix xlator)
From: |
Angel |
Subject: |
[Gluster-devel] New QUOTA translator (max size limit on posix xlator) |
Date: |
Thu, 17 Jan 2008 00:36:08 +0100 |
User-agent: |
KMail/1.9.6 (enterprise 20070904.708012) |
hi all
After playing a bit with the code to see my long time ago forgotten coding
skills...
I have duplicate xlators/debug/trace into xlators/features/quota
Updated makefiles.am and configure.ac
Added getting option max-size from dict and storing in quota_private struct
No more funcionality at this point apart of funcs inherited from trace module...
Using tla636 as codebase
autogen.sh, configure and make were successfull without any errors
cp'ing xlators/features/quota/src/quota.so on
/usr/lib64/glusterfs/1.3.8tla636/xlator/features/quota.so
allows me live testing on my current 1.3.8tla636 installed package.
Still pour funcionality to make a patch but can send it if anyone interested :-)
Live testing transcript:
sushiba:/etc/glusterfs # glusterfs -N -L DEBUG -l /dev/stdout -n quota-volume
-f /etc/glusterfs/client_posix.vol /home/sinosuke/mnt
2008-01-17 00:26:20 D [glusterfs.c:141:get_spec_fp] glusterfs: loading spec
from /etc/glusterfs/client_posix.vol
2008-01-17 00:26:20 D [spec.y:117:new_section] libglusterfs/parser: New node
for 'posix-brick0'
2008-01-17 00:26:20 D [spec.y:133:section_type] libglusterfs/parser:
Type:posix-brick0:storage/posix
2008-01-17 00:26:20 D [xlator.c:104:xlator_set_type] libglusterfs/xlator:
attempt to load type storage/posix
2008-01-17 00:26:20 D [xlator.c:111:xlator_set_type] libglusterfs/xlator:
attempt to load file /usr/lib64/glusterfs/1.3.8tla636/xlator/storage/posix.so
2008-01-17 00:26:20 D [spec.y:153:section_option] libglusterfs/parser:
Option:posix-brick0:directory:/home/export
2008-01-17 00:26:20 D [spec.y:217:section_end] libglusterfs/parser:
end:posix-brick0
2008-01-17 00:26:20 D [spec.y:117:new_section] libglusterfs/parser: New node
for 'quota-volume'
2008-01-17 00:26:20 D [spec.y:133:section_type] libglusterfs/parser:
Type:quota-volume:features/quota
2008-01-17 00:26:20 D [xlator.c:104:xlator_set_type] libglusterfs/xlator:
attempt to load type features/quota
2008-01-17 00:26:20 D [xlator.c:111:xlator_set_type] libglusterfs/xlator:
attempt to load file /usr/lib64/glusterfs/1.3.8tla636/xlator/features/quota.so
2008-01-17 00:26:20 D [xlator.c:158:xlator_set_type] libglusterfs/xlator:
dlsym(notify) on /usr/lib64/glusterfs/1.3.8tla636/xlator/features/quota.so:
undefined symbol: notify -- neglecting
2008-01-17 00:26:20 D [spec.y:202:section_sub] liglusterfs/parser:
child:quota-volume->posix-brick0
2008-01-17 00:26:20 D [spec.y:153:section_option] libglusterfs/parser:
Option:quota-volume:max-size:1GB
2008-01-17 00:26:20 D [spec.y:217:section_end] libglusterfs/parser:
end:quota-volume
2008-01-17 00:26:20 D [inode.c:1103:inode_table_new] fuse: creating new inode
table with lru_limit=1024, sizeof(inode_t)=96
2008-01-17 00:26:20 D [inode.c:559:__create_inode] fuse/inode: create inode(1)
2008-01-17 00:26:20 D [inode.c:351:__active_inode] fuse/inode: activating
inode(1), lru=0/1024
2008-01-17 00:26:20 D [quota.c:2073:init] quota-volume: Max filesystem size
reported = 0x40000000
2008-01-17 00:26:20 C [dict.c:1113:data_to_str] libglusterfs/dict: @data=(nil)
2008-01-17 00:26:20 C [dict.c:1113:data_to_str] libglusterfs/dict: @data=(nil)
2008-01-17 00:26:45 D [quota.c:1091:quota_lookup] quota-volume: callid: 2
(*this=0x805c218, loc=0x8093ef4 {path=/, inode=0x8093d50} )
2008-01-17 00:26:45 D [quota.c:509:quota_lookup_cbk] quota-volume: callid: 2
(*this=0x805c218, op_ret=0, op_errno=17, inode=0x8093d50, *buf=0xb75b5158
{st_dev=2052, st_ino=67273690, st_mode=16893, st_nlink=2, st_uid=1000,
st_gid=100, st_rdev=0, st_size=6, st_blksize=4096, st_blocks=0})
2008-01-17 00:26:45 D [fuse-bridge.c:354:fuse_entry_cbk] glusterfs-fuse: 2: /
=> 1
2008-01-17 00:26:45 W [fuse-bridge.c:368:fuse_entry_cbk] glusterfs-fuse: 2: /
=> 1 Rehashing 0/0
PS: rpm generated from tla 1.3.6 places libs on lib64 on my machine (i386
Pentium M 1700 centrino, Opensuse 10.3) this seems incorrect
That's enough for today, see you
Regards, Angel
--
------------------------------------------------
Clist UAH
------------------------------------------------
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gluster-devel] New QUOTA translator (max size limit on posix xlator),
Angel <=