aboutsummaryrefslogtreecommitdiffstats
path: root/fs/udf/inode.c
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2008-04-08 14:37:21 -0400
committerJan Kara <jack@suse.cz>2008-04-17 08:29:36 -0400
commitbfb257a5981af805a9394f00f75d3d9f7b611cc0 (patch)
tree2f91577f4c2a706ece3553372c737daf05885375 /fs/udf/inode.c
parentf4bcbbd92ebda971f7c2cd1132b399808ed6cf9b (diff)
udf: Add read-only support for 2.50 UDF media
This patch implements parsing of metadata partitions and reading of Metadata File thus allowing to read UDF 2.50 media. Error resilience is implemented through accessing the Metadata Mirror File in case the data the Metadata File cannot be read. The patch is based on the original patch by Sebastian Manciulea <manciuleas@yahoo.com> and Mircea Fedoreanu <mirceaf_spl@yahoo.com>. Signed-off-by: Sebastian Manciulea <manciuleas@yahoo.com> Signed-off-by: Mircea Fedoreanu <mirceaf_spl@yahoo.com> Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/udf/inode.c')
-rw-r--r--fs/udf/inode.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/fs/udf/inode.c b/fs/udf/inode.c
index c150b6df6261..6e151f170c08 100644
--- a/fs/udf/inode.c
+++ b/fs/udf/inode.c
@@ -1301,6 +1301,15 @@ static void udf_fill_inode(struct inode *inode, struct buffer_head *bh)
1301 inode->i_op = &page_symlink_inode_operations; 1301 inode->i_op = &page_symlink_inode_operations;
1302 inode->i_mode = S_IFLNK | S_IRWXUGO; 1302 inode->i_mode = S_IFLNK | S_IRWXUGO;
1303 break; 1303 break;
1304 case ICBTAG_FILE_TYPE_MAIN:
1305 udf_debug("METADATA FILE-----\n");
1306 break;
1307 case ICBTAG_FILE_TYPE_MIRROR:
1308 udf_debug("METADATA MIRROR FILE-----\n");
1309 break;
1310 case ICBTAG_FILE_TYPE_BITMAP:
1311 udf_debug("METADATA BITMAP FILE-----\n");
1312 break;
1304 default: 1313 default:
1305 printk(KERN_ERR "udf: udf_fill_inode(ino %ld) failed unknown " 1314 printk(KERN_ERR "udf: udf_fill_inode(ino %ld) failed unknown "
1306 "file type=%d\n", inode->i_ino, 1315 "file type=%d\n", inode->i_ino,