#
# LB_VALIDATE_EXT4_SRC_DIR
#
-# Spot check the existance of several source files common to ext4.
+# Spot check the existence of several source files common to ext4.
# Detecting this at configure time allows us to avoid a potential build
# failure and provide a useful error message to explain what is wrong.
#
#
# LB_CHECK_FILE
#
-# Check for file existance even when cross compiling
+# Check for file existence even when cross compiling
# $1 - file to check
# $2 - do 'yes'
# $3 - do 'no'
#
# The purpose of this function is to assemble command line options
# for the rpmbuild command based on the options passed to the configure
-# script, and also upon the descisions that configure makes based on
+# script, and also upon the decisions that configure makes based on
# the tests that it runs.
# These strings can be passed to rpmbuild on the command line
# in the Make targets named "rpms" and "srpm".
((struct shrinker*)0)->count_objects(NULL, NULL);
],[
AC_DEFINE(HAVE_SHRINKER_COUNT, 1,
- [shrinker has count_objects memeber])
+ [shrinker has count_objects member])
])
])
/*
* The dump file should start with a description of which devices are
- * used, but for now it will assumed whatever app reads the file will
+ * used, but for now it will assume whatever app reads the file will
* know what to do. */
int
dump(int dev_id, unsigned int opc, void *buf)
#
# LN_CONDITIONALS
#
-# AM_CONDITOINAL defines for lnet
+# AM_CONDITIONAL defines for lnet
#
AC_DEFUN([LN_CONDITIONALS], [
AM_CONDITIONAL(BUILD_O2IBLND, test x$O2IBLND = "xo2iblnd")
conn->ibc_cq = cq;
- rc = ib_req_notify_cq(cq, IB_CQ_NEXT_COMP);
- if (rc != 0) {
- CERROR("Can't request completion notificiation: %d\n", rc);
- goto failed_2;
- }
+ rc = ib_req_notify_cq(cq, IB_CQ_NEXT_COMP);
+ if (rc != 0) {
+ CERROR("Can't request completion notification: %d\n", rc);
+ goto failed_2;
+ }
init_qp_attr->event_handler = kiblnd_qp_event;
init_qp_attr->qp_context = conn;
int notify = 0;
cfs_time_t last_alive = 0;
- /* There has been a connection failure or comms error; but I'll only
- * tell LNET I think the peer is dead if it's to another kernel and
- * there are no connections or connection attempts in existance. */
+ /* There has been a connection failure or comms error; but I'll only
+ * tell LNET I think the peer is dead if it's to another kernel and
+ * there are no connections or connection attempts in existence. */
read_lock(&ksocknal_data.ksnd_global_lock);
Severity : normal
Frequency : rare
Bugzilla : 11662
-Description: Grant space more than avaiable left space sometimes.
+Description: Grant space more than available left space sometimes.
Details : When then OST is about to be full, if two bulk writing from
different clients came to OST. Accord the avaliable space of the
OST, the first req should be permitted, and the second one
should be denied by ENOSPC. But if the seconde arrived before
the first one is commited. The OST might wrongly permit second
- writing, which will cause grant space > avaiable space.
+ writing, which will cause grant space > available space.
Severity : normal
Frequency : when client is evicted
# 3.8 struct file has new member f_inode
#
AC_DEFUN([LC_HAVE_FILE_F_INODE], [
-LB_CHECK_COMPILE([if 'struct file' has memeber 'f_inode'],
+LB_CHECK_COMPILE([if 'struct file' has member 'f_inode'],
file_f_inode, [
#include <linux/fs.h>
],[
((struct file *)0)->f_inode = NULL;
],[
AC_DEFINE(HAVE_FILE_F_INODE, 1,
- [struct file has memeber f_inode])
+ [struct file has member f_inode])
])
]) # LC_HAVE_FILE_F_INODE
* at object's offset lnb_file_offset.
*
* The memory referenced by the descriptors can't change its purpose
- * until the complimentary ->dbo_bufs_put() is called. The caller should
+ * until the complementary ->dbo_bufs_put() is called. The caller should
* specify if the buffers are used to read or modify data so that OSD
* can decide how to initialize the buffers: bring all the data for
* reads or just bring partial buffers for write. Note: the method does
DOIF_DRYRUN = 0x0008,
};
-/* otable based iteration needs to use the common DT interation APIs.
+/* otable based iteration needs to use the common DT iteration APIs.
* To initialize the iteration, it needs call dio_it::init() firstly.
* Here is how the otable based iteration should prepare arguments to
* call dt_it_ops::init().
LUDA_TYPE = 0x0002,
LUDA_64BITHASH = 0x0004,
- /* The following attrs are used for MDT interanl only,
+ /* The following attrs are used for MDT internal only,
* not visible to client */
/* Verify the dirent consistency */
/* Changelog interface. priv is private state, managed internally by these
* functions */
-/* Records received are in extentded format now, though most of them are still
+/* Records received are in extended format now, though most of them are still
* written in disk in changelog_rec format (to save space and time), it's
- * converted to extented format in the lustre api to ease changelog analysis. */
+ * converted to extended format in the lustre api to ease changelog analysis. */
#define HAVE_CHANGELOG_EXTEND_REC 1
extern int llapi_changelog_start(void **priv, enum changelog_send_flag flags,
/* LUSTRE_SEQ_SERVER or LUSTRE_SEQ_CONTROLLER */
enum lu_mgr_type lss_type;
- /* Client interafce to request controller */
+ /* Client interface to request controller */
struct lu_client_seq *lss_cli;
/* Mutex for protecting allocation */
/* statfs data specific for every OSC, if needed at all. */
struct obd_statfs *oi_osfs;
/* An update callback which is called to update some data on upper
- * level. E.g. it is used for update lsm->lsm_oinfo at every recieved
+ * level. E.g. it is used for update lsm->lsm_oinfo at every received
* request in osc level for enqueue requests. It is also possible to
* update some caller data from LOV layer if needed. */
obd_enqueue_update_f oi_cb_up;
*
* Be very careful when changing this value, especially when decreasing it,
* since vmalloc in Linux doesn't perform well on multi-cores system, calling
- * vmalloc in critical path would hurt peformance badly. See LU-66.
+ * vmalloc in critical path would hurt performance badly. See LU-66.
*/
#define OBD_ALLOC_BIG (4 * PAGE_CACHE_SIZE)
/**
* Generic handler to do any pre-copy work.
*
- * It send a first hsm_progress (with extent length == 0) to coordinator as a
+ * It sends a first hsm_progress (with extent length == 0) to coordinator as a
* first information for it that real work has started.
*
* Moreover, for a ARCHIVE request, it will sample the file data version and
GOTO(progress, rc);
}
- /* Store it the hsm_copy for later copytool use.
+ /* Store in the hsm_copy for later copytool use.
* Always modified even if no lsm. */
copy->hc_data_version = data_version;
}
GOTO(progress, rc);
}
- /* Store it the hsm_copy for later copytool use.
+ /* Store in the hsm_copy for later copytool use.
* Always modified even if no lsm. */
hpk.hpk_data_version = data_version;
dt->do_body_ops = &lod_body_lnk_ops;
/*
- * it's lod_ah_init() who has decided the object will striped
+ * it's lod_ah_init() that has decided the object will be striped
*/
if (dof->dof_type == DFT_REGULAR) {
/* callers don't want stripes */
struct hsm_progress_kernel pgs;
dump_llog_agent_req_rec("mdt_coordinator_cb(): "
- "request timeouted, start "
+ "request timed out, start "
"cleaning", larr);
/* a too old cancel request just needs to be removed
* this can happen, if copy tool does not support cancel
*/
rc = mdt_hsm_update_request_state(hsd->mti, &pgs, 0);
if (rc)
- CERROR("%s: Cannot cleanup timeouted request: "
+ CERROR("%s: Cannot cleanup timed out request: "
DFID" for cookie "LPX64" action=%s\n",
mdt_obd_name(mdt),
PFID(&pgs.hpk_fid), pgs.hpk_cookie,
CDEBUG(D_HSM, "Found %d requests to send and %d"
" requests to cancel\n",
hsd.request_cnt, hsd.cookie_cnt);
- /* first we cancel llog records of the timeouted requests */
+ /* first we cancel llog records of the timed out requests */
if (hsd.cookie_cnt > 0) {
rc = mdt_agent_record_update(mti->mti_env, mdt,
hsd.cookies,
* ENOSYS only if does not support cancel
*/
/* this can also happen when cdt calls it to
- * for a timeouted request */
+ * for a timed out request */
*status = ARS_FAILED;
/* to have a cancel event in changelog */
pgs->hpk_errval = ECANCELED;
}
/*
- * UPDATE lock should be taken against parent, and be release before exit;
+ * UPDATE lock should be taken against parent, and be released before exit;
* child_bits lock should be taken against child, and be returned back:
* (1)normal request should release the child lock;
* (2)intent request will grant the lock to client.
* Unlock mdt object.
*
* Immeditely release the regular lock and the PDO lock or save the
- * lock in reqeuest and keep them referenced until client ACK or
+ * lock in request and keep them referenced until client ACK or
* transaction commit.
*
* \param info thread info object
GOTO(out_seq_fini, rc);
if (ss->ss_node_id != 0)
- /* register controler export through lwp */
+ /* register controller export through lwp */
rc = mdt_register_seq_exp(mdt);
EXIT;
/**
* lprocfs_release_hsm_actions() is called at end of /proc access.
- * It frees allocated ressources and calls cleanup lprocfs methods.
+ * It frees allocated resources and calls cleanup lprocfs methods.
*/
static int lprocfs_release_hsm_actions(struct inode *inode, struct file *file)
{
int rc;
ENTRY;
- /* ask to coodinator to update request state and
+ /* ask to coordinator to update request state and
* to record on disk the result */
rc = mdt_hsm_update_request_state(mti, pgs, 1);
RETURN(rc);
}
/*
- * If object is dying (will not be cached), removed it
+ * If object is dying (will not be cached) then remove it
* from hash table and LRU.
*
* This is done with hash table and LRU lists locked. As the only
*
* LWP is lightweight proxy - simplified connection between
* servers. It is used for FID Location Database (FLDB) and
- * sequence (SEQ) client-server interations.
+ * sequence (SEQ) client-server interactions.
*
* This function is used during server cleanup process to free
* LWP items that were previously set up upon OFD start.
lnb->lnb_page = kmem_to_page(dbp[i]->db_data +
bufoff);
/* mark just a single slot: we need this
- * reference to dbuf to be release once */
+ * reference to dbuf to be released once */
lnb->lnb_data = dbf;
dbf = NULL;
lnb++;
}
- /* steal dbuf so dmu_buf_rele_array() cant release it */
+ /* steal dbuf so dmu_buf_rele_array() can't release
+ * it */
dbp[i] = NULL;
}
{
struct task_struct *task;
/* bug 17802: XXX client_disconnect_export vs connect request
- * race. if client will evicted at this time, we start
+ * race. if client is evicted at this time then we start
* invalidate thread without reference to import and import can
* be freed at same time. */
class_import_get(imp);
}
/*
- * callback for interating over the interval tree
+ * callback for iterating over the interval tree
*
* \param n interval_node matched
* \param data void pointer for return
*
- * This dunction stops after a single match. There should be
+ * This function stops after a single match. There should be
* no intervals containing multiple ranges
*/
static enum interval_iter range_cb(struct interval_node *n, void *data)
}
/**
- * Removes all policy desciptors from nrs_core::nrs_policies, and frees the
+ * Removes all policy descriptors from nrs_core::nrs_policies, and frees the
* policy descriptors.
*
* Since all PTLRPC services are stopped at this point, there are no more
cleanup_48() {
trap 0
- # reformat after this test is needed - if test will failed
+ # reformat after this test is needed - if the test fails,
# we will have unkillable file at FS
reformat_and_config
}
print "\t--mountpt\tlocation of lustre mount\n";
print "\t--num_mounts=n\tnumber of lustre mounts to test across, default=-1 (single mount point without numeric suffix)\n\n";
print "example: $0 --mountpt=/mnt/lustre --num_mounts=2 --iterations=50\n";
- print " will perform 50 interations in /mnt/lustre1 and /mnt/lustre2\n";
+ print " will perform 50 iterations in /mnt/lustre1 and /mnt/lustre2\n";
print " $0 --mountpt=/mnt/lustre --num_mounts=-1 --iterations=50\n";
print " will perform 50 iterations in /mnt/lustre only\n\n";
exit;
print "\t--mountpt\tlocation of lustre mount\n";
print "\t--num_mounts=n\tnumber of lustre mounts to test across, default=-1 (single mount point without numeric suffix)\n\n";
print "example: $0 --mountpt=/mnt/lustre --num_mounts=2 --iterations=50\n";
- print " will perform 50 interations in /mnt/lustre1 and /mnt/lustre2\n";
+ print " will perform 50 iterations in /mnt/lustre1 and /mnt/lustre2\n";
print " $0 --mountpt=/mnt/lustre --num_mounts=-1 --iterations=50\n";
print " will perform 50 iterations in /mnt/lustre only\n\n";
exit;
dd if=/dev/urandom of=$DIR/$tdir/f-$file_id bs=4096 count=128
done
- # if the objids were not recreated, then "ls" will failed for -ENOENT
+ # if the objids were not recreated, then "ls" will fail with -ENOENT
ls -l $DIR/$tdir/* || error "can't get the status of precreated files"
local file_id
"\n" \
"\tblock: Block file access during data migration\n" \
-/* all avaialable commands */
+/* all available commands */
command_t cmdlist[] = {
{"setstripe", lfs_setstripe, 0,
"Create a new file with a specific striping pattern or\n"
}
rc = llapi_file_get_stripe(name, lum);
- /* failure can come from may case and some may be not real error
+ /* failure can happen for many reasons and some may be not real errors
* (eg: no stripe)
- * in case of a real error, a later call will failed with a better
+ * in case of a real error, a later call will fail with better
* error management */
if (rc < 0)
bufsz = 1024*1024;
while ((rc = getline(&line, &len, fp)) != -1) {
struct hsm_user_item *hui;
- /* If allocated buffer was too small, gets something
- * bigger */
+ /* If allocated buffer was too small, get something
+ * larger */
if (nbfile_alloc <= hur->hur_request.hr_itemcount) {
ssize_t size;
nbfile_alloc = nbfile_alloc * 2 + 1;
/*
* If uuidp is NULL, return the number of available obd uuids.
* If uuidp is non-NULL, then it will return the uuids of the obds. If
- * there are more OSTs then allocated to uuidp, then an error is returned with
+ * there are more OSTs than allocated to uuidp, then an error is returned with
* the ost_count set to number of available obd uuids.
*/
static int llapi_get_target_uuids(int fd, struct obd_uuid *uuidp,
{
print STDERR "Usage: $pname <ost_name> [<interval> [<count>}]\n";
print STDERR "where ost_name : ost name under /{proc,sys}/fs/lustre/obdfilter\n";
- print STDERR " interval : sample interaval in seconds\n";
+ print STDERR " interval : sample interval in seconds\n";
print STDERR "example: $pname lustre-OST0000 2\n";
print STDERR "Use CTRL + C to stop statistics printing\n";
exit 1;