lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-id: <20080515162135.GB3098@webber.adilger.int>
Date:	Thu, 15 May 2008 09:21:35 -0700
From:	Andreas Dilger <adilger@....com>
To:	Eric Sandeen <sandeen@...hat.com>
Cc:	ext4 development <linux-ext4@...r.kernel.org>,
	Jan Kara <jack@...e.cz>
Subject: Re: barriers off by default?

On May 15, 2008  11:00 -0500, Eric Sandeen wrote:
> ... the fsync change seems sane too...
> 
> @@ -85,7 +86,10 @@ int ext3_sync_file(struct file * file, s
>                         .sync_mode = WB_SYNC_ALL,
>                         .nr_to_write = 0, /* sys_fsync did this */
>                 };
> +               journal_t *journal = EXT3_SB(inode->i_sb)->s_journal;
>                 ret = sync_inode(inode, &wbc);
> +               if (journal && (journal->j_flags & JFS_BARRIER))
> +                       blkdev_issue_flush(inode->i_sb->s_bdev, NULL);
>         }
>  out:
> 
> I assume we need that for some power-plug-pull scenarios ... in fact I
> had just been meaning to do something similar after reading an old
> thread on barriers.  reiserfs & xfs do this already in their sync paths.

Wouldn't it make more sense to add this into the generic do_fsync()
routine?

Cheers, Andreas
--
Andreas Dilger
Sr. Staff Engineer, Lustre Group
Sun Microsystems of Canada, Inc.

--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ