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: <4DABFDF0.9060608@cn.fujitsu.com>
Date:	Mon, 18 Apr 2011 17:01:36 +0800
From:	liubo <liubo2009@...fujitsu.com>
To:	i@...y.li
CC:	ext4 <linux-ext4@...r.kernel.org>,
	Linux Btrfs <linux-btrfs@...r.kernel.org>,
	tytso <tytso@....edu>, Chris Mason <chris.mason@...cle.com>
Subject: Re: [PATCH 1/2] E2fsprogs: use the generic inode flags

On 04/18/2011 04:41 PM, Coly Li wrote:
> On 2011年04月18日 15:37, liubo Wrote:
>> Signed-off-by: Liu Bo <liubo2009@...fujitsu.com>
>> ---
>>  debugfs/htree.c        |    2 +-
>>  e2fsck/pass1.c         |   22 +++++++++++-----------
>>  e2fsck/pass2.c         |    2 +-
>>  e2fsck/pass4.c         |    2 +-
>>  e2fsck/rehash.c        |    4 ++--
>>  ext2ed/inode_com.c     |   14 +++++++-------
>>  lib/e2p/fgetflags.c    |    6 +++---
>>  lib/e2p/fsetflags.c    |    6 +++---
>>  lib/e2p/getflags.c     |    6 +++---
>>  lib/e2p/pf.c           |   34 +++++++++++++++++-----------------
>>  lib/e2p/setflags.c     |    6 +++---
>>  lib/ext2fs/ext2_fs.h   |   44 ++++++++++++++++++++++----------------------
>>  lib/ext2fs/link.c      |    4 ++--
>>  lib/ext2fs/mkjournal.c |    2 +-
>>  misc/chattr.c          |   26 +++++++++++++-------------
>>  misc/tune2fs.c         |    2 +-
>>  16 files changed, 91 insertions(+), 91 deletions(-)
>> [snip]
> 
> Hi Bo,
> 
> Could you please to introduce the motivation of this patch set a little bit more? Thanks.
> 

Hi Li,

Since we want to control COW and compression attribute on a per file or per directory basis,
and find that the generic command "chattr" is the "Mr Right".

Currently only btrfs supports both, of course.

With these patches, we can do the followings:

c: compress
C: nocow

set compress & nocow:

# ./misc/chattr -V +c +C /mnt/btrfs/dir/
chattr 1.41.14 (22-Dec-2010)
Flags of /mnt/btrfs/dir/ set as --------c------C

# ./misc/lsattr -d /mnt/btrfs/dir/
--------c------C /mnt/btrfs/dir/

thanks,
liubo
--
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