Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libxseg
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
itminedu
libxseg
Commits
74a9fe09
Commit
74a9fe09
authored
12 years ago
by
Filippos Giannakos
Browse files
Options
Downloads
Patches
Plain Diff
Make xsegbd use xseg_reply_info struct
parent
2d818823
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
xseg/peers/kernel/xsegbd.c
+2
-1
2 additions, 1 deletion
xseg/peers/kernel/xsegbd.c
xseg/peers/user/mt-vlmcd.c
+3
-2
3 additions, 2 deletions
xseg/peers/user/mt-vlmcd.c
with
5 additions
and
3 deletions
xseg/peers/kernel/xsegbd.c
+
2
−
1
View file @
74a9fe09
...
@@ -515,7 +515,8 @@ int update_dev_sectors_from_request( struct xsegbd_device *xsegbd_dev,
...
@@ -515,7 +515,8 @@ int update_dev_sectors_from_request( struct xsegbd_device *xsegbd_dev,
XSEGLOG
(
"Invalid xsegbd_dev"
);
XSEGLOG
(
"Invalid xsegbd_dev"
);
return
-
ENOENT
;
return
-
ENOENT
;
}
}
xsegbd_dev
->
sectors
=
*
((
uint64_t
*
)
data
)
/
512ULL
;
struct
xseg_reply_info
*
xreply
=
(
struct
xseg_reply_info
*
)
data
;
xsegbd_dev
->
sectors
=
xreply
->
size
/
512ULL
;
return
0
;
return
0
;
}
}
...
...
This diff is collapsed.
Click to expand it.
xseg/peers/user/mt-vlmcd.c
+
3
−
2
View file @
74a9fe09
...
@@ -454,9 +454,10 @@ static int mapping_info(struct peerd *peer, struct peer_req *pr)
...
@@ -454,9 +454,10 @@ static int mapping_info(struct peerd *peer, struct peer_req *pr)
vio
->
err
=
1
;
vio
->
err
=
1
;
}
}
else
{
else
{
struct
xseg_reply_info
*
xinfo
=
(
struct
xseg_reply_info
*
)
xseg_get_data
(
peer
->
xseg
,
vio
->
mreq
);
struct
xseg_reply_info
*
xinfo
=
(
struct
xseg_reply_info
*
)
xseg_get_data
(
peer
->
xseg
,
vio
->
mreq
);
char
*
data
=
xseg_get_data
(
peer
->
xseg
,
pr
->
req
);
char
*
data
=
xseg_get_data
(
peer
->
xseg
,
pr
->
req
);
*
(
uint64_t
*
)
data
=
xinfo
->
size
;
struct
xseg_reply_info
*
xreply
=
(
struct
xseg_reply_info
*
)
data
;
xreply
->
size
=
xinfo
->
size
;
}
}
xseg_put_request
(
peer
->
xseg
,
vio
->
mreq
,
pr
->
portno
);
xseg_put_request
(
peer
->
xseg
,
vio
->
mreq
,
pr
->
portno
);
vio
->
mreq
=
NULL
;
vio
->
mreq
=
NULL
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment