Craig Rodrigues
5e6b93a014
In nmount() and vfs_donmount(), do not strcmp() the options in the iovec
...
directly. We need to copyin() the strings in the iovec before
we can strcmp() them. Also, when we want to send the errmsg back
to userspace, we need to copyout()/copystr() the string.
Add a small helper function vfs_getopt_pos() which takes in the
name of an option, and returns the array index of the name in the iovec,
or -1 if not found. This allows us to locate an option in
the iovec without actually manipulating the iovec members. directly via
strcmp().
Noticed by: kris on sparc64
2005-11-23 20:51:15 +00:00
..
2005-01-06 23:35:40 +00:00
2005-01-06 23:35:40 +00:00
2005-02-18 00:23:36 +00:00
2005-01-06 23:35:40 +00:00
2005-05-03 10:51:38 +00:00
2005-11-14 22:24:00 +00:00
2005-04-01 20:00:11 +00:00
2005-06-19 02:21:03 +00:00
2005-10-31 15:41:29 +00:00
2005-11-13 13:27:44 +00:00
2005-10-30 02:14:37 +00:00
2005-11-12 10:45:13 +00:00
2005-09-17 22:01:14 +00:00
2005-04-16 12:12:27 +00:00
2005-10-27 17:22:47 +00:00
2004-10-12 18:36:20 +00:00
2005-10-18 18:27:44 +00:00
2005-10-03 06:57:29 +00:00
2005-11-10 13:26:29 +00:00
2005-09-26 14:14:55 +00:00
2005-10-12 17:51:31 +00:00
2005-11-03 04:49:16 +00:00
2005-11-13 13:27:44 +00:00
2005-11-13 13:27:44 +00:00
2005-04-04 21:53:56 +00:00
2005-10-26 15:51:05 +00:00
2005-09-28 00:30:56 +00:00
2005-11-03 04:49:16 +00:00
2005-01-06 23:35:40 +00:00
2005-06-10 23:21:29 +00:00
2005-11-14 19:30:09 +00:00
2005-10-19 20:40:30 +00:00
2005-10-02 10:03:51 +00:00
2005-03-29 08:13:01 +00:00
2005-10-04 14:32:58 +00:00
2005-11-03 13:48:59 +00:00
2005-11-06 16:47:59 +00:00
2005-08-21 18:03:31 +00:00
2005-02-18 22:14:40 +00:00
2005-02-10 12:02:37 +00:00
2005-10-18 18:27:44 +00:00
2005-05-28 14:34:41 +00:00
2005-01-06 23:35:40 +00:00
2005-07-30 09:02:42 +00:00
2005-10-05 10:09:17 +00:00
2005-11-13 13:27:44 +00:00
2005-09-27 18:09:42 +00:00
2005-11-02 21:18:07 +00:00
2005-01-06 23:35:40 +00:00
2005-09-22 15:34:15 +00:00
2005-11-12 04:22:16 +00:00
2005-01-06 23:35:40 +00:00
2005-08-03 01:23:45 +00:00
2005-01-06 23:35:40 +00:00
2005-05-23 23:01:53 +00:00
2004-07-15 08:26:07 +00:00
2005-08-08 21:06:42 +00:00
2005-09-19 22:16:31 +00:00
2005-11-03 04:49:16 +00:00
2005-11-08 09:09:26 +00:00
2005-11-18 16:51:13 +00:00
2005-09-15 20:20:36 +00:00
2005-10-26 06:55:46 +00:00
2005-10-07 13:37:10 +00:00
2005-01-06 23:35:40 +00:00
2005-01-07 02:29:27 +00:00
2005-08-28 05:38:40 +00:00
2005-10-31 19:17:32 +00:00
2005-01-06 23:35:40 +00:00
2005-07-13 20:50:17 +00:00
2005-05-30 15:09:18 +00:00
2005-01-06 23:35:40 +00:00
2005-02-10 12:20:42 +00:00
2005-03-31 22:54:48 +00:00
2004-12-01 23:16:38 +00:00
2005-06-24 00:16:57 +00:00
2005-09-22 01:19:37 +00:00
2005-09-17 22:01:14 +00:00
2005-01-06 23:35:40 +00:00
2005-10-04 22:25:14 +00:00
2005-01-06 23:35:40 +00:00
2005-01-06 23:35:40 +00:00
2005-05-03 10:58:05 +00:00
2005-06-15 23:32:07 +00:00
2005-02-23 19:32:29 +00:00
2005-07-31 10:46:55 +00:00
2005-11-03 21:08:20 +00:00
2005-08-07 02:20:35 +00:00
2005-02-27 22:02:03 +00:00
2005-01-06 23:35:40 +00:00
2005-07-29 13:22:37 +00:00
2005-01-06 23:35:40 +00:00
2005-10-14 19:15:10 +00:00
2005-11-03 21:06:29 +00:00
2005-11-09 16:22:56 +00:00
2005-09-26 08:02:24 +00:00
2005-03-02 21:33:29 +00:00
2005-11-17 08:56:21 +00:00
2005-01-06 23:35:40 +00:00
2005-02-10 12:02:37 +00:00
2005-11-09 07:28:52 +00:00
2005-10-24 21:04:19 +00:00
2005-08-29 11:34:08 +00:00
2005-10-25 19:29:02 +00:00
2005-11-13 13:27:44 +00:00
2005-09-29 19:13:52 +00:00
2005-03-14 06:51:29 +00:00
2005-10-25 19:48:48 +00:00
2005-07-07 18:17:55 +00:00
2005-07-01 16:28:32 +00:00
2005-11-08 23:28:12 +00:00
2005-04-16 18:46:29 +00:00
2005-10-30 02:14:37 +00:00
2005-10-30 02:12:49 +00:00
2005-01-06 23:35:40 +00:00
2005-02-12 01:22:39 +00:00
2005-06-07 05:03:28 +00:00
2005-10-04 16:40:20 +00:00
2005-10-16 20:40:40 +00:00
2004-07-15 20:47:41 +00:00
2005-02-27 21:52:42 +00:00
2005-08-08 19:55:32 +00:00
2005-01-06 23:35:40 +00:00
2005-08-08 19:55:32 +00:00
2005-10-27 16:47:28 +00:00
2005-06-11 11:59:48 +00:00
2005-10-23 07:41:56 +00:00
2005-01-06 23:35:40 +00:00
2005-07-17 14:04:03 +00:00
2005-11-05 19:43:55 +00:00
2005-11-09 13:29:16 +00:00
2005-10-18 11:46:24 +00:00
2005-11-22 01:55:29 +00:00
2005-11-22 01:55:29 +00:00
2005-11-02 13:46:32 +00:00
2005-10-31 21:09:56 +00:00
2005-11-10 16:06:04 +00:00
2005-09-17 22:01:14 +00:00
2005-11-08 23:48:32 +00:00
2005-10-31 15:41:29 +00:00
2005-06-17 01:05:13 +00:00
2005-10-31 15:41:29 +00:00
2005-08-17 06:59:23 +00:00
2005-10-31 15:41:29 +00:00
2005-09-24 23:47:04 +00:00
2005-10-31 15:41:29 +00:00
2005-02-20 23:02:20 +00:00
2005-09-21 19:49:42 +00:00
2005-11-23 20:51:15 +00:00
2005-11-09 22:03:50 +00:00
2005-09-24 23:47:04 +00:00
2005-08-03 04:48:22 +00:00
2005-06-09 20:20:31 +00:00