Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
SDB - Self-describing Bus
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
SDB - Self-describing Bus
Commits
d8c65941
Commit
d8c65941
authored
Oct 09, 2014
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sdbfs/lib: fix offset in returned devices when scanning
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
22cc346c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
glue.c
sdbfs/lib/glue.c
+4
-1
No files found.
sdbfs/lib/glue.c
View file @
d8c65941
...
...
@@ -157,7 +157,7 @@ scan:
if
(
newdir
)
{
dev
=
scan_newdir
(
fs
,
depth
);
if
(
dev
)
return
dev
;
goto
out
;
/* Otherwise the directory is not there: no intercon */
if
(
!
depth
)
return
NULL
;
/* no entries at all */
...
...
@@ -175,6 +175,9 @@ scan:
dev
=
fs
->
currentp
=
sdbfs_readentry
(
fs
,
fs
->
this
[
depth
]);
fs
->
this
[
depth
]
+=
sizeof
(
*
dev
);
fs
->
nleft
[
depth
]
--
;
out:
fs
->
f_offset
=
fs
->
base
[
fs
->
depth
]
+
htonll
(
fs
->
currentp
->
sdb_component
.
addr_first
);
return
dev
;
}
...
...
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