• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  *
3  * Copyright (c) 2008 Jean-Pierre Andre
4  *
5  */
6 
7 /*
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program (in the main directory of the NTFS-3G
20  * distribution in the file COPYING); if not, write to the Free Software
21  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
22  */
23 
24 #ifndef REPARSE_H
25 #define REPARSE_H
26 
27 char *ntfs_make_symlink(ntfs_inode *ni, const char *mnt_point);
28 
29 BOOL ntfs_possible_symlink(ntfs_inode *ni);
30 
31 int ntfs_get_ntfs_reparse_data(ntfs_inode *ni, char *value, size_t size);
32 
33 char *ntfs_get_abslink(ntfs_volume *vol, ntfschar *junction,
34 			int count, const char *mnt_point, BOOL isdir);
35 
36 REPARSE_POINT *ntfs_get_reparse_point(ntfs_inode *ni);
37 
38 int ntfs_reparse_check_wsl(ntfs_inode *ni, const REPARSE_POINT *reparse);
39 
40 int ntfs_reparse_set_wsl_symlink(ntfs_inode *ni,
41 			const ntfschar *target, int target_len);
42 
43 int ntfs_reparse_set_wsl_not_symlink(ntfs_inode *ni, mode_t mode);
44 
45 int ntfs_set_ntfs_reparse_data(ntfs_inode *ni, const char *value,
46 			size_t size, int flags);
47 int ntfs_remove_ntfs_reparse_data(ntfs_inode *ni);
48 
49 int ntfs_delete_reparse_index(ntfs_inode *ni);
50 
51 #endif /* REPARSE_H */
52