return ret;
}
-static int snapper_gmt_ntimes(vfs_handle_struct *handle,
- const struct smb_filename *smb_fname,
- struct smb_file_time *ft)
-{
- time_t timestamp = 0;
-
- if (!snapper_gmt_strip_snapshot(talloc_tos(), handle,
- smb_fname,
- ×tamp, NULL)) {
- return -1;
- }
- if (timestamp != 0) {
- errno = EROFS;
- return -1;
- }
- return SMB_VFS_NEXT_NTIMES(handle, smb_fname, ft);
-}
-
static int snapper_gmt_fntimes(vfs_handle_struct *handle,
files_struct *fsp,
struct smb_file_time *ft)
.unlinkat_fn = snapper_gmt_unlinkat,
.fchmod_fn = snapper_gmt_fchmod,
.chdir_fn = snapper_gmt_chdir,
- .ntimes_fn = snapper_gmt_ntimes,
.fntimes_fn = snapper_gmt_fntimes,
.readlinkat_fn = snapper_gmt_readlinkat,
.mknodat_fn = snapper_gmt_mknodat,