Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
39b07265
Commit
39b07265
authored
Aug 21, 2002
by
Anton Altaparmakov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NTFS: Add ifdef NTFS_RW arround ntfs_truncate and ntfs_setattr.
parent
c10104ad
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
0 deletions
+10
-0
fs/ntfs/file.c
fs/ntfs/file.c
+2
-0
fs/ntfs/inode.c
fs/ntfs/inode.c
+4
-0
fs/ntfs/inode.h
fs/ntfs/inode.h
+4
-0
No files found.
fs/ntfs/file.c
View file @
39b07265
...
...
@@ -64,8 +64,10 @@ struct file_operations ntfs_file_ops = {
};
struct
inode_operations
ntfs_file_inode_ops
=
{
#ifdef NTFS_RW
.
truncate
=
ntfs_truncate
,
.
setattr
=
ntfs_setattr
,
#endif
};
struct
file_operations
ntfs_empty_file_ops
=
{};
...
...
fs/ntfs/inode.c
View file @
39b07265
...
...
@@ -1928,6 +1928,8 @@ int ntfs_show_options(struct seq_file *sf, struct vfsmount *mnt)
return
0
;
}
#ifdef NTFS_RW
/**
* ntfs_truncate - called when the i_size of an ntfs inode is changed
* @vi: inode for which the i_size was changed
...
...
@@ -2017,3 +2019,5 @@ int ntfs_setattr(struct dentry *dentry, struct iattr *attr)
return
err
;
}
#endif
fs/ntfs/inode.h
View file @
39b07265
...
...
@@ -245,9 +245,13 @@ extern void ntfs_put_inode(struct inode *vi);
extern
int
ntfs_show_options
(
struct
seq_file
*
sf
,
struct
vfsmount
*
mnt
);
#ifdef NTFS_RW
extern
void
ntfs_truncate
(
struct
inode
*
vi
);
extern
int
ntfs_setattr
(
struct
dentry
*
dentry
,
struct
iattr
*
attr
);
#endif
#endif
/* _LINUX_NTFS_FS_INODE_H */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment