search for: get_cache

Displaying 20 results from an estimated 22 matches for "get_cache".

Did you mean: set_cache
2007 Apr 03
5
small suggestion - once method on Expectation
...ensure a method gets called exactly once, for example when testing caching or eager loading. What does the list think of adding this little humane method to Mocha::Expectation? def once times(1) self end which means this: def test_should_only_grab_post_once_from_the_cache Post.expects(:get_cache).with(google_vs_yahoo.id).times(1) comments.first.post comments.first.post end becomes: def test_should_only_grab_post_once_from_the_cache Post.expects(:get_cache).with(google_vs_yahoo.id).once comments.first.post comments.first.post end Not a huge difference, but a litt...
2012 Aug 02
2
[PATCH] add additional checks to ext2 loader
...tions(+), 1 deletions(-) diff --git a/core/fs/ext2/ext2.c b/core/fs/ext2/ext2.c index bddde8d..8f0f2a4 100644 --- a/core/fs/ext2/ext2.c +++ b/core/fs/ext2/ext2.c @@ -139,6 +139,8 @@ ext2_get_inode(struct fs_info *fs, int inr) block_off = inode_offset % EXT2_INODES_PER_BLOCK(fs); data = get_cache(fs->fs_dev, block_num); + if (!data) + return NULL; return (const struct ext2_inode *) (data + block_off * EXT2_SB(fs)->s_inode_size); @@ -164,7 +166,7 @@ static struct inode *ext2_iget_by_inr(struct fs_info *fs, uint32_t inr) struct inode *inode; e_inode = ext2_get_in...
2006 Apr 12
1
How best to handle non-serializable session data?
I have a piece of data that needs to persist across requests that is not serializable. It''s a Rubyful soup parse tree and it''s very expensive to instantiate and I need it for a while in my app. Therefore, by default, it can''t be stored in the session since the default session storage mechanism is pstore. One option I have to is change the session storage mechanism
2006 Apr 12
1
3.0.21c winbind crash
...nbindd_cache.c:set_global_winbindd_state_online(2297) set_global_winbindd_state_online: online requested. [2006/04/12 18:21:05, 10] nsswitch/winbindd_cache.c:set_global_winbindd_state_online(2300) set_global_winbindd_state_online: rejecting. [2006/04/12 18:21:05, 5] nsswitch/winbindd_cache.c:get_cache(123) get_cache: Setting ADS methods for domain XXX [2006/04/12 18:21:05, 0] lib/fault.c:fault_report(36) =============================================================== [2006/04/12 18:21:05, 0] lib/fault.c:fault_report(37) INTERNAL ERROR: Signal 11 in pid 10426 (3.0.21c-2.1.2-SUSE-SL9.3)...
2008 Apr 03
2
Winbind ignores idmap configuration (3.0.28a)
...VBUF=8192 SO_SNDBUF=8192 smb ports = 445 disable netbios = yes idmap domains = ORGUSERDOMAIN # Winbind RID idmap config ORGUSERDOMAIN: backend = rid idmap config ORGUSERDOMAIN: base_rid = 1000 idmap config ORGUSERDOMAIN: range = 10000-20000 Here is output from winbind: [ 7677]: lookupsid bleh get_cache: Setting MS-RPC methods for domain ORGUSERDOMAIN rpc: query_user sid=bleh error getting user info for sid bleh query_user returned an error Could not query domain ORGUSERDOMAIN SID bleh Thanks in advance, Naadir Jeewa
2013 Mar 28
9
Rock Ridge. Was: Allowed code pages and encodings to write f0.txt through f1.txt?
...et_entry(struct fs_info *fs, char *dir_rec, char *sig, char **data, int *len_data); The function and its subordinates already have more than 300 lines, i fear. And still some necessary features are missing. Some open questions: How do i check for success or failure of get_cache() ? Shall the new code become part of iso9660/iso9660.c or shall i start a new source file iso9660/susp.c ? Would it be ok to extend struct iso_sb_info ? (I should implement non-zero skip length that might be defined by the SUSP SP entry. Probably i find more use for global-ish parameters.) H...
2017 Aug 27
1
[PATCH] ext4: Fix 64bit feature
...t;= groups_count - " "block_group = %d, groups_count = %d", group_num, sbi->s_groups_count); - return NULL; } @@ -49,8 +44,17 @@ ext2_get_group_desc(struct fs_info *fs, uint32_t group_num) desc_block += sbi->s_first_data_block + 1; - desc_data_block = get_cache(fs->fs_dev, desc_block); - return &desc_data_block[desc_index]; + p = get_cache(fs->fs_dev, desc_block); + return p + sbi->s_desc_size * desc_index; +} + +/* + * get the group's descriptor of group_num + */ +static inline const struct ext2_group_desc * +ext2_get_group_desc...
2009 Apr 07
3
CentOS 5.3 samba: getent does not return data from the active directory (ads)
...; Attempting to find an passdb backend to match tdbsam (tdbsam) Found pdb backend tdbsam pdb backend tdbsam has a valid init get_sam_group_entries: Returned 2 local groups get_sam_group_entries: BUILTIN or local domain; enumerating local groups as well get_sam_group_entries: Returned 0 local groups get_cache: Setting ADS methods for domain COMPANY ads: enum_dom_groups NOTES: [root at nagios ~]# uname -a Linux nagios.hq.company.local 2.6.18-128.1.6.el5xen #1 SMP Wed Apr 1 09:53:14 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux [root at nagios ~]# rpm -qa samba krb* nss* nss_db-2.2-35.3 nss_db-2.2-35.3 krb5...
2013 Sep 17
1
S4-Winbind dumping core on password
...10, pid=10086, effective(0, 0), real(0, 0), class=winbind] ../source3/winbindd/winbindd_dual.c:874(account_lockout_policy_handler) ? account_lockout_policy_handler called [2013/09/17 17:52:27.866648,? 5, pid=10086, effective(0, 0), real(0, 0), class=winbind] ../source3/winbindd/winbindd_cache.c:167(get_cache) ? get_cache: Setting ADS methods for domain MYDOMAIN [2013/09/17 17:52:27.866701, 10, pid=10086, effective(0, 0), real(0, 0), class=winbind] ../source3/winbindd/winbindd_cache.c:459(fetch_cache_seqnum) ? fetch_cache_seqnum: success [MYDOMAIN][123469999 @ 1379459999] [2013/09/17 17:52:27.866728, 10...
2005 Jan 23
1
Winbind without netbios
...st bcast] name facdc01.factis.com#20 found. get_dc_list: returning 1 ip addresses in an ordered list get_dc_list: 192.168.1.1:0 name_status_find(FACTIS#1c): netbios is disabled set_dc_type_and_flags: Could not open a connection to FACTIS for PIPE_LSARPC (NT_STATUS_DOMAIN_CONTROLLER_NOT_FOUND) get_cache: Setting MS-RPC methods for domain FACTIS scanning trusted domain list rpc: trusted_domains Using cleartext machine password get_sorted_dc_list: attempting lookup using [lmhosts wins host bcast] name facdc01.factis.com#20 found. get_dc_list: returning 1 ip addresses in an ordered list get_dc...
2006 Feb 22
2
Samba 3.0.21b winbind crash
.../winbindd_cache.c:set_global_winbindd_state_online(2297) set_global_winbindd_state_online: online requested. [2006/02/22 00:30:22, 10] nsswitch/winbindd_cache.c:set_global_winbindd_state_online(2300) set_global_winbindd_state_online: rejecting. [2006/02/22 00:30:22, 5] nsswitch/winbindd_cache.c:get_cache(123) get_cache: Setting ADS methods for domain XXX [2006/02/22 00:30:22, 0] lib/fault.c:fault_report(36) =============================================================== [2006/02/22 00:30:22, 0] lib/fault.c:fault_report(37) INTERNAL ERROR: Signal 11 in pid 27549 (3.0.21b-1.1.2-SUSE-SL9.3) Pl...
2014 May 29
0
[PATCH 2/2] core/fs: Add support for Unix File system 1/2.
...t addr_count = (1 << shft_per_blk); + const uint32_t mask_per_blk = addr_count - 1; + const uint8_t *blk = NULL; + uint32_t index = 0; + + while (levels--) { + if (!start) { + if (nblocks) + *nblocks = addr_count << (levels * shft_per_blk); + return 0; + } + + blk = get_cache(fs->fs_dev, frag_to_blk(fs, start)); + index = (block >> (levels * shft_per_blk)) & mask_per_blk; + start = get_blkaddr(blk, index, UFS_SB(fs)->addr_shift); + } + + return scan_set_nblocks(blk, index, UFS_SB(fs)->addr_shift, + addr_count - index, nblocks); +} + +/* +...
2013 Jul 12
1
[PATCH 001/001] core/fs: Add support to Unix File system 1/2.
...t addr_count = (1 << shft_per_blk); + const uint32_t mask_per_blk = addr_count - 1; + const uint8_t *blk = NULL; + uint32_t index = 0; + + while (levels--) { + if (!start) { + if (nblocks) + *nblocks = addr_count << (levels * shft_per_blk); + return 0; + } + + blk = get_cache(fs->fs_dev, frag_to_blk(fs, start)); + index = (block >> (levels * shft_per_blk)) & mask_per_blk; + start = get_blkaddr(blk, index, UFS_SB(fs)->addr_shift); + } + + return scan_set_nblocks(blk, index, UFS_SB(fs)->addr_shift, + addr_count - index, nblocks); +} + +/* +...
2015 Dec 15
8
[PATCH] xfs: Add support for v3 directories
...lse if (core->di_format == XFS_DINODE_FMT_EXTENTS) { - bmbt_irec_get(&rec, (xfs_bmbt_rec_t *)&core->di_literal_area[0]); + bmbt_irec_get(&rec, XFS_DFORK_PTR(core, XFS_DATA_FORK)); db = fsblock_to_bytes(fs, rec.br_startblock) >> BLOCK_SHIFT(fs); dir_buf = xfs_dir2_dirblks_get_cached(fs, db, rec.br_blockcount); diff --git a/core/fs/xfs/xfs.h b/core/fs/xfs/xfs.h index a8bfa93..65acd17 100644 --- a/core/fs/xfs/xfs.h +++ b/core/fs/xfs/xfs.h @@ -116,6 +116,9 @@ struct xfs_fs_info; #define XFS_DIR2_NULL_DATAPTR ((uint32_t)0) +#define XFS_DIR3_BLOCK_MAGIC 0x58444233 /* XDB3...
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
2014 May 29
3
[PATCH 0/2] UFS1/2 support series
From: Raphael S. Carvalho <raphael.scarv at gmail.com> Wrote the documentation below. I think it would be good to push the doc to the wiki as soon as the UFS support gets merged. Unix Fast File System (UFS/FFS) 1/2 on Syslinux - (usage/install) ----- There is a confusion about the name of this file system, then I decided to contact the author who replied: "The name has always been
2014 May 29
3
[PATCH v2 0/2] UFS1/2 support series
From: Raphael S. Carvalho <raphael.scarv at gmail.com> Change since v1: * Fix bug on dentry structure (thank you specification; btw, sarcasm), and consequently a bug on ufs_readdir. * Add readlink support (applied tests for symlinks whose destionation path were stored in blk pointers and the file itself). * Several improvements. Wrote the documentation below. I think it would be good to
2014 Feb 26
0
samba4 as domain ad member
...inbindd/winbindd_misc.c:426(winbindd_priv_pipe_dir) [ 6628]: request location of privileged pipe [2014/02/26 16:08:12.972556, 3] ../source3/winbindd/winbindd_getpwnam.c:56(winbindd_getpwnam_send) getpwnam pc3369co+nobody [2014/02/26 16:08:12.972599, 5] ../source3/winbindd/winbindd_cache.c:171(get_cache) get_cache: Setting MS-RPC methods for domain DOM_RAT [2014/02/26 16:08:12.972635, 3] ../source3/winbindd/winbindd_msrpc.c:860(msrpc_sequence_number) msrpc_sequence_number: fetch sequence_number for DOM_RAT [2014/02/26 16:08:12.972659, 3] ../source3/winbindd/winbindd_msrpc.c:860(msrpc_sequenc...
2012 Sep 03
1
[GIT-PULL] XFS filesystem driver
...fsize = XFS_DFORK_SIZE(core, fs, XFS_DATA_FORK); + pp = XFS_BMDR_PTR_ADDR(rblock, 1, xfs_bmdr_maxrecs(fsize, 0)); + bno = fsblock_to_bytes(fs, be64_to_cpu(pp[0])) >> BLOCK_SHIFT(fs); + + /* Find the leaf */ + for (;;) { + blk = (xfs_btree_block_t *)get_cache(fs->fs_dev, bno); + if (be16_to_cpu(blk->bb_level) == 0) + break; + + pp = XFS_BMBT_PTR_ADDR(fs, blk, 1, + xfs_bmdr_maxrecs(XFS_INFO(fs)->blocksize, 0)); + bno = fsblock_to_bytes(fs, be64_to_cpu(pp[0])) >> BLOCK_SHIFT...
2016 Jun 06
2
Samba AD member lost domain join after reboot
Hello, After each reboot, my Samba AD member server lost domain join after reboot, I have to re-enter the server in the domain with the "net ads join -U administrator". I use version 4.4.3 of samba. The domain controller is a Samba AD server. After reboot, when I exectute "net ads testjoin" I have: kerberos_kinit_password SMB2$@AD.SAMDOM.LOCAL failed: failed