[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gluster-devel] Hints for implementing max size limit on posix xlator
From: |
Angel |
Subject: |
[Gluster-devel] Hints for implementing max size limit on posix xlator |
Date: |
Wed, 16 Jan 2008 17:01:48 +0100 |
User-agent: |
KMail/1.9.6 (enterprise 20070904.708012) |
Im trying to figure how limit filesize available as per option request
Something like
volume posix-brick0
type storage/posix
option directory /export/some_dir
option filesystem_size 10GB
end-volume
Should I intercept statfs return values to ensure
buf.f_bfree <= filesystem_size
buf.f_bavail <=filesystem_size
this is right??
whats the best version for patches? i assume is tla636
int32_t
posix_statfs (call_frame_t *frame,
xlator_t *this,
loc_t *loc)
{
int32_t op_ret;
int32_t op_errno;
char *real_path;
struct statvfs buf = {0, };
MAKE_REAL_PATH (real_path, this, loc->path);
op_ret = statvfs (real_path, &buf);
op_errno = errno;
frame->root->rsp_refs = NULL;
STACK_UNWIND (frame, op_ret, op_errno, &buf);
return 0;
}
Regards
--
------------------------------------------------
Clist UAH
------------------------------------------------
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gluster-devel] Hints for implementing max size limit on posix xlator,
Angel <=