From 07d86b0cfde97cfc4faf1dd0f50127859f03d671 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Pierre=20Andr=C3=A9?= Date: Thu, 3 Jun 2010 10:07:27 +0200 Subject: [PATCH] Reenabled compression in root directory --- libntfs-3g/dir.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/libntfs-3g/dir.c b/libntfs-3g/dir.c index ffc0e27b..e5a5534c 100644 --- a/libntfs-3g/dir.c +++ b/libntfs-3g/dir.c @@ -1469,11 +1469,8 @@ static ntfs_inode *__ntfs_create(ntfs_inode *dir_ni, le32 securid, /* * Set compression flag according to parent directory * unless NTFS version < 3.0 or cluster size > 4K - * or parent directory is root directory (this is to - * avoid problems with boot loaders). */ if ((dir_ni->flags & FILE_ATTR_COMPRESSED) - && (dir_ni->mft_no != FILE_root) && (dir_ni->vol->major_ver >= 3) && (dir_ni->vol->cluster_size <= MAX_COMPRESSION_CLUSTER_SIZE) && (S_ISREG(type) || S_ISDIR(type)))