Lines 16-22
Link Here
|
16 |
* You should have received a copy of the GNU General Public License |
16 |
* You should have received a copy of the GNU General Public License |
17 |
* along with GRUB. If not, see <http://www.gnu.org/licenses/>. |
17 |
* along with GRUB. If not, see <http://www.gnu.org/licenses/>. |
18 |
*/ |
18 |
*/ |
19 |
#define FUSE_USE_VERSION 26 |
19 |
#define FUSE_USE_VERSION 30 |
20 |
#include <config.h> |
20 |
#include <config.h> |
21 |
#include <grub/types.h> |
21 |
#include <grub/types.h> |
22 |
#include <grub/emu/misc.h> |
22 |
#include <grub/emu/misc.h> |
Lines 34-40
Link Here
|
34 |
#include <grub/command.h> |
34 |
#include <grub/command.h> |
35 |
#include <grub/zfs/zfs.h> |
35 |
#include <grub/zfs/zfs.h> |
36 |
#include <grub/i18n.h> |
36 |
#include <grub/i18n.h> |
37 |
#include <fuse/fuse.h> |
37 |
#include <fuse3/fuse.h> |
38 |
|
38 |
|
39 |
#include <stdio.h> |
39 |
#include <stdio.h> |
40 |
#include <unistd.h> |
40 |
#include <unistd.h> |
Lines 147-153
Link Here
|
147 |
} |
147 |
} |
148 |
|
148 |
|
149 |
static int |
149 |
static int |
150 |
fuse_getattr (const char *path, struct stat *st) |
150 |
fuse_getattr (const char *path, struct stat *st, struct fuse_file_info *fi) |
151 |
{ |
151 |
{ |
152 |
struct fuse_getattr_ctx ctx; |
152 |
struct fuse_getattr_ctx ctx; |
153 |
char *pathname, *path2; |
153 |
char *pathname, *path2; |
Lines 330-342
Link Here
|
330 |
st.st_blocks = (st.st_size + 511) >> 9; |
330 |
st.st_blocks = (st.st_size + 511) >> 9; |
331 |
st.st_atime = st.st_mtime = st.st_ctime |
331 |
st.st_atime = st.st_mtime = st.st_ctime |
332 |
= info->mtimeset ? info->mtime : 0; |
332 |
= info->mtimeset ? info->mtime : 0; |
333 |
ctx->fill (ctx->buf, filename, &st, 0); |
333 |
ctx->fill (ctx->buf, filename, &st, 0, 0); |
334 |
return 0; |
334 |
return 0; |
335 |
} |
335 |
} |
336 |
|
336 |
|
337 |
static int |
337 |
static int |
338 |
fuse_readdir (const char *path, void *buf, |
338 |
fuse_readdir (const char *path, void *buf, |
339 |
fuse_fill_dir_t fill, off_t off, struct fuse_file_info *fi) |
339 |
fuse_fill_dir_t fill, off_t off, struct fuse_file_info *fi, enum fuse_readdir_flags fl) |
340 |
{ |
340 |
{ |
341 |
struct fuse_readdir_ctx ctx = { |
341 |
struct fuse_readdir_ctx ctx = { |
342 |
.path = path, |
342 |
.path = path, |