Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 91829
b: refs/heads/master
c: d0db181
h: refs/heads/master
i:
  91827: 09c9f7e
v: v3
  • Loading branch information
Pavel Emelyanov authored and Jan Kara committed Apr 17, 2008
1 parent ad1a76d commit 83ed884
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b80697c14dcacd83ed1b78e26ad93b25ecc52c5e
refs/heads/master: d0db181c072259c21a375b290a4574e5ce6d2b5f
15 changes: 6 additions & 9 deletions trunk/fs/udf/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -1425,7 +1425,7 @@ static noinline int udf_process_sequence(struct super_block *sb, long block,
static int udf_check_valid(struct super_block *sb, int novrs, int silent)
{
long block;
struct udf_sb_info *sbi;
struct udf_sb_info *sbi = UDF_SB(sb);

if (novrs) {
udf_debug("Validity check skipped because of novrs option\n");
Expand All @@ -1434,15 +1434,12 @@ static int udf_check_valid(struct super_block *sb, int novrs, int silent)
/* Check that it is NSR02 compliant */
/* Process any "CD-ROM Volume Descriptor Set" (ECMA 167 2/8.3.1) */
block = udf_vrs(sb, silent);
if (block != -1)
return !block;

sbi = UDF_SB(sb);
udf_debug("Failed to read byte 32768. Assuming open "
"disc. Skipping validity check\n");
if (!sbi->s_last_block)
if (block == -1)
udf_debug("Failed to read byte 32768. Assuming open "
"disc. Skipping validity check\n");
if (block && !sbi->s_last_block)
sbi->s_last_block = udf_get_last_block(sb);
return 0;
return !block;
}

static int udf_load_partition(struct super_block *sb, kernel_lb_addr *fileset)
Expand Down

0 comments on commit 83ed884

Please sign in to comment.