Code Monkey home page Code Monkey logo

kpfs's Introduction

kpfs is a filesystem for accessing kuaipan.cn based on FUSE.
=====================================================
(You can use it in commercial software, but please let me know.)
This application is dedicated to my lovely son (Hean Yu).

How to build kpfs from svn source code?
=====================================================
o download:
  svn checkout http://kpfs.googlecode.com/svn/trunk/ kpfs-read-only

o prepare before configure
  please install depends, on ubuntu e.g.:
  sudo apt-get install gtk-doc-tools libfuse-dev libjson-c-dev libcurl4-nss-dev liboauth-dev

  - liboauth will be used for oauth to kuaipan.cn
    - maybe you should compile liboauth by yourself
    - http://code.google.com/p/kpfs/wiki/why_and_how_to_compile_install_liboauth_0_9_5
  - json-c will be used for parse response of request to kuaipan, and load/save kpfs.conf and kpfs_oauth.json
  - glib will be used for hash table

o configure:
  cd kpfs-read-only
  ./autogen.sh
  ./configure
  (run ./configure --help for more options)

o build:
  make

o install (need root)
  make install

o prepare before run
  please edit kpfs.conf as you wish, e.g.:
{
        "consumer_key": "xc8D2NfL9c53vkrP",
        "consumer_secret": "p7Lo7Q6XBMipbHBw",
        "mount_point": "/tmp/kpfs",
        "oauth_json_file": "/tmp/kpfs_oauth.json",
        "log_path": "/tmp"
}
  "mount_point" is the mount point which you want mount kuaipan to;
  "oauth_json_file" will store the oauth information, then you do not need to input your ID and Password again on webpage.
  "log_path" is the path which will be used in debug mode.

o run:
  mkdir /tmp/kpfs
  cd src/
  ./kpfs -c ../kpfs.conf

How to build and run kpfs on target board.
=====================================================
TODO

Where can I get more information:
=====================================================
DOC:  docs/* 
BLOG: http://blog.csdn.net/mimepp
WIKI: http://code.google.com/p/kpfs/wiki/
Google Group: http://groups.google.com/group/kpfs
Still have problems please send email to [email protected]

kpfs's People

Contributors

yut616 avatar

Watchers

James Cloos avatar

kpfs's Issues

request token will fail on some PC/linux

What steps will reproduce the problem?
1. run kpfs
2. it will show "request token..." then exits
3. no more inforamtion printed

What is the expected output? What do you see instead?
it should "request token" successfully.

some users meet this problem, and now I could reproduce this bug too.

Original issue reported on code.google.com by [email protected] on 18 Oct 2012 at 8:48

gets() function deprecated in gcc

What steps will reproduce the problem?
1. Use gcc-4.7.1 to compile the program

What is the expected output? What do you see instead?

I got the error message

kpfs_oauth.c:219:2: error: 'gets' is deprecated (declared at 
/usr/include/stdio.h:638) [-Werror=deprecated-declarations]


What version of the product are you using? On what operating system?

I am using kpfs v0.1 on Archlinux

Please provide any additional information below.

After change gets() function in kpfs_oauth.c to fgets(), the compilation works. 

Original issue reported on code.google.com by [email protected] on 19 Aug 2012 at 8:49

Build error ,wrong type: curl_off_t

When building kpfs on archlinux,I got this:

kpfs_curl.c: In function `kpfs_curl_range_get':
kpfs_curl.c:89:2: error: format `%lld' expects argument of type `long long 
int', but argument 4 has type 
`curl_off_t' [-Werror=format]
kpfs_curl.c:89:2: error: format `%lld' expects argument of type `long long 
int', but argument 5 has type 
`curl_off_t' [-Werror=format]
kpfs_curl.c:89:2: error: format `%lld' expects argument of type `long long 
int', but argument 4 has type 
`curl_off_t' [-Werror=format]
kpfs_curl.c:89:2: error: format `%lld' expects argument of type `long long 
int', but argument 5 has type 
`curl_off_t' [-Werror=format]

curl --version;uname -a               
curl 7.25.0 (x86_64-unknown-linux-gnu) libcurl/7.25.0 OpenSSL/1.0.1c zlib/1.2.7 
libssh2/1.4.0
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp scp 
sftp smtp smtps telnet tftp 
Features: AsynchDNS IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP 
Linux eyesonly 3.3.4-2-zen-uksm #1 ZEN SMP PREEMPT Sun May 6 16:49:28 CST 2012 
x86_64 GNU/Linux

Original issue reported on code.google.com by [email protected] on 23 May 2012 at 4:14

kpfs will crash due to libcurl-nss.so.4 on ubuntu

error message:
/tmp/kpfs/demo$ ls
ls: cannot open directory .: Transport endpoint is not connected

What steps will reproduce the problem?
1. use kpfs to mount
2. wait for a while, access the mount dir
3. it will show the error message.

What is the expected output? What do you see instead?
it should not crash.
/work/open_src/kpfs.svn/src/.libs/lt-kpfs terminated
======= Backtrace: =========
/lib/i386-linux-gnu/libc.so.6(__fortify_fail+0x45)[0xb74c7dd5]
/lib/i386-linux-gnu/libc.so.6(+0xffd2a)[0xb74c7d2a]
/lib/i386-linux-gnu/libc.so.6(__longjmp_chk+0x4b)[0xb74c7c9b]
/usr/lib/i386-linux-gnu/libcurl-nss.so.4(+0x9f15)[0xb7577f15]
[0xb7741400]
[0xb7741424]


please check attached crash log.



Original issue reported on code.google.com by [email protected] on 28 Sep 2012 at 3:51

Attachments:

[oauth] during fuse mode, liboauth could not get correct nonce and signature

What steps will reproduce the problem?
1. ./src/kpfs -c kpfs.conf
2. browse a folder
3. vi /tmp/kpfs.log, check "oauth_nonce=aaaaaaaaaaaaaaa", this is incorrect.

Then it could not get correct result from API.

sample:
http://openapi.kuaipan.cn/1/metadata/kuaipan/demo?oauth_consumer_key=xc8D2NfL9c5
3vkrP&oauth_nonce=aaaaaaaaaaaaaaa&oauth_signature_method=HMAC-SHA1&oauth_timesta
mp=1332910916&oauth_token=32a7d5efb0d5442e8e32c6d7518e8239&oauth_version=1.0&oau
th_signature=%28null%29

but unit test with API is correct.

Original issue reported on code.google.com by [email protected] on 28 Mar 2012 at 5:06

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.