Dave Chinner
29cad0b3ed
xfs: push corruption -> ESTALE conversion to xfs_nfs_get_inode()
...
In xfs_imap_to_bp(), we convert a -EFSCORRUPTED error to -EINVAL if
we are doing an untrusted lookup. This is done because we need
failed filehandle lookups to report -ESTALE to the caller, and it
does this by converting -EINVAL and -ENOENT errors to -ESTALE.
The squashing of EFSCORRUPTED in imap_to_bp makes it impossible for
for xfs_iget(UNTRUSTED) callers to determine the difference between
"inode does not exist" and "corruption detected during lookup". We
realy need that distinction in places calling xfS_iget(UNTRUSTED),
so move the filehandle error case handling all the way out to
xfs_nfs_get_inode() where it is needed.
Signed-off-by: Dave Chinner <dchinner@redhat.com >
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com >
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com >
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com >
2018-06-06 08:10:26 -07:00
..
2018-06-06 08:10:26 -07:00
2018-06-01 09:00:16 -07:00
2018-05-15 18:12:50 -07:00
2018-03-11 20:27:55 -07:00
2018-03-11 20:27:55 -07:00
2018-05-30 08:03:15 -07:00
2013-05-07 18:45:36 -05:00
2017-10-11 10:21:06 -07:00
2017-06-27 18:23:21 -07:00
2018-06-01 18:37:33 -07:00
2018-03-30 11:34:55 -07:00
2017-10-26 15:38:22 -07:00
2018-06-04 18:25:05 -07:00
2017-10-26 15:38:26 -07:00
2018-05-10 08:56:41 -07:00
2017-11-27 09:34:08 -08:00
2018-05-15 17:57:05 -07:00
2017-10-26 15:38:20 -07:00
2018-05-10 08:56:46 -07:00
2018-01-29 07:27:22 -08:00
2018-05-09 10:04:00 -07:00
2018-05-15 18:12:51 -07:00
2018-01-17 21:00:46 -08:00
2018-04-10 22:39:04 -07:00
2017-11-02 11:10:55 +01:00
2018-05-10 08:56:47 -07:00
2013-12-13 11:34:08 +11:00
2018-05-15 17:56:59 -07:00
2018-05-15 17:56:59 -07:00
2018-06-04 18:25:05 -07:00
2018-06-04 18:25:05 -07:00
2018-06-06 08:10:26 -07:00
2018-03-14 11:12:52 -07:00
2017-02-09 10:50:25 -08:00
2018-05-10 08:56:46 -07:00
2016-08-03 11:23:49 +10:00
2018-05-29 10:46:03 -07:00
2018-04-09 10:23:42 -07:00
2014-04-23 07:11:52 +10:00
2018-06-01 09:00:16 -07:00
2017-04-03 15:18:17 -07:00
2018-05-15 18:12:51 -07:00
2018-01-08 10:54:48 -08:00
2018-05-15 17:57:05 -07:00
2018-05-15 17:57:05 -07:00
2018-05-15 17:57:05 -07:00
2018-05-10 08:56:46 -07:00
2013-08-12 16:10:35 -05:00
2018-05-10 08:56:41 -07:00
2017-11-01 15:03:16 -07:00
2018-06-04 18:25:05 -07:00
2018-05-15 17:57:05 -07:00
2018-01-08 10:54:48 -08:00
2017-06-19 14:11:33 -07:00
2018-06-04 14:45:29 -07:00
2017-11-09 15:50:29 -08:00
2018-05-10 08:56:48 -07:00
2017-09-26 10:55:19 -07:00
2018-05-31 08:58:33 -07:00
2016-09-22 10:56:19 +02:00
2017-10-26 15:38:27 -07:00
2017-10-26 15:38:23 -07:00
2018-01-12 14:09:08 -08:00
2018-05-10 08:56:46 -07:00
2017-10-25 11:01:08 +02:00
2018-06-04 18:25:05 -07:00
2018-05-10 08:56:46 -07:00
2018-04-09 10:23:42 -07:00
2017-06-19 08:59:10 -07:00
2017-11-02 11:10:55 +01:00
2018-06-06 08:10:26 -07:00
2018-03-23 18:05:06 -07:00
2018-04-09 10:23:39 -07:00
2018-04-09 10:23:39 -07:00
2017-10-11 10:21:06 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-05-10 08:56:48 -07:00
2018-05-10 08:56:48 -07:00
2018-05-15 17:57:05 -07:00
2018-05-10 08:56:47 -07:00
2018-05-30 08:03:15 -07:00
2018-05-10 08:56:47 -07:00
2018-05-10 08:56:41 -07:00
2017-11-27 09:34:08 -08:00
2018-05-10 08:56:48 -07:00
2017-06-19 14:11:35 -07:00
2018-05-10 08:56:41 -07:00
2016-09-19 10:24:27 +10:00
2017-09-01 10:55:30 -07:00
2018-06-01 09:00:16 -07:00
2017-06-19 14:11:33 -07:00
2017-06-19 14:11:33 -07:00
2018-05-31 08:58:34 -07:00
2018-02-01 21:06:15 -08:00
2018-05-10 08:56:46 -07:00
2017-06-20 10:45:22 -07:00
2016-10-05 16:26:28 -07:00
2018-05-15 17:57:05 -07:00
2018-05-15 17:57:05 -07:00
2016-05-18 10:58:51 +10:00
2017-12-08 17:51:05 -08:00
2018-05-10 08:56:46 -07:00
2018-05-10 08:56:46 -07:00
2018-05-10 08:56:46 -07:00
2018-05-10 08:56:46 -07:00
2018-05-10 08:56:46 -07:00
2018-05-15 17:57:05 -07:00
2018-05-10 08:56:46 -07:00
2018-05-10 08:56:46 -07:00
2018-05-10 08:56:46 -07:00
2018-05-10 08:56:46 -07:00
2018-05-10 08:56:46 -07:00
2018-05-10 08:56:46 -07:00
2016-12-05 12:32:14 +11:00
2017-11-06 11:53:58 -08:00