git-svn-id: https://profuse.googlecode.com/svn/branches/v2@165 aa027e90-d47c-11dd-86d7-074df07e0730

This commit is contained in:
ksherlock 2009-12-13 23:08:58 +00:00
parent 332910a2ab
commit d3b89e328d
2 changed files with 29 additions and 22 deletions

View File

@ -1,5 +1,6 @@
CC = g++
CPPFLAGS += -Wall -O2 -g
LDFLAGS += -L/usr/local/lib -lfuse
newfs_pascal: \
newfs_pascal.o \
@ -11,7 +12,31 @@ newfs_pascal: \
../DiskCopy42Image.o \
../RawDevice.o \
../MappedFile.o \
../Buffer.o \
../Buffer.o
fileman : \
FileMan.o \
Date.o \
File.o \
../Exception.o \
../BlockDevice.o \
../BlockCache.o \
../DiskCopy42Image.o \
../RawDevice.o \
../MappedFile.o \
../Buffer.o
profuse_pascal : \
profuse_pascal.o \
profuse_pascal_ops.o \
Date.o \
File.o \
../Exception.o \
../BlockDevice.o \
../BlockCache.o \
../DiskCopy42Image.o \
../RawDevice.o \
../MappedFile.o \
../Buffer.o

View File

@ -153,6 +153,7 @@ bool make_mount_dir(std::string name, std::string &path)
int main(int argc, char **argv)
{
extern void init_ops(fuse_lowlevel_ops *ops);
struct fuse_args args = FUSE_ARGS_INIT(argc, argv);
@ -164,26 +165,7 @@ int main(int argc, char **argv)
int foreground = false;
int multithread = false;
std::memset(&pascal_ops, 0, sizeof(pascal_ops));
// returns pascal.filekind, text encoding.
pascal_ops.listxattr = pascal_listxattr;
pascal_ops.getxattr = pascal_getxattr;
// volume is a dir.
pascal_ops.opendir = pascal_opendir;
pascal_ops.releasedir = pascal_releasedir;
pascal_ops.readdir = pascal_readdir;
pascal_ops.lookup = pascal_lookup;
pascal_ops.getattr = pascal_getattr;
pascal_ops.open = pascal_open;
pascal_ops.release = pascal_release;
pascal_ops.read = pascal_read;
init_ops(&pascal_ops);
// scan the argument list, looking for the name of the disk image.