Martin Kaiser
99530e42e1
nfs: keep server info for remounts
...
[ Upstream commit b322bf9e983addedff0894c55e92d58f4d16d92a ]
With newer kernels that use fs_context for nfs mounts, remounts fail with
-EINVAL.
$ mount -t nfs -o nolock 10.0.0.1:/tmp/test /mnt/test/
$ mount -t nfs -o remount /mnt/test/
mount: mounting 10.0.0.1:/tmp/test on /mnt/test failed: Invalid argument
For remounts, the nfs server address and port are populated by
nfs_init_fs_context and later overwritten with 0x00 bytes by
nfs23_parse_monolithic. The remount then fails as the server address is
invalid.
Fix this by not overwriting nfs server info in nfs23_parse_monolithic if
we're doing a remount.
Fixes: f2aedb713c ("NFS: Add fs_context support.")
Signed-off-by: Martin Kaiser <martin@kaiser.cx >
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2024-06-12 11:03:50 +02:00
..
2024-05-17 11:56:09 +02:00
2023-02-01 08:34:08 +01:00
2024-03-26 18:20:57 -04:00
2023-09-23 11:10:59 +02:00
2024-05-17 11:56:23 +02:00
2024-03-01 13:26:32 +01:00
2024-03-15 10:48:13 -04:00
2023-03-10 09:33:52 +01:00
2023-03-10 09:34:09 +01:00
2023-05-11 23:03:00 +09:00
2024-01-20 11:50:04 +01:00
2024-02-16 19:06:29 +01:00
2024-06-12 11:03:04 +02:00
2024-03-06 14:45:11 +00:00
2024-03-15 10:48:16 -04:00
2023-11-28 17:07:00 +00:00
2024-03-06 14:45:15 +00:00
2023-09-23 11:11:05 +02:00
2024-06-12 11:03:31 +02:00
2024-06-12 11:03:42 +02:00
2024-04-03 15:19:27 +02:00
2024-01-31 16:17:04 -08:00
2024-04-03 15:19:30 +02:00
2024-06-12 11:03:10 +02:00
2023-03-10 09:34:07 +01:00
2023-05-24 17:32:34 +01:00
2024-05-17 11:55:51 +02:00
2024-05-25 16:21:31 +02:00
2024-04-13 13:05:06 +02:00
2024-01-20 11:50:07 +01:00
2024-06-12 11:03:06 +02:00
2024-02-05 20:12:48 +00:00
2024-02-05 20:12:58 +00:00
2024-03-06 14:45:16 +00:00
2023-10-06 14:56:32 +02:00
2024-06-12 11:03:50 +02:00
2024-05-25 16:21:30 +02:00
2024-06-12 11:03:04 +02:00
2023-09-13 09:42:22 +02:00
2023-07-19 16:22:05 +02:00
2024-06-12 11:03:46 +02:00
2023-09-13 09:42:33 +02:00
2024-06-12 11:03:03 +02:00
2024-04-13 13:05:08 +02:00
2024-06-12 11:03:39 +02:00
2024-03-15 10:48:22 -04:00
2024-04-13 13:04:57 +02:00
2024-03-26 18:20:47 -04:00
2023-07-19 16:22:11 +02:00
2023-09-13 09:42:27 +02:00
2024-06-12 11:02:57 +02:00
2023-02-22 12:59:50 +01:00
2024-04-27 17:07:16 +02:00
2024-04-13 13:05:05 +02:00
2023-09-23 11:11:12 +02:00
2024-04-03 15:19:27 +02:00
2023-09-13 09:43:05 +02:00
2024-04-10 16:28:25 +02:00
2023-09-13 09:43:03 +02:00
2024-05-25 16:21:34 +02:00
2024-02-23 09:12:45 +01:00
2024-04-03 15:19:42 +02:00
2023-09-23 11:11:10 +02:00
2023-10-06 14:57:06 +02:00
2023-07-01 13:16:25 +02:00
2022-12-31 13:32:57 +01:00
2022-12-31 13:32:41 +01:00
2023-02-22 12:59:50 +01:00
2024-02-05 20:12:54 +00:00
2023-09-13 09:42:27 +02:00
2024-06-12 11:03:03 +02:00
2024-04-03 15:19:48 +02:00
2024-03-26 18:20:28 -04:00
2024-03-26 18:20:27 -04:00
2023-08-11 12:08:23 +02:00
2023-09-13 09:42:28 +02:00
2023-01-07 11:11:59 +01:00
2023-11-20 11:51:50 +01:00
2024-01-10 17:10:32 +01:00
2023-08-30 16:11:10 +02:00
2024-01-31 16:17:00 -08:00
2023-06-28 11:12:40 +02:00
2024-03-06 14:45:16 +00:00
2023-06-28 11:12:40 +02:00
2023-01-07 11:12:02 +01:00
2024-01-31 16:17:02 -08:00
2024-02-23 09:12:46 +01:00
2023-08-11 12:08:22 +02:00
2024-04-10 16:28:30 +02:00
2023-01-04 11:29:01 +01:00
2023-02-09 11:28:04 +01:00
2024-03-26 18:20:28 -04:00
2023-02-09 11:28:04 +01:00
2024-01-10 17:10:31 +01:00
2023-05-24 17:32:51 +01:00
2023-08-11 12:08:24 +02:00
2023-04-26 14:28:37 +02:00