Permalink
Browse files

minor : fix error in doc (mirroring is RAID1 not RAID0) and tidy up a…

… dmemit.
  • Loading branch information...
1 parent 42321f0 commit 60964a6b223d9957b55a2a2b32cd798f5deb55a4 @willsmithorg willsmithorg committed Oct 18, 2011
Showing with 5 additions and 5 deletions.
  1. +3 −3 doc/flashcache-doc.txt
  2. +2 −2 src/flashcache_conf.c
View
@@ -174,7 +174,7 @@ it should, for example, be able to skip caching of IOs of two
flows of sequential reads or writes, but only cache IOs from a third
random IO flow. Note that multiple small files may be written to
consecutive blocks. If these are written out in a batch (e.g. by
-an untar), this may appear as single sequential write, hence these
+an untar), this may appear as a single sequential write, hence these
multiple small files will not be cached. The categorization of IO as
sequential or random occurs purely at the block level, not the file level.
@@ -186,8 +186,8 @@ Cache Mirroring :
---------------
Mirroring the cache across 2 physical flash devices should work
without any code changes. Since the cache device is a block device, we
-can build a RAID-0 block device out of the 2 physical flash devices
-and use that as our cache device. (I have not yet tested this yet).
+can build a RAID-1 block device out of the 2 physical flash devices
+and use that as our cache device. (I have not yet tested this).
Cache Resizing :
--------------
View
@@ -1286,7 +1286,7 @@ flashcache_dtr_stats_print(struct cache_c *dmc)
/* All modes */
DMINFO("\tdisk reads(%lu), disk writes(%lu) ssd reads(%lu) ssd writes(%lu)\n" \
"\tuncached reads(%lu), uncached writes(%lu), uncached IO requeue(%lu)\n" \
- "\tuncached sequential reads (%lu), uncached sequential writes (%lu)\n" \
+ "\tuncached sequential reads(%lu), uncached sequential writes(%lu)\n" \
"\tpid_adds(%lu), pid_dels(%lu), pid_drops(%lu) pid_expiry(%lu)",
stats->disk_reads, stats->disk_writes, stats->ssd_reads, stats->ssd_writes,
stats->uncached_reads, stats->uncached_writes, stats->uncached_io_requeue,
@@ -1466,7 +1466,7 @@ flashcache_status_info(struct cache_c *dmc, status_type_t type,
/* All modes */
DMEMIT("\tdisk reads(%lu), disk writes(%lu) ssd reads(%lu) ssd writes(%lu)\n" \
"\tuncached reads(%lu), uncached writes(%lu), uncached IO requeue(%lu)\n" \
- "\tuncached sequential reads (%lu), uncached sequential writes (%lu)\n" \
+ "\tuncached sequential reads(%lu), uncached sequential writes(%lu)\n" \
"\tpid_adds(%lu), pid_dels(%lu), pid_drops(%lu) pid_expiry(%lu)",
stats->disk_reads, stats->disk_writes, stats->ssd_reads, stats->ssd_writes,
stats->uncached_reads, stats->uncached_writes, stats->uncached_io_requeue,

0 comments on commit 60964a6

Please sign in to comment.