Changeset 1198

Show
Ignore:
Timestamp:
07/10/08 14:24:56 (17 months ago)
Author:
nickandrew
Message:

Fix various typos, spelling and grammar errors

Most of the fixed errors are in comments, but a few are in
messages from the system or build files.

Some examples:

- MogileFS.pm provides a the perl client for the MogileFS application-level
+ MogileFS.pm provides a perl client for the MogileFS application-level

- ABSTRACT => 'Plugin for mogilefs server represending a UNIX like filesystem on top of mogilefs.',
+ ABSTRACT => 'Plugin for mogilefs server representing a UNIX like filesystem on top of mogilefs.',

- des => "Comma-seperated list of filenames to load when a user visits a directory URL, listed in order of preference.",
+ des => "Comma-separated list of filenames to load when a user visits a directory URL, listed in order of preference.",

- "--weight=i" => "Postive numeric weight for device",
+ "--weight=i" => "Positive numeric weight for device",

And so on...

Signed-off-by: Nick Andrew <nick@…>

Location:
trunk
Files:
47 modified

Legend:

Unmodified
Added
Removed
  • trunk/api/perl/MogileFS-Client-FilePaths/lib/MogileFS/Client/FilePaths.pm

    r1139 r1198  
    4040provided in the FilePaths plugin. 
    4141 
    42 All methods are inhereted and usable from the MogileFS::Client library, with only the exceptions listed below. 
     42All methods are inherited and usable from the MogileFS::Client library, with only the exceptions listed below. 
    4343 
    4444=cut 
  • trunk/api/perl/MogileFS-Client/debian/control

    r166 r1198  
    1010Depends: ${perl:Depends}, libio-stringy-perl, libwww-perl 
    1111Description: perl client for MogileFS 
    12  MogileFS.pm provides a the perl client for the MogileFS application-level  
     12 MogileFS.pm provides a perl client for the MogileFS application-level 
    1313 distributed filesystem. 
  • trunk/api/perl/MogileFS-Client/lib/MogileFS/Backend.pm

    r749 r1198  
    1313use fields ('hosts',        # arrayref of "$host:$port" of mogilefsd servers 
    1414            'host_dead',    # "$host:$port" -> $time  (of last connect failure) 
    15             'lasterr',      # string: \w+ identifer of last error 
     15            'lasterr',      # string: \w+ identifier of last error 
    1616            'lasterrstr',   # string: english of last error 
    1717            'sock_cache',   # cached socket to mogilefsd tracker 
  • trunk/api/perl/MogileFS-Client/lib/MogileFS/Client.pm

    r1149 r1198  
    156156=head2 errstr 
    157157 
    158 Returns string representation of the last error that occured.  It 
     158Returns string representation of the last error that occurred.  It 
    159159includes the error code (same as method 'errcode') and a space before 
    160160the optional English error message. 
  • trunk/api/perl/MogileFS-Client/lib/MogileFS/NewHTTPFile.pm

    r816 r1198  
    180180 
    181181# abstracted write function that uses non-blocking I/O and checking for 
    182 # writability to ensure that we don't get stuck doing a write if the 
     182# writeability to ensure that we don't get stuck doing a write if the 
    183183# node we're talking to goes down.  also handles logic to fall back to 
    184184# a backup node if we're on our first write and the first node is down. 
  • trunk/fuse/mount-filepaths

    r1135 r1198  
    205205    --file-perms PERMS 
    206206        The default file permissions for all files in the mounted MogileFS 
    207         filesystem.  Since MogilefS does not store this information currently 
     207        filesystem.  Since MogileFS does not store this information currently 
    208208        it must be faked. 
    209209 
  • trunk/server-plugins/MogileFS-Network/lib/MogileFS/Network.pm

    r1179 r1198  
    7676} 
    7777 
    78 # This is a seperate subroutine so I can redefine it at test time. 
     78# This is a separate subroutine so I can redefine it at test time. 
    7979sub get_setting { 
    8080    my $key = shift; 
  • trunk/server-plugins/MogileFS-Network/lib/MogileFS/ReplicationPolicy/MultipleNetworks.pm

    r1162 r1198  
    124124 
    125125    my @ideal         = grep { ! $skip_host{$_->hostid} } @all_dests; 
    126     # wrong network is less desparate than wrong host 
     126    # wrong network is less desperate than wrong host 
    127127    my @network_desp  = grep {   $skip_host{$_->hostid} && 
    128128                                 $skip_host{$_->hostid} eq AVOIDNETWORK } @all_dests; 
     
    161161{ 
    162162    my %cache; # '192.168.0.0/24' => Net::Netmask->new2('192.168.0.0/24'); 
    163     my $age;   # increments everytime we look 
     163    my $age;   # increments every time we look 
    164164 
    165165    # turn a server ip into a network 
  • trunk/server-plugins/MogileFS-Network/t/hosts-per-zone-replpol.t

    r1179 r1198  
    2121   "ideal(3,4)", "need host2"); 
    2222 
    23 # still needs to be on host2, even though 2 coies on host1 
     23# still needs to be on host2, even though 2 copies on host1 
    2424is(rr("min=2  h1[d1=X d2=X] h2[d3=_ d4=_]"), 
    2525   "ideal(3,4)", "need host2, even though 2 on host1"); 
     
    4242 
    4343# minimum hosts is 3, only 2 available hosts. This test differs from 
    44 # the one in multiplehosts because elavating these results to be 'ideal' 
     44# the one in multiplehosts because elevating these results to be 'ideal' 
    4545# adds complexity that is unnecessary in my eyes. 
    4646is(rr("min=3 h1[d1=_ d2=X] h2[d3=X d4=_]"), 
  • trunk/server-plugins/MogileFS-Plugin-FilePaths/Makefile.PL

    r810 r1198  
    77    VERSION_FROM            => 'lib/MogileFS/Plugin/FilePaths.pm', 
    88    AUTHOR                  => 'Jonathan Steinert <hachi@cpan.org>', 
    9     ABSTRACT                => 'Plugin for mogilefs server represending a UNIX like filesystem on top of mogilefs.', 
     9    ABSTRACT                => 'Plugin for mogilefs server representing a UNIX like filesystem on top of mogilefs.', 
    1010    PREREQ_PM               => { 
    1111        'MogileFS::Plugin::MetaData'    => '0.01', 
  • trunk/server-plugins/MogileFS-Plugin-FilePaths/MogileFS-Plugin-FilePaths.spec

    r1103 r1198  
    11name:      perl-MogileFS-Plugin-FilePaths 
    2 summary:   perl-MogileFS-Plugin-FilePaths - MogileFS Tracker plugin to reprepsent a traditional unix filesystem in mogilefs. 
     2summary:   perl-MogileFS-Plugin-FilePaths - MogileFS Tracker plugin to represent a traditional unix filesystem in mogilefs. 
    33version:   0.02 
    44release:   1 
     
    1313 
    1414%description 
    15 MogileFS Tracker plugin to reprepsent a traditional unix filesystem in mogilefs. 
     15MogileFS Tracker plugin to represent a traditional unix filesystem in mogilefs. 
    1616 
    1717%prep 
  • trunk/server-plugins/MogileFS-Plugin-FilePaths/lib/MogileFS/Plugin/FilePaths.pm

    r1103 r1198  
    2121# MogileFS to consider the plugin to have loaded successfully.  if you return a 
    2222# non-true value, you MUST NOT install any handlers or other changes to the system. 
    23 # if you install something here, you MUST uninstall it in the unload sub. 
     23# if you install something here, you MUST un-install it in the unload sub. 
    2424 
    2525sub _parse_path { 
     
    279279 
    280280# this sub is called at the end or when the module is being unloaded, this needs to 
    281 # unregister any registered methods, etc.  you MUST uninstall everything that the 
     281# unregister any registered methods, etc.  you MUST un-install everything that the 
    282282# plugin has previously installed. 
    283283sub unload { 
  • trunk/server/CHANGES

    r1183 r1198  
    1         * Postgres locking routines did not include the hostname for the lock 
     1        * Many spelling errors corrected. 
     2 
     3        * PostGres locking routines did not include the hostname for the lock 
    24          release. 
    35 
     
    1214        * Fix MultipleHosts replication policy to no longer return desperate 
    1315          devices after no longer being desperate, instead returning a state 
    14           which will queue for retries in the future till it can be truely 
     16          which will queue for retries in the future till it can be truly 
    1517          happy. This prevents files from being replicated to all writable 
    1618          devs when there are two few writable hosts to satisfy the policy. 
     
    7880        * Add a safety check to ensure that Postgresql-8.2 or newer is used. 
    7981 
    80         * Update mogdbsetup usage, and ensure it choses the correct admin 
     82        * Update mogdbsetup usage, and ensure it chooses the correct admin 
    8183          username automatically. 
    8284 
    8385        * Document the --type option to mogdbsetup. 
    8486 
    85         * Introduce the Postgres Store implementation. The locking system might 
     87        * Introduce the PostGres Store implementation. The locking system might 
    8688          still have issues, beware of stale locks! Initial prototype by Radu 
    8789          Greab <rg@yx.ro>, and developed heavily by Robin H. Johnson 
     
    100102 
    101103        * The unix_timestamp function belongs to the Store, not other classes. 
    102           Need to add testcases for process_deletes and stats. 
     104          Need to add test cases for process_deletes and stats. 
    103105 
    104106        * Using NULL during an INSERT for the AUTO_INCREMENT column does not 
     
    106108          to the INSERT instead. 
    107109 
    108         * Clean up all raw usages of UNIX_TIMETAMP() function, in preparation 
     110        * Clean up all raw usages of UNIX_TIMESTAMP() function, in preparation 
    109111          for database independence. If you need the unix timestamp, include the output 
    110112          of $self->unix_timestamp directly into your query. 
     
    139141          DeviceStates interface. 
    140142 
    141         * use signifigantly less CPU when re-broadcasting around 
     143        * use significantly less CPU when re-broadcasting around 
    142144          iostat device utilization% to child processes.  (future: 
    143145          don't rebroadcast at all and use shared memory) 
     
    280282 
    281283        * test cleanup/robustness improvements.  properly skips testing when 
    282           testin deps not found.  but searches harder for them now, too. 
     284          testing deps not found.  but searches harder for them now, too. 
    283285          tests run under "make disttest". 
    284286 
     
    301303 
    3023042007-03-16: 
    303         * mogstored: make child processes be exec'ed (as as their own scripts, not inhertting 
     305        * mogstored: make child processes be exec'ed (as as their own scripts, not inheriting 
    304306          Perlbal, Linux::AIO/IO::AIO, etc baggage).  so they don't own listening 
    305307          sockets, pipes to child workers, signal handlers, etc.  just a lot 
     
    355357 
    3563582006-03-01 (Brad) 
    357         * mogilefsd: fix dataloss bug when the 'tempfile' table is Innodb and the 
     359        * mogilefsd: fix dataloss bug when the 'tempfile' table is InnoDB and the 
    358360           server is restarted while the tempfile table is empty. 
    359361 
  • trunk/server/MogileFS-Server.spec

    r1182 r1198  
    11name:      MogileFS-Server 
    2 summary:   MoilgeFS-Server - MogileFS Server daemons and utilities. 
     2summary:   MogileFS-Server - MogileFS Server daemons and utilities. 
    33version:   2.17 
    44release:   1 
  • trunk/server/TODO

    r1054 r1198  
    1 -- if run out filedescriptors in mogilefsd, mogilefsd shouldn't crash.  it might 
     1-- if run out file descriptors in mogilefsd, mogilefsd shouldn't crash.  it might 
    22   now.  needs a test. 
    33 
    4 -- change debug level at runtime from mgmt port, propogate to children. 
     4-- change debug level at runtime from mgmt port, propagate to children. 
    55 
    66-- MogileFS::Device ->make_directory on lighttpd isn't exactly right, as WebDAV 
  • trunk/server/debian/changelog

    r236 r1198  
    11mogilefs-server (1.00-2) unstable; urgency=low 
    22 
    3   * fix dataloss bug when the 'tempfile' table is Innodb and the 
     3  * fix data loss bug when the 'tempfile' table is InnoDB and the 
    44    server is restarted while the tempfile table is empty. 
    55 
  • trunk/server/debian/control

    r1186 r1198  
    2020Description: scalable distributed filesystem from Danga Interactive 
    2121 MogileFS is an open-source, application-level distributed filesystem. It 
    22  creates a host-nuetral, filesystem-agnostic method of distributing files 
     22 creates a host-neutral, filesystem-agnostic method of distributing files 
    2323 that has many advantages over NFS and single-machine raid.  This set 
    2424 of utilities is very scalable and can handle Livejournal.com's load, for 
  • trunk/server/doc/fsck-notes.txt

    r384 r1198  
    2929# todo: stat command to get count of rows in needs_replicate  (!repl replacement) 
    3030 
    31 # provide command to drop fsck table to force global reindexing 
     31# provide command to drop fsck table to force global re-indexing 
    3232# interface from fsck job to replicate job.  or do it ourselves sharing code.  (probably sharing code) 
    3333# perhaps command-line version is just running: 
  • trunk/server/doc/memcache-support.txt

    r718 r1198  
    66still maintain it's (usually) stupid. 
    77 
    8 Reall, you should cache get_paths requests in your application, 
     8Really, you should cache get_paths requests in your application, 
    99avoiding an extra round-trip to the trackers that could be avoided on 
    1010a cache hit. 
     
    2828    set_server_setting key=memcache_servers&value=127.0.0.1:11211 
    2929 
    30 (where value is a comman-separated list, if you have multiple) 
     30(where value is a comma-separated list, if you have multiple) 
    3131 
    3232And then all future get_paths requests with noverify=1 (which now 
  • trunk/server/doc/testing.txt

    r1064 r1198  
    2626Manual tests 
    2727============ 
    28 If you only want to run some part of the testsuite, or you want detailed 
     28If you only want to run some part of the test suite, or you want detailed 
    2929output as to why a test failed, you can run as follows: 
    3030$ MOGTEST_DBTYPE=<dbtype> perl -Ilib t/<foobar>.t 
  • trunk/server/lib/MogileFS/Config.pm

    r1180 r1198  
    2424    my ($k, $v) = @_; 
    2525 
    26     # if a child, propogate to parent 
     26    # if a child, propagate to parent 
    2727    if (my $worker = MogileFS::ProcManager->is_child) { 
    2828        $worker->send_to_parent(":set_config_from_child $k $v"); 
     
    132132 
    133133    # Fill in defaults for those values which were either loaded from config or 
    134     # specified on the command line. Command line takes precendence, then values in 
     134    # specified on the command line. Command line takes precedence, then values in 
    135135    # the config file, then the defaults. 
    136136    $daemonize      = choose_value( 'daemonize', 0 ); 
  • trunk/server/lib/MogileFS/Device.pm

    r1166 r1198  
    374374    if ($ans && $ans =~ m!HTTP/1\.[01] (400|405|501)!) { 
    375375        $self->{no_mkcol} = 1; 
    376         # TODO: move this into method on device, which propogates to parent 
     376        # TODO: move this into method on device, which propagates to parent 
    377377        # and also receive from parent.  so all query workers share this knowledge 
    378378        return 1; 
  • trunk/server/lib/MogileFS/Domain.pm

    r1159 r1198  
    7575# flushes locally (for things like "get_domains" or "get_hosts", where 
    7676# it needs to be locally correct for the semantics of the command, but 
    77 # no need to propogate a cache invalidation to our peers) 
     77# no need to propagate a cache invalidation to our peers) 
    7878sub invalidate_cache { 
    7979    $last_load = 0; 
  • trunk/server/lib/MogileFS/FID.pm

    r1114 r1198  
    150150# returns array of devids that this fid is on 
    151151# NOTE: TODO: by default, this doesn't cache.  callers might be surprised from 
    152 #   having an old version later on.  before caching is added, auditting needs 
     152#   having an old version later on.  before caching is added, auditing needs 
    153153#   to be done. 
    154154sub devids { 
  • trunk/server/lib/MogileFS/HTTPFile.pm

    r1147 r1198  
    125125    my ($host, $port, $uri, $path) = map { $self->{$_} } qw(host port uri url); 
    126126 
    127     # don't sigpipe us 
     127    # don't SIGPIPE us 
    128128    my $flag_nosignal = MogileFS::Sys->flag_nosignal; 
    129129    local $SIG{'PIPE'} = "IGNORE" unless $flag_nosignal; 
  • trunk/server/lib/MogileFS/IOStatWatcher.pm

    r716 r1198  
    2727pass it hostnames instead of ip addresses. 
    2828 
    29 Upon successfull connection, the on_stats callback will be called each time the statistics are 
     29Upon successful connection, the on_stats callback will be called each time the statistics are 
    3030collected. Error states (failed connections, etc.) will trigger retries on 60 second intervals, and 
    3131disconnects will trigger an immediate reconnect. 
  • trunk/server/lib/MogileFS/ProcManager.pm

    r1120 r1198  
    99 
    1010# This class handles keeping lists of workers and clients and 
    11 # assigning them to eachother when things happen.  You don't actually 
     11# assigning them to each other when things happen.  You don't actually 
    1212# instantiate a procmanager.  the class itself holds all state. 
    1313 
     
    532532    !replication 
    533533                (Deprecated/old) 
    534                 See the replication status for unreplicated files. 
     534                See the replication status for un-replicated files. 
    535535                Output format: 
    536536                <domain> <class> <devcount> <files> 
     
    578578    } elsif ($cmd =~ /^:repl_unreachable (\d+)/) { 
    579579        # announce to the other replicators that this fid can't be reached, but note 
    580         # that we don't actually drain the queue to the requestor, as the replicator 
     580        # that we don't actually drain the queue to the requester, as the replicator 
    581581        # isn't in a place where it can accept a queue drain right now. 
    582582        MogileFS::ProcManager->ImmediateSendToChildrenByJob('replicate', "repl_unreachable $1", $child); 
  • trunk/server/lib/MogileFS/ReplicationPolicy/MultipleHosts.pm

    r1142 r1198  
    3333    # this is the per-class mindevcount (the old way), which is passed in automatically 
    3434    # from the replication worker.  but if we have our own configured mindevcount 
    35     # in class.replpolicy, like "MultipleHosts(3)", then we use the explciit one. otherwise, 
     35    # in class.replpolicy, like "MultipleHosts(3)", then we use the explicit one. otherwise, 
    3636    # if blank, or zero, like "MultipleHosts()", then we use the builtin on 
    3737    my $min      = delete $args{min}; 
  • trunk/server/lib/MogileFS/ReplicationPolicy/Union.pm

    r1110 r1198  
    3939=head1 NAME 
    4040 
    41 MogileFS::ReplicationPolicy::Union -- satisify 2 or more replication policies 
     41MogileFS::ReplicationPolicy::Union -- satisfy 2 or more replication policies 
    4242 
    4343=head1 RULES 
    4444 
    45 Use this replication policy to satisify multiple replication policies. 
     45Use this replication policy to satisfy multiple replication policies. 
    4646For instance: 
    4747 
  • trunk/server/lib/MogileFS/ReplicationRequest.pm

    r1145 r1198  
    6060 
    6161# returns array of MogileFS::Device objs, in preferred order, one of 
    62 # which (but not multiple) would satisify the replication policy 
     62# which (but not multiple) would satisfy the replication policy 
    6363# for its next step.  at which point the replication policy needs 
    6464# to be asked again what the next step is. 
  • trunk/server/lib/MogileFS/Store.pm

    r1185 r1198  
    329329            return 1 if $self->was_duplicate_error; 
    330330            # This chunk is identical to condthrow, but we include it directly 
    331             # here as we know there is definetly an error, and we would like 
     331            # here as we know there is definitely an error, and we would like 
    332332            # the caller of this function. 
    333333            my ($pkg, $fn, $line) = caller; 
     
    596596    #   0 means immediate.  it's only on one host. 
    597597    #   1 means lower priority.  it's on 2+ but isn't happy where it's at. 
    598     #   unixtimestamp means at/after that time.  some previous error occurred. 
     598    #   unix timestamp means at/after that time.  some previous error occurred. 
    599599    # fromdevid, if not null, means which devid we should replicate from.  perhaps it's the only non-corrupt one.  otherwise, wherever. 
    600600    # failcount.  how many times we've failed, just for doing backoff of nexttry. 
     
    10031003    }; 
    10041004    if ($@ || $dbh->err) { 
    1005         # first is mysql's error code for duplicates 
     1005        # first is MySQL's error code for duplicates 
    10061006        if ($self->was_duplicate_error) { 
    10071007            return 0; 
     
    14761476 
    14771477    # FIXME: this blows. not random.  and good chances these will 
    1478     # eventually get to point where they're un-rebalanacable, and we 
     1478    # eventually get to point where they're un-rebalance-able, and we 
    14791479    # never move on past the first 5000 
    14801480    my @some_fids = List::Util::shuffle(@{ 
  • trunk/server/lib/MogileFS/Util.pm

    r1036 r1198  
    123123        unless $sess_id = POSIX::setsid(); 
    124124 
    125     ## Prevent possibility of acquiring a controling terminal 
     125    ## Prevent possibility of acquiring a controlling terminal 
    126126    $SIG{'HUP'} = 'IGNORE'; 
    127127    if ($pid = fork) { exit 0; } 
     
    140140    close(STDERR); 
    141141 
    142     ## Reopen stderr, stdout, stdin to /dev/null 
     142    ## Reopen STDERR, STDOUT, STDIN to /dev/null 
    143143    if ( $MogileFS::DEBUG ) { 
    144144        open(STDIN,  "+>/tmp/mogilefsd.log"); 
  • trunk/server/lib/MogileFS/Worker.pm

    r1036 r1198  
    222222 
    223223# tries to parse generic (not job-specific) commands sent from parent 
    224 # to child.  returns 1 on success, or 0 if comman given isn't generic, 
     224# to child.  returns 1 on success, or 0 if command given isn't generic, 
    225225# and child should parse. 
    226226# lineref doesn't have \r\n at end. 
  • trunk/server/lib/MogileFS/Worker/Delete.pm

    r1037 r1198  
    77 
    88# we select 1000 but only do a random 100 of them, to allow 
    9 # for stateless paralleism 
     9# for stateless parallelism 
    1010use constant LIMIT => 1000; 
    1111use constant PER_BATCH => 100; 
     
    7878    # BUT NOTE: 
    7979    #    the fids might exist on one of the devices in devids column if we assigned them those, 
    80     #    they wrote some to one of them, then they died or for wahtever reason didn't create_close 
     80    #    they wrote some to one of them, then they died or for whatever reason didn't create_close 
    8181    #    to use, so we shouldn't delete from tempfile before going on a hunt of the missing fid. 
    8282    #    perhaps we should just add to the file_on table for both devids, and let the regular delete 
  • trunk/server/lib/MogileFS/Worker/Query.pm

    r1174 r1198  
    251251 
    252252    # find suitable device(s) to put this file on. 
    253     my @dests; # MogileFS::Device objects which are suitabke 
     253    my @dests; # MogileFS::Device objects which are suitable 
    254254 
    255255    while (scalar(@dests) < ($multi ? 3 : 1)) { 
     
    738738    my $host = MogileFS::Host->of_hostname($hostname); 
    739739 
    740     # if we're createing a new host, require ip/port, and default to 
     740    # if we're creating a new host, require ip/port, and default to 
    741741    # host being down if client didn't specify 
    742742    if ($args->{update}) { 
     
    11621162} 
    11631163 
    1164 # FIXME: this whole thing is gross, duplicative, dependendent on $dbh, and doesn't scale. 
     1164# FIXME: this whole thing is gross, duplicative, dependent on $dbh, and doesn't scale. 
    11651165# stats needs total overhaul to not suck. 
    11661166sub cmd_stats { 
     
    12671267    } 
    12681268 
    1269     # now fid statitics 
     1269    # now fid statistics 
    12701270    if ($args->{fids} || $args->{all}) { 
    12711271        my $max = $dbh->selectrow_array('SELECT MAX(fid) FROM file'); 
     
    14801480    } 
    14811481 
    1482     # add in any stats which might not've been summarized yet.,, 
     1482    # add in any stats which might have not been summarized yet.,, 
    14831483    my $max_logid = $sto->max_fsck_logid; 
    14841484    my $min_logid = MogileFS::Util::max($intss->("fsck_start_maxlogid"), 
     
    15201520        'bad_params' => "Invalid parameters to command; please see documentation", 
    15211521        'class_exists' => "That class already exists in that domain", 
    1522         'class_has_files' => "Class still has files, uanble to delete", 
     1522        'class_has_files' => "Class still has files, unable to delete", 
    15231523        'class_not_found' => "Class not found", 
    15241524        'db' => "Database error", 
    1525         'domain_has_files' => "Domain still has files, uanble to delete", 
     1525        'domain_has_files' => "Domain still has files, unable to delete", 
    15261526        'domain_exists' => "That domain already exists", 
    15271527        'domain_not_empty' => "Domain still has classes, unable to delete", 
  • trunk/server/lib/MogileFS/Worker/Replicate.pm

    r1147 r1198  
    250250    return 0 unless $sto->isa("MogileFS::Store::MySQL"); 
    251251 
    252     # call this $mdbh to indiciate it's a MySQL dbh, and to help grepping 
     252    # call this $mdbh to indicate it's a MySQL dbh, and to help grepping 
    253253    # for old handles.  :) 
    254254    my $mdbh = $sto->dbh; 
     
    401401    # case where file is in file_on because not yet deleted, but 
    402402    # has been replaced/deleted in 'file' table...).  not too harmful 
    403     # (just nosiy) if thise line didn't exist, but whatever... it 
     403    # (just noisy) if this line didn't exist, but whatever... it 
    404404    # makes stuff cleaner on my intentionally-corrupted-for-fsck-testing 
    405405    # dev machine... 
     
    434434        # nothing to do, even with this devfid masked away. 
    435435        # so let's figure it out... if this devfid still exists, 
    436         # we're overreplicated, else we just lost the race. 
     436        # we're over-replicated, else we just lost the race. 
    437437        if ($devfid->exists) { 
    438438            # over-replicated 
     
    597597        last if $rr->is_happy; 
    598598 
    599         my @ddevs;  # dest devs, in order of preferrence 
     599        my @ddevs;  # dest devs, in order of preference 
    600600        my $ddevid; # dest devid we've chosen to copy to 
    601601        if (@ddevs = $rr->copy_to_one_of_ideally) { 
  • trunk/server/lib/Mogstored/SideChannelClient.pm

    r975 r1198  
    9494} 
    9595 
    96 # stop watching writability if we've nothing else to 
     96# stop watching writeability if we've nothing else to 
    9797# write to them.  else just kick off more writes. 
    9898sub event_write { 
  • trunk/server/mogautomount

    r1137 r1198  
    1131130 on success or inaction because no action needed to happen. 
    114114 
    115 1 on partial failure (some mounts succeeed). 
     1151 on partial failure (some mounts succeed). 
    116116 
    1171172 on total failure (things had to be done, but nothing was). 
  • trunk/server/mogilefsd

    r1082 r1198  
    103103=head1 SEE ALSO 
    104104 
    105 L<mogstored> -- MogilefS storage daemon 
     105L<mogstored> -- MogileFS storage daemon 
    106106 
    107107L<http://danga.com/mogilefs/> 
  • trunk/server/mogstored

    r1115 r1198  
    169169 
    170170    # parse the mogstored config file, which is just lines of comments and 
    171     # "key = value" lines, where keys are just the same as commandline 
     171    # "key = value" lines, where keys are just the same as command line 
    172172    # options. 
    173173    die "Config file $opt_config doesn't exist.\n" unless -e $conffile; 
     
    214214    }); 
    215215 
    216     # old Gearman::Servers didn't return pid integegers 
     216    # old Gearman::Servers didn't return pid integers 
    217217    if ($pid =~ /^\d+$/) { 
    218218        Mogstored->on_pid_death($pid, \&start_fidsizes_worker); 
  • trunk/server/t/10-weighting.t

    r1169 r1198  
    1212    $ENV{TESTING} = 1; 
    1313    $ENV{T_FAKE_IO_DEV1} = 95; # Simulating high device load (should get fewer requests). 
    14     $ENV{T_FAKE_IO_DEV2} = 5;  # Simulating low device load (shoudld get more requests). 
     14    $ENV{T_FAKE_IO_DEV2} = 5;  # Simulating low device load (should get more requests). 
    1515} 
    1616 
  • trunk/server/t/20-filepaths.t

    r1169 r1198  
    2424# etc 
    2525 
    26 plan skip_all => "Filepaths plugin has been seperated from the server, a bit of work is needed to make the tests run again."; 
     26plan skip_all => "Filepaths plugin has been separated from the server, a bit of work is needed to make the tests run again."; 
    2727exit 0; 
    2828 
  • trunk/server/t/mogstored-shutdown.t

    r1169 r1198  
    6666sub exist_pid { 
    6767    unless (`netstat -nap --inet` =~ m!127\.0\.1\.1:750[10].+LISTEN\s+(\d+)/!) { 
    68         die "Could't find pid of daemonized process.\n"; 
     68        die "Couldn't find pid of daemonized process.\n"; 
    6969    } 
    7070    return $1; 
  • trunk/server/t/multiple-hosts-replpol.t

    r1169 r1198  
    2121   "ideal(3,4)", "need host2"); 
    2222 
    23 # still needs to be on host2, even though 2 coies on host1 
     23# still needs to be on host2, even though 2 copies on host1 
    2424is(rr("min=2  h1[d1=X d2=X] h2[d3=_ d4=_]"), 
    2525   "ideal(3,4)", "need host2, even though 2 on host1"); 
  • trunk/utils/debian/control

    r168 r1198  
    99Architecture: all 
    1010Depends: ${perl:Depends}, libcompress-zlib-perl, libwww-perl, libmogilefs-perl 
    11 Description: utilities to manipulate mogileFS filesystems 
     11Description: utilities to manipulate MogileFS filesystems 
    1212 The mogilefs-utils package contains tools to administrate and work with the  
    13  mogileFS filesystem from Danga Interactive. 
     13 MogileFS filesystem from Danga Interactive. 
  • trunk/utils/mogadm

    r1136 r1198  
    113113            }, 
    114114            modify => { 
    115                 des => "Modify a device's propereties.", 
     115                des => "Modify a device's properties.", 
    116116                args => "<hostname> <devid> [opts]", 
    117117                opts => { 
     
    119119                    "<devid>"    => "Numeric devid to modify.", 
    120120                    "--status=s" => "One of {alive,dead,down,drain,readonly}", 
    121                     "--weight=i" => "Postive numeric weight for device", 
     121                    "--weight=i" => "Positive numeric weight for device", 
    122122                }, 
    123123            }, 
     
    158158                    "<domain>" => "Domain to add class to.", 
    159159                    "<class>"  => "Name of class to add.", 
    160                     "--mindevcount=i" => "Mininum number of replicas.", 
     160                    "--mindevcount=i" => "Minimum number of replicas.", 
    161161                }, 
    162162            }, 
     
    167167                    "<domain>" => "Domain to add class to.", 
    168168                    "<class>"  => "Name of class to add.", 
    169                     "--mindevcount=i" => "Mininum number of replicas.", 
     169                    "--mindevcount=i" => "Minimum number of replicas.", 
    170170                }, 
    171171            }, 
     
    14481448Show the status of the presently active (or last if none active) fsck. This 
    14491449includes what FIDs are being checked, time statistics, check type as well as a 
    1450 summary of problems encounted so far. 
     1450summary of problems encountered so far. 
    14511451 
    14521452=item B<fsck stop> 
  • trunk/utils/mogtool

    r1130 r1198  
    281281=item 0 
    282282 
    283 Sucess during operation. 
     283Success during operation. 
    284284 
    285285=item 1 
     
    289289=item 2 
    290290 
    291 Some fatal error occured. 
     291Some fatal error occurred. 
    292292 
    293293=back 
     
    11701170    } 
    11711171 
    1172     # several cases.. going to stdout? 
     1172    # several cases.. going to STDOUT? 
    11731173    if ($dest eq '-') { 
    11741174        *O = *STDOUT; 
     
    11831183            } 
    11841184            if (-b $dest) { 
    1185                 # if we're targetting a block device... 
     1185                # if we're targeting a block device... 
    11861186                warn "FIXME: add in block checking\n"; 
    11871187                open O, ">$dest" 
     
    12391239    # now make sure we have enough data 
    12401240#$ mogtool [opts] extract <key> {<file>,<dir>,<device>} 
    1241                                  #=>  -  (for stdout)    (if compressed, add "z" flag) 
     1241                                 #=>  -  (for STDOUT)    (if compressed, add "z" flag) 
    12421242                                 #=>  .   (to untar)     (if compressed, do nothing???, make .tar.gz file -- unless they use -z again?) 
    12431243                                 #=> /dev/sda4  (but check /proc/partitions that it's big enough)  (if compress, Compress::Zlib to ungzip 
     
    12581258    $dkey = "_big_info:$key" if $opts{big}; 
    12591259     
    1260     # list all pathes for the file 
     1260    # list all paths for the file 
    12611261    my $ct = 0; 
    12621262    my @paths = []; 
     
    13031303    abortWithUsage("key pattern required") unless $key_pattern; 
    13041304 
    1305     # list all files matchine a key 
     1305    # list all files matching a key 
    13061306    my ($ct, $after, $list); 
    13071307    $ct = 0; 
     
    14171417 
    14181418$ mogtool [opts] extract <key> {<file>,<dir>,<device>} 
    1419                                   =>  -  (for stdout)    (if compressed, add "z" flag) 
     1419                                  =>  -  (for STDOUT)    (if compressed, add "z" flag) 
    14201420                                  =>  .   (to untar)     (if compressed, do nothing???, make .tar.gz file -- unless they use -z again?) 
    14211421                                  => /dev/sda4  (but check /proc/partitions that it's big enough)  (if compress, Compress::Zlib to ungzip)