diff options
author | Tim Deegan <Tim.Deegan@citrix.com> | 2011-01-11 18:13:44 +0000 |
---|---|---|
committer | Tim Deegan <Tim.Deegan@citrix.com> | 2011-01-11 18:13:44 +0000 |
commit | afadd6ac31bbf427036baa0cbab4fe1b147be10d (patch) | |
tree | 7db3e8f0ffd9854ea420c80bdcb3484584277078 /extras/mini-os/include | |
parent | 4e86bc34ad901c578d71b0fdb5e14eb591ef7811 (diff) | |
download | xen-afadd6ac31bbf427036baa0cbab4fe1b147be10d.tar.gz xen-afadd6ac31bbf427036baa0cbab4fe1b147be10d.tar.bz2 xen-afadd6ac31bbf427036baa0cbab4fe1b147be10d.zip |
tools: remove fs-front/fs-back
Its access controls are really not OK. In particular, it's not good for
libxl, which stores per-VM config blobs in a directory that is exported
to all VMs.
This will break stub-qemu save/restore, which is the only user of
fs-front that I'm aware of, but:
- It's currently broken anyway (fs-back isn't run by default and crashes
if it is run manually); and
- Stefano has a plan to plumb qemu save records through a dedicated
console channel instead.
Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'extras/mini-os/include')
-rw-r--r-- | extras/mini-os/include/fbfront.h | 1 | ||||
-rw-r--r-- | extras/mini-os/include/fs.h | 56 |
2 files changed, 1 insertions, 56 deletions
diff --git a/extras/mini-os/include/fbfront.h b/extras/mini-os/include/fbfront.h index 7e29b4c974..d4851a4e98 100644 --- a/extras/mini-os/include/fbfront.h +++ b/extras/mini-os/include/fbfront.h @@ -1,5 +1,6 @@ #include <xen/io/kbdif.h> #include <xen/io/fbif.h> +#include <mini-os/semaphore.h> #include <mini-os/wait.h> /* from <linux/input.h> */ diff --git a/extras/mini-os/include/fs.h b/extras/mini-os/include/fs.h deleted file mode 100644 index 2f91f8d264..0000000000 --- a/extras/mini-os/include/fs.h +++ /dev/null @@ -1,56 +0,0 @@ -#ifndef __FS_H__ -#define __FS_H__ - -#include <xen/io/fsif.h> -#include <mini-os/semaphore.h> -#include <mini-os/types.h> - -#define FSIF_RING_SIZE_ORDER 1 -#define FSIF_RING_SIZE_PAGES (1<<FSIF_RING_SIZE_ORDER) - -struct fs_import -{ - domid_t dom_id; /* dom id of the exporting domain */ - uint16_t export_id; /* export id (exporting dom specific) */ - uint16_t import_id; /* import id (specific to this domain) */ - struct minios_list_head list; /* list of all imports */ - unsigned int nr_entries; /* Number of entries in rings & request - array */ - struct fsif_front_ring ring; /* frontend ring (contains shared ring) */ - uint32_t gnt_refs[FSIF_RING_SIZE_PAGES]; /* grant references to the shared ring */ - evtchn_port_t local_port; /* local event channel port */ - char *backend; /* XenBus location of the backend */ - struct fs_request *requests; /* Table of requests */ - unsigned short *freelist; /* List of free request ids */ - struct semaphore reqs_sem; /* Accounts requests resource */ -}; - -extern struct fs_import *fs_import; - -void init_fs_frontend(void); - -int fs_open(struct fs_import *import, char *file); -int fs_close(struct fs_import *import, int fd); -ssize_t fs_read(struct fs_import *import, int fd, void *buf, - ssize_t len, ssize_t offset); -ssize_t fs_write(struct fs_import *import, int fd, void *buf, - ssize_t len, ssize_t offset); -int fs_stat(struct fs_import *import, - int fd, - struct fsif_stat_response *stat); -int fs_truncate(struct fs_import *import, - int fd, - int64_t length); -int fs_remove(struct fs_import *import, char *file); -int fs_rename(struct fs_import *import, - char *old_file_name, - char *new_file_name); -int fs_create(struct fs_import *import, char *name, - int8_t directory, int32_t mode); -char** fs_list(struct fs_import *import, char *name, - int32_t offset, int32_t *nr_files, int *has_more); -int fs_chmod(struct fs_import *import, int fd, int32_t mode); -int64_t fs_space(struct fs_import *import, char *location); -int fs_sync(struct fs_import *import, int fd); - -#endif |