xref: /unit/src/nxt_fs.h (revision 1489:4a3ec07f4b19)
1 /*
2  * Copyright (C) NGINX, Inc.
3  */
4 
5 #ifndef _NXT_FS_H_INCLUDED_
6 #define _NXT_FS_H_INCLUDED_
7 
8 
9 #ifdef MS_BIND
10 #define NXT_MS_BIND MS_BIND
11 #else
12 #define NXT_MS_BIND 0
13 #endif
14 
15 #ifdef MS_REC
16 #define NXT_MS_REC MS_BIND
17 #else
18 #define NXT_MS_REC 0
19 #endif
20 
21 
22 typedef struct {
23     u_char     *src;
24     u_char     *dst;
25     u_char     *fstype;
26     nxt_int_t  flags;
27     u_char     *data;
28 } nxt_fs_mount_t;
29 
30 
31 nxt_int_t nxt_fs_mkdir_all(const u_char *dir, mode_t mode);
32 nxt_int_t nxt_fs_mount(nxt_task_t *task, nxt_fs_mount_t *mnt);
33 void nxt_fs_unmount(const u_char *path);
34 
35 
36 #endif  /* _NXT_FS_H_INCLUDED_ */
37