Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 8971
b: refs/heads/master
c: 4e64c88
h: refs/heads/master
i:
  8969: 0f953a3
  8967: 73d8faf
v: v3
  • Loading branch information
Anton Altaparmakov committed Sep 19, 2005
1 parent 8bc7c47 commit 9c9018c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5c9f6de3b80ca46000bd1b63d892820f9ee32138
refs/heads/master: 4e64c88693fde1b1cbaa4cfecad43a0c3fad354e
12 changes: 8 additions & 4 deletions trunk/fs/ntfs/aops.c
Original file line number Diff line number Diff line change
Expand Up @@ -389,9 +389,11 @@ static int ntfs_readpage(struct file *file, struct page *page)
* Only $DATA attributes can be encrypted and only unnamed $DATA
* attributes can be compressed. Index root can have the flags set but
* this means to create compressed/encrypted files, not that the
* attribute is compressed/encrypted.
* attribute is compressed/encrypted. Note we need to check for
* AT_INDEX_ALLOCATION since this is the type of both directory and
* index inodes.
*/
if (ni->type != AT_INDEX_ROOT) {
if (ni->type != AT_INDEX_ALLOCATION) {
/* If attribute is encrypted, deny access, just like NT4. */
if (NInoEncrypted(ni)) {
BUG_ON(ni->type != AT_DATA);
Expand Down Expand Up @@ -1341,9 +1343,11 @@ static int ntfs_writepage(struct page *page, struct writeback_control *wbc)
* Only $DATA attributes can be encrypted and only unnamed $DATA
* attributes can be compressed. Index root can have the flags set but
* this means to create compressed/encrypted files, not that the
* attribute is compressed/encrypted.
* attribute is compressed/encrypted. Note we need to check for
* AT_INDEX_ALLOCATION since this is the type of both directory and
* index inodes.
*/
if (ni->type != AT_INDEX_ROOT) {
if (ni->type != AT_INDEX_ALLOCATION) {
/* If file is encrypted, deny access, just like NT4. */
if (NInoEncrypted(ni)) {
unlock_page(page);
Expand Down

0 comments on commit 9c9018c

Please sign in to comment.