search for: i_mod

Displaying 20 results from an estimated 101 matches for "i_mod".

Did you mean: i_mode
2011 Feb 13
2
Journal Aborts in VMware ESX (Filesystem Corruption)
...nning a kernel that contains these fixes. My kernel is 2.6.18-194.32.1.el5 on one of the most effected hosts. Does anyone else have experience with similar issues or know of the status of this Bug/KB? I can install, boot, run, and then at some seemingly random moment - init_special_inode: bogus i_mode (50632) init_special_inode: bogus i_mode (137147) init_special_inode: bogus i_mode (172036) init_special_inode: bogus i_mode (175720) init_special_inode: bogus i_mode (72350) init_special_inode: bogus i_mode (174751) EXT3-fs error (device sdb2): ext3_lookup: unlinked inode 19698169 in dir #1969669...
2006 Dec 27
5
Problem with ext3 filesystem
...and copy data on the partition you get the errors again. Also with Kernel 2.6.17.3 I got this problems. A raid volume check with the areca command line tools doesn't find any errors. Errors from dmesg / kernel.log: EXT3-fs: mounted filesystem with ordered data mode. init_special_inode: bogus i_mode (113301) init_special_inode: bogus i_mode (170101) init_special_inode: bogus i_mode (115140) init_special_inode: bogus i_mode (117302) init_special_inode: bogus i_mode (111700) EXT3-fs error (device sda1): ext3_readdir: bad entry in directory #143278260: rec_len % 4 != 0 - offset=0, inode=18575881...
2005 Nov 03
1
filesystem remounted as read only
...Sunblade 100 (sparc). In a few months we have experienced for several times that an ext3 filesystem is remounted as read-only (this is due to the option "errors=remount-ro" in /etc/fstab). Sometimes there is no error in log files but sometimes we see: kernel: init_special_inode: bogus i_mode (3016) kernel: init_special_inode: bogus i_mode (3125) kernel: init_special_inode: bogus i_mode (3144) kernel: init_special_inode: bogus i_mode (3231) kernel: init_special_inode: bogus i_mode (3423) kernel: init_special_inode: bogus i_mode (3452) In the former case (no error in the logs), then ru...
2010 Apr 21
2
[PATCH] ocfs2: Update VFS inode's id info after reflink.
...100644 --- a/fs/ocfs2/refcounttree.c +++ b/fs/ocfs2/refcounttree.c @@ -4083,6 +4083,9 @@ static int ocfs2_complete_reflink(struct inode *s_inode, di->i_attr = s_di->i_attr; if (preserve) { + t_inode->i_uid = s_inode->i_uid; + t_inode->i_gid = s_inode->i_gid; + t_inode->i_mode = s_inode->i_mode; di->i_uid = s_di->i_uid; di->i_gid = s_di->i_gid; di->i_mode = s_di->i_mode; -- 1.6.3.3.334.g916e1.dirty
2006 Oct 25
1
FS corruption? bogus i_mode
...single board computer) which makes the processor vulnerable to bit flips. One such bit flips seems to have corrupted the file system. The debug port on the board (it is a single board computer) had the following message when i think the FS corruption occured : <7>init_special_inode: bogus i_mode (33061) init_special_inode: bogus i_mode (30071) init_special_inode: bogus i_mode (34065) init_special_inode: bogus i_mode (30061) init_special_inode: bogus i_mode (33061) init_special_inode: bogus i_mode (30071) After this happened, directories like bin etc. were corrupted ( I am pasting...
2004 Jun 02
0
[PATCH] kill 2.4 dev_t vs kdev_t crap
...src/inode.c (revision 969) +++ src/inode.c (working copy) @@ -1877,11 +1872,8 @@ case OCFS_ATTRIB_FIFO: case OCFS_ATTRIB_SOCKET: { -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) dev_t dev; -#else - kdev_t kdev; -#endif + if (fe->attribs == OCFS_ATTRIB_CHAR) inode->i_mode |= S_IFCHR; else if (fe->attribs == OCFS_ATTRIB_BLOCK) @@ -1892,18 +1884,8 @@ inode->i_mode |= S_IFSOCK; inode->i_rdev = OCFS_NODEV; -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) - dev = MKDEV (fe->dev_major, fe->dev_minor); -#else - kdev = MKDEV (fe->dev...
2010 Apr 15
1
[PATCH] ocfs2: avoid direct write if we fall back to buffered v2
...&nr_segs, &ocount, - VERIFY_READ); - if (ret) - goto out_dio; + ret = generic_segment_checks(iov, &nr_segs, &ocount, + VERIFY_READ); + if (ret) + goto out_dio; - count = ocount; - ret = generic_write_checks(file, ppos, &count, - S_ISBLK(inode->i_mode)); - if (ret) - goto out_dio; + count = ocount; + ret = generic_write_checks(file, ppos, &count, + S_ISBLK(inode->i_mode)); + if (ret) + goto out_dio; + if (direct_io) { written = generic_file_direct_write(iocb, iov, &nr_segs, *ppos, ppos, count, ocount); if...
2008 Oct 17
3
[PATCH 0/3] ocfs2: add security EA and ACL support v3
Hi, These three patches fix the problems in the version two. And them base on the Tao's patches: ocfs2/xattr: xattr improvement The first patch fix some problem in xattr code. The second patch add security EA support. The third patch add ACL support. Best regards, tiger
2010 Mar 20
2
[PATCH 4/4] btrfs-convert: split into convert/.
...ack_inode_block_group(dst, 0); - btrfs_set_stack_inode_nlink(dst, src->i_links_count); - btrfs_set_stack_inode_uid(dst, src->i_uid | (src->i_uid_high << 16)); - btrfs_set_stack_inode_gid(dst, src->i_gid | (src->i_gid_high << 16)); - btrfs_set_stack_inode_mode(dst, src->i_mode); - btrfs_set_stack_inode_rdev(dst, 0); - btrfs_set_stack_inode_flags(dst, 0); - btrfs_set_stack_timespec_sec(&dst->atime, src->i_atime); - btrfs_set_stack_timespec_nsec(&dst->atime, 0); - btrfs_set_stack_timespec_sec(&dst->ctime, src->i_ctime); - btrfs_set_stack_timespe...
2004 Dec 07
1
symlink permissions
...#define EXT3_ACL_VERSION 0x0001 #define EXT3_ACL_MAX_ENTRIES 32 @@ -79,7 +80,8 @@ static inline int ext3_init_acl(handle_t *handle, struct inode *inode, struct inode *dir) { - inode->i_mode &= ~current->fs->umask; + if (!S_ISLNK(inode->i_mode)) + inode->i_mode &= ~current->fs->umask; return 0; } #endif /* CONFIG_EXT3_FS_POSIX_ACL */
2009 Apr 17
2
E2fsck and large file
How big is a file that e2fsck considers it to be a large file? 814611 blocks used (42.79%) 0 bad blocks 1 large file <----- that Thanks John Nelson
2004 Jun 02
2
[Patch] for bug 81
Index: namei.c =================================================================== --- namei.c (revision 968) +++ namei.c (working copy) @@ -526,7 +526,7 @@ status = -EBUSY; - if (!empty_dir(inode)) { + if ( S_ISDIR (inode->i_mode) && !empty_dir(inode)) { LOG_TRACE_STR ("dentry is not empty, cannot delete"); goto bail; } else if (OCFS_I(inode)->open_hndl_cnt > 0) { bug 81 description: Env: kernel 2.4.20 Dell Pc P4-2.1 512M, 80G Reproduce Step: 1.load_ocfs2...
2006 Dec 29
3
[git patches] ocfs2 fixes
...ause truncate_inode_pages waits diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c index 9fd590b..10953a5 100644 --- a/fs/ocfs2/file.c +++ b/fs/ocfs2/file.c @@ -149,6 +149,17 @@ int ocfs2_should_update_atime(struct ino ((inode->i_sb->s_flags & MS_NODIRATIME) && S_ISDIR(inode->i_mode))) return 0; + /* + * We can be called with no vfsmnt structure - NFSD will + * sometimes do this. + * + * Note that our action here is different than touch_atime() - + * if we can't tell whether this is a noatime mount, then we + * don't know whether to trust the value of s_ati...
2010 Oct 25
2
[PATCH] Btrfs: allow subvol deletion by unprivileged user with -o user_subvol_rm_allowed
...return ret; } +/* copy of check_sticky in fs/namei.c() +* It''s inline, so penalty for filesystems that don''t use sticky bit is +* minimal. +*/ +static inline int btrfs_check_sticky(struct inode *dir, struct inode *inode) +{ + uid_t fsuid = current_fsuid(); + + if (!(dir->i_mode & S_ISVTX)) + return 0; + if (inode->i_uid == fsuid) + return 0; + if (dir->i_uid == fsuid) + return 0; + return !capable(CAP_FOWNER); +} + +/* copy of may_delete in fs/namei.c() + * Check whether we can remove a link victim from directory dir, check + * whether the type of victim...
2006 Aug 26
1
problems with loop
...) { if (tmp[k,1]==sim[n,1] && v[k]<=sim[n,2]){tmp[k,2]=1} if(tmp[k,1]==sim[n,1] && v[k]>sim[n,2]) {tmp[k,2]=0} } } return(tmp) } # The model to be fitted Model_1=function(beta0_mod,mu_mod,k_mod,I_mod) { parms = c(beta0=beta0_mod, mu=mu_mod, k=k_mod) my.atol = 1e-6 times1=c(0,0.002884615,0.003846154,0.005769231,0.009615385,0.01,0.019230769) times2=c(0.028846154,0.038461538,0.057692308, 0.076923077,0.083333333,0.096153846) times3=c(0.115384615,0.125,0.134615385,0.1666...
2009 Jul 11
2
Initialize count in aio_write before generic_write_checks
...at suse.de> diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c index a5887df..5b9c8af 100644 --- a/fs/ocfs2/file.c +++ b/fs/ocfs2/file.c @@ -1841,6 +1841,7 @@ relock: if (ret) goto out_dio; + count = ocount; ret = generic_write_checks(file, ppos, &count, S_ISBLK(inode->i_mode)); if (ret) -- Goldwyn
2010 Feb 17
0
[PATCH 04/19] btrfs: replace inode uid,gid,mode initialization with helper function
...s/inode.c b/fs/btrfs/inode.c index 4deb280..ae4f64c 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -4145,16 +4145,7 @@ static struct inode *btrfs_new_inode(struct btrfs_trans_handle *trans, if (ret != 0) goto fail; - inode->i_uid = current_fsuid(); - - if (dir && (dir->i_mode & S_ISGID)) { - inode->i_gid = dir->i_gid; - if (S_ISDIR(mode)) - mode |= S_ISGID; - } else - inode->i_gid = current_fsgid(); - - inode->i_mode = mode; + inode_init_owner(inode, dir, mode); inode->i_ino = objectid; inode_set_bytes(inode, 0); inode->i_mtime = inode-...
2013 Aug 06
6
[PATCH 0/4] btrfs: out-of-band (aka offline) dedupe v4
Hi, The following series of patches implements in btrfs an ioctl to do out-of-band deduplication of file extents. To be clear, this means that the file system is mounted and running, but the dedupe is not done during file writes, but after the fact when some userspace software initiates a dedupe. The primary patch is loosely based off of one sent by Josef Bacik back in January, 2011.
2001 Mar 23
0
[linux-lvm] EXT2-fs panic (device lvm(58,0)):
...i->i_mtime = 0; diff -ru linux-2.4.3p6/fs/nfs/inode.c linux-2.4.3p6-aed/fs/nfs/inode.c --- linux-2.4.3p6/fs/nfs/inode.c Fri Mar 23 10:54:52 2001 +++ linux-2.4.3p6-aed/fs/nfs/inode.c Fri Mar 23 10:57:06 2001 @@ -98,17 +98,11 @@ inode->i_blksize = inode->i_sb->s_blocksize; inode->i_mode = 0; inode->i_rdev = 0; + /* The inode->u struct is zeroed for us by clear_inode() */ - NFS_FILEID(inode) = 0; - NFS_FSID(inode) = 0; - NFS_FLAGS(inode) = 0; INIT_LIST_HEAD(&inode->u.nfs_i.read); INIT_LIST_HEAD(&inode->u.nfs_i.dirty); INIT_LIST_HEAD(&inode->u.nfs...
2013 Mar 11
1
[PATCH 1/2] ocfs2: Delay inode update transactions after verifying the input flags
...--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/fs/ocfs2/ioctl.c b/fs/ocfs2/ioctl.c index f20edcb..c739c24 100644 --- a/fs/ocfs2/ioctl.c +++ b/fs/ocfs2/ioctl.c @@ -101,13 +101,6 @@ static int ocfs2_set_inode_attr(struct inode *inode, unsigned flags, if (!S_ISDIR(inode->i_mode)) flags &= ~OCFS2_DIRSYNC_FL; - handle = ocfs2_start_trans(osb, OCFS2_INODE_UPDATE_CREDITS); - if (IS_ERR(handle)) { - status = PTR_ERR(handle); - mlog_errno(status); - goto bail_unlock; - } - oldflags = ocfs2_inode->ip_attr; flags = flags & mask; flags |= oldflags & ~...