nxt_fs.h (1580:f1aefdf995d4) nxt_fs.h (1585:e941d77852d1)
1/*
2 * Copyright (C) NGINX, Inc.
3 */
4
5#ifndef _NXT_FS_H_INCLUDED_
6#define _NXT_FS_H_INCLUDED_
7
8

--- 30 unchanged lines hidden (view full) ---

39#ifdef MS_NODEV
40#define NXT_MS_NODEV MS_NODEV
41#else
42#define NXT_MS_NODEV 0
43#endif
44
45
46typedef struct {
1/*
2 * Copyright (C) NGINX, Inc.
3 */
4
5#ifndef _NXT_FS_H_INCLUDED_
6#define _NXT_FS_H_INCLUDED_
7
8

--- 30 unchanged lines hidden (view full) ---

39#ifdef MS_NODEV
40#define NXT_MS_NODEV MS_NODEV
41#else
42#define NXT_MS_NODEV 0
43#endif
44
45
46typedef struct {
47 u_char *src;
48 u_char *dst;
49 u_char *fstype;
50 nxt_int_t flags;
51 u_char *data;
47 u_char *src;
48 u_char *dst;
49 u_char *fstype;
50 nxt_int_t flags;
51 u_char *data;
52 nxt_uint_t builtin; /* 1-bit */
52} nxt_fs_mount_t;
53
54
55nxt_int_t nxt_fs_mkdir_all(const u_char *dir, mode_t mode);
56nxt_int_t nxt_fs_mount(nxt_task_t *task, nxt_fs_mount_t *mnt);
57void nxt_fs_unmount(const u_char *path);
58
59
60#endif /* _NXT_FS_H_INCLUDED_ */
53} nxt_fs_mount_t;
54
55
56nxt_int_t nxt_fs_mkdir_all(const u_char *dir, mode_t mode);
57nxt_int_t nxt_fs_mount(nxt_task_t *task, nxt_fs_mount_t *mnt);
58void nxt_fs_unmount(const u_char *path);
59
60
61#endif /* _NXT_FS_H_INCLUDED_ */