Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 231992
b: refs/heads/master
c: 6d6df2e
h: refs/heads/master
v: v3
  • Loading branch information
Diego Ongaro authored and Jeremy Fitzhardinge committed Sep 1, 2010
1 parent e80c0de commit 70507b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 17 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: fb27cfbcbd2865b0e731c4aae47df71778da805e
refs/heads/master: 6d6df2e412297b8047c407b3abcd045a67c96744
18 changes: 2 additions & 16 deletions trunk/drivers/xen/xenfs/xenbus.c
Original file line number Diff line number Diff line change
Expand Up @@ -486,29 +486,15 @@ static ssize_t xenbus_file_write(struct file *filp,
msg_type = u->u.msg.type;

switch (msg_type) {
case XS_TRANSACTION_START:
case XS_TRANSACTION_END:
case XS_DIRECTORY:
case XS_READ:
case XS_GET_PERMS:
case XS_RELEASE:
case XS_GET_DOMAIN_PATH:
case XS_WRITE:
case XS_MKDIR:
case XS_RM:
case XS_SET_PERMS:
/* Send out a transaction */
ret = xenbus_write_transaction(msg_type, u);
break;

case XS_WATCH:
case XS_UNWATCH:
/* (Un)Ask for some path to be watched for changes */
ret = xenbus_write_watch(msg_type, u);
break;

default:
ret = -EINVAL;
/* Send out a transaction */
ret = xenbus_write_transaction(msg_type, u);
break;
}
if (ret != 0)
Expand Down

0 comments on commit 70507b3

Please sign in to comment.