Magnus Deininger
57c7b4e68e
9p: fix device file handling
...
In v9fs_get_inode(), for block, as well as char devices (in theory),
the function init_special_inode() is called to set up callback functions
for file ops. this function uses the file mode's value to determine whether
to use block or char dev functions. In v9fs_inode_from_fid(), the function
p9mode2unixmode() is used, but for all devices it initially returns S_IFBLK,
then uses v9fs_get_inode() to initialise a new inode, then finally uses
v9fs_stat2inode(), which would determine whether the inode is a block or
character device. However, at that point init_special_inode() had already
decided to use the block device functions, so even if the inode's mode is
turned to a character device, the block functions are still used to operate
on them. The attached patch simply calls init_special_inode() again for devices
after parsing device node data in v9fs_stat2inode() so that the proper functions
are used.
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
2008-10-17 12:44:46 -05:00
..
2008-10-17 12:44:46 -05:00
2008-10-13 10:10:37 -07:00
2008-10-13 10:10:37 -07:00
2008-10-16 11:21:48 -07:00
2008-10-13 10:10:37 -07:00
2008-10-16 11:21:39 -07:00
2008-10-16 11:21:46 -07:00
2008-09-13 14:41:51 -07:00
2008-10-12 13:34:11 +00:00
2008-10-16 09:24:43 -07:00
2008-08-22 11:09:02 -07:00
2008-08-20 15:40:32 -07:00
2008-10-13 09:47:43 +11:00
2008-10-13 10:10:37 -07:00
2008-09-05 09:51:30 -05:00
2008-10-16 11:21:39 -07:00
2008-09-02 23:15:22 +01:00
2008-10-16 11:21:46 -07:00
2008-10-13 10:10:37 -07:00
2008-10-13 10:10:37 -07:00
2008-10-13 10:10:37 -07:00
2008-10-13 10:10:37 -07:00
2008-10-13 10:10:37 -07:00
2008-10-16 11:21:46 -07:00
2008-10-16 11:21:46 -07:00
2008-07-26 20:53:14 -04:00
2008-10-13 10:10:37 -07:00
2008-07-26 20:53:07 -04:00
2008-10-13 10:10:37 -07:00
2008-10-13 10:10:37 -07:00
2008-08-12 00:11:49 +02:00
2008-10-10 22:12:43 -04:00
2008-08-23 12:14:12 -07:00
2008-10-13 10:10:37 -07:00
2008-10-04 17:12:27 -04:00
2008-07-26 12:00:07 -07:00
2008-07-25 10:53:34 -07:00
2008-07-26 20:53:37 -04:00
2008-10-15 15:54:56 -04:00
2008-10-04 17:12:27 -04:00
2008-10-17 02:38:36 +11:00
2008-09-02 19:21:37 -07:00
2008-10-14 18:31:46 -07:00
2008-10-13 10:10:37 -07:00
2008-07-26 12:00:07 -07:00
2008-10-16 11:21:47 -07:00
2008-10-16 11:21:47 -07:00
2008-07-26 12:00:07 -07:00
2008-10-02 15:53:13 -07:00
2008-10-16 11:21:46 -07:00
2008-07-30 14:30:34 -07:00
2008-07-26 20:53:14 -04:00
2008-10-16 09:24:52 -07:00
2008-07-26 12:00:07 -07:00
2008-10-13 10:10:37 -07:00
2008-10-13 10:10:37 -07:00
2008-10-13 10:10:37 -07:00
2008-07-25 10:53:34 -07:00
2008-10-15 10:00:00 -07:00
2008-07-26 20:53:40 -04:00
2008-07-24 10:47:28 -07:00
2008-07-26 20:53:28 -04:00
2008-07-26 20:53:14 -04:00
2008-07-26 12:00:08 -07:00
2008-10-16 11:21:46 -07:00
2008-10-16 15:40:05 +02:00
2008-10-16 11:21:38 -07:00
2008-10-16 11:21:29 -07:00
2008-10-16 11:21:38 -07:00
2008-10-16 11:21:38 -07:00
2008-10-16 11:21:38 -07:00
2008-10-09 08:56:21 +02:00
2008-10-09 08:57:05 +02:00
2008-10-09 10:42:38 +02:00
2008-08-27 09:50:19 +02:00
2008-10-17 02:38:36 +11:00
2008-07-25 10:53:34 -07:00
2008-10-16 11:21:33 -07:00
2008-09-29 07:42:57 -07:00
2008-10-16 11:21:32 -07:00
2008-05-01 13:08:16 -04:00
2008-10-16 11:21:46 -07:00
2008-07-24 10:47:29 -07:00
2008-10-16 11:21:32 -07:00
2008-10-16 12:38:34 -07:00
2008-08-01 11:25:24 -04:00
2008-07-26 20:53:06 -04:00
2008-07-26 20:53:40 -04:00
2008-08-01 11:25:23 -04:00
2008-10-16 11:21:32 -07:00
2008-08-15 08:35:44 -07:00
2008-10-02 15:53:13 -07:00
2008-10-12 11:44:37 -07:00
2008-08-20 15:40:32 -07:00
2008-10-14 16:34:11 -07:00
2008-10-16 11:21:47 -07:00
2008-07-30 09:41:44 -07:00
2008-07-26 12:00:07 -07:00
2008-10-16 11:21:51 -07:00
2008-10-16 11:21:32 -07:00
2008-08-01 11:25:30 -04:00
2008-08-01 11:25:32 -04:00
2008-10-13 09:51:41 -07:00
2008-07-26 20:53:06 -04:00
2008-07-25 10:53:35 -07:00
2008-07-25 10:53:35 -07:00
2008-07-25 10:53:35 -07:00
2008-07-02 15:06:27 -06:00
2008-08-25 01:18:08 -04:00
2008-06-22 12:23:15 -07:00
2008-08-25 01:18:10 -04:00
2008-07-24 10:47:29 -07:00
2008-10-09 14:26:38 -07:00
2008-07-26 20:53:34 -04:00
2008-07-24 10:47:15 -07:00
2008-07-24 10:47:17 -07:00
2008-07-24 10:47:29 -07:00
2008-07-26 20:53:34 -04:00
2008-07-26 20:53:34 -04:00