323 Commits

Author SHA1 Message Date
Basavanagowda Kanur
384ee312ba glusterfsd - build proper mount/fuse structure.
while appending mount/fuse to a translator tree, make sure
that <xlator_t-of-fuse>->next points to the first xlator in
the list of xlators and not the subvolume of mount/fuse.

NOTE: tree traversal should always happen through <xlator_t>->children

Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
2009-06-22 12:29:13 -07:00
Vikas Gorur
93c8ce0e3f Add command line option to specify central log server.
Added two command line options:

--log-server SERVER
--log-server-port PORT

Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
2009-06-18 15:54:13 -07:00
Vikas Gorur
180cfc0c4b Initialize central logging in glusterfs main().
Modified from patch 522 (made a function extern) -- Avati

Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
2009-06-11 07:53:45 -07:00
Vikas Gorur
5b90d71324 Print PID after daemonizing glusterfs.
PID used to be printed before glusterfs became a daemon,
which is incorrect since becoming a daemon involves
forking and thus the PID changes.

Fixes bug #8.

Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
2009-06-09 09:13:23 -07:00
Anand V. Avati
abb075def5 THIS: use xlator_init() for initializing xlators
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
2009-05-22 01:26:20 -07:00
Anand V. Avati
207fb347ed globals: add globals.h/c THIS: macro to access thread specific current xlator CTX: macro to access glusterfs global context (glusterfs_ctx_t)
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
2009-05-22 00:58:42 -07:00
Vikas Gorur
11cae446e0 Edited log message for --volfile-check
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
2009-05-16 15:31:52 +05:30
Amar Tumballi
4f7552c23b default log file different per mount (or if server, per volumefile)
This feature is required becuase when more than one glusterfs process
is started with default log file, all logs will be going to same file,
which after a while gets more confusing.

Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
2009-05-16 15:28:09 +05:30
Vikas Gorur
b52a5a408b Introduce new log level GF_LOG_TRACE.
TRACE is the most verbose log level, meant to have a
full trace of operation.

Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
2009-04-24 20:57:41 +05:30
Vikas Gorur
174872b364 Remove log level TRACE and the macro GF_TRACE.
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
2009-04-24 20:57:41 +05:30
Anand V. Avati
42617775a2 keep ctx->page_size fixed at 128KB but only add the margin for iobufs which are created 2009-04-18 13:27:21 +05:30
Anand V. Avati
98a872df82 add 4KB margin in iobuf to accommodate fuse header 2009-04-17 17:52:07 +05:30
Anand V. Avati
451620e0ec introduce page_size in glusterfs_ctx_t to be used by all translators set it to 128KB in main()
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
2009-04-13 20:10:49 +05:30
Anand V. Avati
4f0d487c96 change arena size to 8MB
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
2009-04-13 14:55:15 +05:30
Anand V. Avati
45c4fb76df updated glusterfsd to create iobuf pool at initialization
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
2009-04-12 11:33:48 +05:30
Raghavendra G
db365c30d0 Enable glusterfs client to exit after a configured number of failed connects \ while fetching volume specification file from server
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
2009-04-01 13:20:06 +05:30
Raghavendra G
96b687b9b8 Add new type of option type INTERNET_ADDRESS for validation
- used to validate options like remote-host, bind-address.
  - Also validate options of translators created during fetch of volume
    specification file from remote server.

Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
2009-04-01 00:13:53 +05:30
Amar Tumballi
8462dd88ad volumefile modification awareness to make sure there are no inconsistencies.
Complete (including feature to properly umount) in my sense.

Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
2009-02-27 16:13:55 +05:30
Basavanagowda Kanur
3d8bc3cbaf updated copyright header to extend copyright upto 2009
updated copyright header to include 2009.

Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
2009-02-26 22:18:46 +05:30
Raghavendra G
ab7fe2987f backtick support enhancement
- text within backtick can span multiple lines
  - check exit status of command after execution

Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
2009-02-25 16:43:39 +05:30
Amar Tumballi
869df6de64 change to make round robin dns work for getspec()
Noticed that if I have just 'socket' and not the address-family, the
round robin dns for '-s' option doesn't work. Changing it to 'tcp'
works.

Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
2009-02-22 03:37:49 +05:30
Harshavardhana
a7b514ab8e command line and mount/fuse now use float attr/entry timeouts
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
2009-02-21 21:14:47 +05:30
Vikas Gorur
77adf4cd64 Added all files 2009-02-18 17:36:07 +05:30