Displaying 5 results from an estimated 5 matches for "cache_read".
Did you mean:
cache_pread
2007 Jan 05
0
ActiveResource cache using memcache-client
...')
# test the connection to the Memcache server
@@cache.get(1)
rescue MemCache::MemCacheError
@@cache = nil
end
# See ActiveResource::Base.find for method description
def self.find(*args)
if args.length == 1 && args.first.is_a?(Fixnum)
cached_record = self.cache_read(args.first)
return cached_record if cached_record
end
# if find(int) is not a cache hit or if the
# find is more complex, do the find as normal
# and cache the answers
records = super(*args)
case records
when Array
records.each {|r| r.cache_write}
e...
2015 Jul 18
1
[PATCH 1/2] xfs: rename xfs_is_valid_magicnum to xfs_is_valid_sb
xfs_is_valid_magicnum is not actually a generic function that checks for
magic numbers, instead it checks only for superblock's one.
Signed-off-by: Paulo Alcantara <pcacjr at zytor.com>
---
core/fs/xfs/xfs.c | 13 +++++--------
core/fs/xfs/xfs.h | 19 ++++++++++---------
2 files changed, 15 insertions(+), 17 deletions(-)
diff --git a/core/fs/xfs/xfs.c b/core/fs/xfs/xfs.c
index
2016 Jan 08
0
[PATCH] xfs: Add support for v3 directories
...xfs_dir2.h | 6 +-
> core/fs/xfs/xfs_readdir.c | 151 ++++++++++++++---------
> 6 files changed, 399 insertions(+), 230 deletions(-)
>
Are there any reasons not to commit this patch (sent during 2015Dec)?
Additionally:
1_ There was a patch sent by Paulo during 2015Jul:
xfs: use cache_read() to read contiguous fs blocks
Is it still adequate / relevant / valid / current/ needed / desired?
Another patch, "xfs: rename xfs_is_valid_magicnum to xfs_is_valid_sb",
also sent during 2015Jul, was already committed.
2_ In "mbr/mbr.S" as of v.6.03, there is specific cod...
2016 Jan 15
0
[PATCH] xfs: Add support for v3 directories
...(+), 230 deletions(-)
> > >
> >
> > Are there any reasons not to commit this patch (sent during 2015Dec)?
>
> It was next on my last actually.
>
> > Additionally:
> >
> > 1_ There was a patch sent by Paulo during 2015Jul:
> >
> > xfs: use cache_read() to read contiguous fs blocks
> >
> > Is it still adequate / relevant / valid / current/ needed / desired?
>
> I'll take a peak and ask Paulo if needed.
>
> --Gene
Somehow forgot reply all
2015 Dec 15
8
[PATCH] xfs: Add support for v3 directories
...c_error("buffer memory");
+ memset(buf, 0, len);
- memset(buf, 0, XFS_INFO(fs)->dirblksize);
-
- while (count--) {
- p = (uint8_t *)get_cache(fs->fs_dev, startblock++);
- memcpy(buf + offset, p, BLOCK_SIZE(fs));
- offset += BLOCK_SIZE(fs);
+ ret = cache_read(fs, buf, offs, len);
+ if (ret != len) {
+ xfs_error("failed to read contiguous directory blocks\n");
+ free(buf);
+ return NULL;
}
-
return buf;
}
-const void *xfs_dir2_dirblks_get_cached(struct fs_info *fs, block_t startblock,
- xfs_filblks_t c)...