Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
a7fb1571
Commit
a7fb1571
authored
Mar 12, 2002
by
Ben Fennema
Committed by
Linus Torvalds
Mar 12, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] udf patch for 2.5.7-pre1 (part 1/4)
This patch adds some missing byte swaps needed for big endian archs.
parent
597db13e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
fs/udf/inode.c
fs/udf/inode.c
+5
-5
fs/udf/udf_sb.h
fs/udf/udf_sb.h
+1
-1
No files found.
fs/udf/inode.c
View file @
a7fb1571
...
...
@@ -1053,11 +1053,11 @@ static void udf_fill_inode(struct inode *inode, struct buffer_head *bh)
UDF_I_LENALLOC
(
inode
)
=
0
;
UDF_I_NEXT_ALLOC_BLOCK
(
inode
)
=
0
;
UDF_I_NEXT_ALLOC_GOAL
(
inode
)
=
0
;
if
(
fe
->
descTag
.
tagIdent
==
TID_EXTENDED_FILE_ENTRY
)
if
(
le16_to_cpu
(
fe
->
descTag
.
tagIdent
)
==
TID_EXTENDED_FILE_ENTRY
)
UDF_I_EXTENDED_FE
(
inode
)
=
1
;
else
if
(
fe
->
descTag
.
tagIdent
==
TID_FILE_ENTRY
)
else
if
(
le16_to_cpu
(
fe
->
descTag
.
tagIdent
)
==
TID_FILE_ENTRY
)
UDF_I_EXTENDED_FE
(
inode
)
=
0
;
else
if
(
fe
->
descTag
.
tagIdent
==
TID_UNALLOCATED_SPACE_ENTRY
)
else
if
(
le16_to_cpu
(
fe
->
descTag
.
tagIdent
)
==
TID_UNALLOCATED_SPACE_ENTRY
)
{
UDF_I_LENALLOC
(
inode
)
=
le32_to_cpu
(
...
...
@@ -1341,7 +1341,7 @@ udf_update_inode(struct inode *inode, int do_sync)
UDF_I_NEW_INODE
(
inode
)
=
0
;
}
if
(
fe
->
descTag
.
tagIdent
==
TID_UNALLOCATED_SPACE_ENTRY
)
if
(
le16_to_cpu
(
fe
->
descTag
.
tagIdent
)
==
TID_UNALLOCATED_SPACE_ENTRY
)
{
struct
UnallocatedSpaceEntry
*
use
=
(
struct
UnallocatedSpaceEntry
*
)
bh
->
b_data
;
...
...
@@ -1831,7 +1831,7 @@ Sint8 udf_next_aext(struct inode *inode, lb_addr *bloc, int *extoffset,
}
}
tagIdent
=
((
tag
*
)(
*
bh
)
->
b_data
)
->
tagIdent
;
tagIdent
=
le16_to_cpu
(((
tag
*
)(
*
bh
)
->
b_data
)
->
tagIdent
)
;
if
(
!
memcmp
(
&
UDF_I_LOCATION
(
inode
),
bloc
,
sizeof
(
lb_addr
)))
{
...
...
fs/udf/udf_sb.h
View file @
a7fb1571
...
...
@@ -101,7 +101,7 @@
#define UDF_SB_LASTBLOCK(X) ( UDF_SB(X)->s_lastblock )
#define UDF_SB_LVIDBH(X) ( UDF_SB(X)->s_lvidbh )
#define UDF_SB_LVID(X) ( (struct LogicalVolIntegrityDesc *)UDF_SB_LVIDBH(X)->b_data )
#define UDF_SB_LVIDIU(X) ( (struct LogicalVolIntegrityDescImpUse *)&(UDF_SB_LVID(X)->impUse[
UDF_SB_LVID(X)->numOfPartitions
* 2 * sizeof(Uint32)/sizeof(Uint8)]) )
#define UDF_SB_LVIDIU(X) ( (struct LogicalVolIntegrityDescImpUse *)&(UDF_SB_LVID(X)->impUse[
le32_to_cpu(UDF_SB_LVID(X)->numOfPartitions)
* 2 * sizeof(Uint32)/sizeof(Uint8)]) )
#define UDF_SB_UMASK(X) ( UDF_SB(X)->s_umask )
#define UDF_SB_GID(X) ( UDF_SB(X)->s_gid )
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment