[new] fuse (= Filesystem in Userspace )

This seems to be main dependency for gmailfs and it also looks like very useful for other usage.
# Contributor: Lukas Konarovsky, http://daeltar.org, <[email protected]>
pkgname=fuse
pkgver=1.3
pkgrel=1
pkgdesc="Filesystem in Userspace (FUSE)"
url="http://sourceforge.net/projects/avf"
source=(http://belnet.dl.sourceforge.net/sourceforge/avf/fuse-1.3.tar.gz)
build() {
cd $startdir/src/$pkgname-$pkgver
./configure --prefix=/usr
make || return 1
make DESTDIR=$startdir/pkg install
# vim: ts=2 sw=2 et ft=sh

some tipps for your work:
- if you post PKGBUILD's in the forum, use [code] instead of
, so that the code is formated in monospace chars (easier to read)
- you can use make without the absolute path, as it is (should be always) in the PATH ("make" instead of "/usr/bin/make" is ok)
- no depends=() ? (i don't know this software, but it maybe needs other software to link or use while running)
hope this helps
The impossible missions are the only ones which succeed.

Similar Messages

  • 50.5 Fuser Error with new fuser installed

    Our HP Color LazerJet CP6015 Printer stopped working because of a "50.5 Fuser Error". We ordering and installing a new Image Fuser Kit (220v) but it still shows the same error message. Anyone have any ideas how to fix the problem?

    Hi,
    You might have more luck on the bussines forum, this is the consumer forum and your unit is considered a bussiness unit, so the bussiness forum might be a place where you get a better answer.
    Find it with the link below.
    http://h30499.www3.hp.com/
    Say "Thanks" by clicking the Kudos Star in the post that helped you.
    Although I work for HP my posts and replies are my own
    Please mark the post that solves your problem as "Accepted Solution"

  • New install - Filesystem check failed

    I did a new installation of Arch today, and in a random fit of thrillseeking I used syslinux instead of grub for the bootloader. The installation said it was successful, but after restarting Arch failed to boot. The error was in the filesystem check.
    /dev/sda5 is mounted. e2fsck: Cannot continue, aborting.
    /dev/sda5 is where /usr is mounted.
    Also, it complained that / is mounted read-only.
    First question is, how is /usr already mounted? I searched the forums and the most promising thing I found involved mkinitcpio; apparently it tries to take a shortcut and mount /usr early and somehow this happens before the filesystems are fscked. However, I added the shutdown and fsck hooks to /etc/mkinitcpio.conf which are supposed to fix this (https://wiki.archlinux.org/index.php/Mk … _partition), and nothing changed. So I'm out of ideas.
    Second, why is / read-only? fstab only has the 'defaults' option listed for /. syslinux.cfg had the line 'APPEND root=/dev/sda2 ro' so I figured it was probably read-only because of that, but I tried booting both with the ro gone and with it changed to rw, but nothing changed there either, it still gives the message that / is mounted read-only.
    My first inclination was just to disable the filesystem check in fstab, but that seemed like a cheap workaround. I'd really like to understand what the problem is.

    karol wrote:Did you rebuilt the kernel image after you added the hooks?
    No, I didn't realize I had to but that makes sense. Do I use the ABS, like this: https://wiki.archlinux.org/index.php/Ke … ild_System ? Do I need to do anything special to enable the hooks?

  • New V245 Filesystem Issue - I/O error

    I just purchased a V245 with Solaris 10 preloaded. I fired my new server up to experience a filesystem issue and it will not boot normally. I don't see a mount directory for /export/home, /var and where is slice 5? Please help.
    WARNING - Unable to repair the /var filesystem. Run fsck
    manually (fsck -F ufs /dev/rdsk/c0t0d0s5).
    # fsck -Y -F ufs /dev/rdsk/c0t0d0s5
    Can't open /dev/rdsk/c0t0d0s5: I/O error
    # cat /etc/vfstab
    #device device mount FS fsck mount mount
    #to mount to fsck point type pass at boot options
    /devices - /devices devfs - no -
    /proc - /proc proc - no -
    ctfs - /system/contract ctfs - no -
    objfs - /system/object objfs - no -
    fd - /dev/fd fd - no -
    swap - /tmp tmpfs - yes -
    /dev/dsk/c0t0d0s0 /dev/rdsk/c0t0d0s0 / ufs 1 no -
    /dev/dsk/c0t0d0s5 /dev/rdsk/c0t0d0s5 /var ufs 1 yes -
    /swapfile - - swap - no -
    bash-3.00# prtvtoc /dev/rdsk/c0t0d0s0
    * /dev/rdsk/c0t0d0s0 partition map
    * Dimensions:
    * 512 bytes/sector
    * 424 sectors/track
    * 24 tracks/cylinder
    * 10176 sectors/cylinder
    * 14089 cylinders
    * 14087 accessible cylinders
    * Flags:
    * 1: unmountable
    * 10: read-only
    * Unallocated space:
    * First Sector Last
    * Sector Count Sector
    * 26681472 12292608 38974079
    * First Sector Last
    * Partition Tag Flags Sector Count Sector Mount Directory
    0 0 00 4151808 22529664 26681471 /
    1 0 00 50880 4100928 4151807
    2 5 00 0 143349312 143349311
    3 0 00 38974080 104375232 143349311
    7 0 00 0 50880 50879
    Edited by: xc0de on Sep 14, 2007 4:06 PM

    Were you able to resolve this issue? I have the same machine -- V245, Solaris 10 -- which is exhibiting the same behaviour.

  • I just put a new fuser kit into my copier (5550 series). now, when i print the sheet is pink!

    An hp5550 series laserjet printer was just donated to our office.  It needed a fuser kit and I just replaced it.  Now the sheets are pink when copies are made.  What's going on?

    Can you provide more information regarding the sheet being pink?
    For example:
    If you print a single page document with a small amount of color, when the page comes out of the printer it has a pink hue in all areas that are supposed to be white.
    If I understand correctly, what you are seeing is not related to changing the fuser.  There are a couple of things that you can try to help reduce a pink hue which is also called Background Color:
    This web-site references some Print Quality Troubleshooting tips:
    http://h20584.www2.hp.com/hpgt/guides/select?lang=en&cc=us&prodTypeId=18972&prodSeriesId=409994
    One of the sections within that is regarding troublshooting image formation issues:
    http://h20584.www2.hp.com/hpgt/content/cdoc?docId=emr_na-c00230735&lang=en&cc=US&interviewId=b555952...
    One easy thing to try is Calibrating the Printer.
    In the user manual:
    http://bizsupport1.austin.hp.com/bc/docs/support/SupportManual/c00134099/c00134099.pdf
    Search for: "Calibrating The Printer".  I would recommend you do a Full Calibration.
    I would also recommend that you print a "Supplies Status Page" by entering the menus, selecting "Information" then select "Print Supplies Status Page".  Check the status of the Magenta Print Cartridge and the Image Transfer Kit.  Given that you had to replace your Fuser Kit, I would expect that the Image Transfer Kit may be getting to the point where it will need to be replaced.
    You can find information regarding "HP Color LaserJet Printers - How to Determine if a Cartridge is at the End of its Designed Cartridge Life" at the following like:
    http://h20584.www2.hp.com/hpgt/content/cdoc?docId=c02587538&lang=en&cc=US&interviewId=edc8de12-bf15-...
    Kazman
    I am an HP Employee
    Say Thanks by clicking the Kudos Star in the post that helped you.
    Please mark the post that solves your problem as Accepted Solution

  • Resets for new fuser and transfer units

    We have an HP laserjet 4500N on which I changed the transfer unit, the fuser and the drum. After I turned the printer back on, it showed only the drum life to have been reset to 100%, the fuser and transfer units stayed at the 54% and 35% values that were on before the change.  I tried to go to the Resets Menu to reset these two values to 100% but the only options I get are Reset Memory or Reset Factory Settings.  How can I do correct this?
    Thanks

    If anyone else is having this issue I found this info on another site:
    http://forum.notebookreview.com/hp-pavilion-notebo​oks/634581-hp-dv6-graphics-card-confusion-clear-up​...

  • FUSE Preprocessing Filesystem

    EDIT: Updated code, does everything I need it to for now, still maybe a little unclean, but much better than it was.
    A while ago I was thinking up ways to pre-process files such as .Xdefaults when they were read, to allow per machine configs and other such things (I think it turns out that Xdefaults actually supports this anyway), and I thought the coolest way to do this would be to use a FUSE filesystem.
    Originally I was going to use the standard cpp program to handle the processing, but I've changed this to use gpp for the time being since it seems to work better for this kind of thing. You can have files with stuff like
    #if 0
    Not going to be printed
    #else
    This is printed
    #exec date
    #endif
    Compile with
    gcc -o prepfs prepfs.c -lfuse -D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSION=26
    Run with
    ./prepfs mountpoint -b basedir -pp preprocessor (eg, gpp -x "%s")
    Your mountpoint will simply mirror whatever basedir is set to, but run all files through the preprocessor before outputting them.
    prepfs.c
    PrepFS, by HashBox
    Modified from "Hello World" example, original notice below:
    FUSE: Filesystem in Userspace
    Copyright (C) 2001-2005 Miklos Szeredi <[email protected]>
    This program can be distributed under the terms of the GNU GPL.
    #include <fuse.h>
    #include <fuse/fuse_opt.h>
    #include <stdlib.h>
    #include <stdio.h>
    #include <stddef.h>
    #include <string.h>
    #include <dirent.h>
    struct options {
    char *base_dir;
    char *pp_path;
    } options;
    static struct fuse_opt prepfs_opts[] =
    { "-b %s", offsetof(struct options, base_dir), 0},
    { "-pp %s", offsetof(struct options, pp_path), 0}
    static char *get_extended_path(const char *path)
    char *extended_path = malloc(sizeof(char) * PATH_MAX + 1);
    extended_path[0] = '\0';
    strncat(extended_path, options.base_dir, PATH_MAX);
    strncat(extended_path, path, PATH_MAX);
    return extended_path;
    static int prepfs_getattr(const char *path, struct stat *stbuf)
    char *expath = get_extended_path(path);
    stat(expath, stbuf); /* Return unmodified stat, although filesize will be wrong */
    free(expath);
    return 0;
    static int prepfs_readdir(const char *path, void *buf, fuse_fill_dir_t filler, off_t offset, struct fuse_file_info *fi)
    char *expath = get_extended_path(path);
    DIR *dirp = opendir(expath);
    free(expath);
    struct dirent *ent;
    while ((ent = readdir(dirp)) != NULL) {
    filler(buf, ent->d_name, NULL, 0);
    closedir(dirp);
    return 0;
    static int prepfs_read(const char *path, char *buf, size_t size, off_t offset, struct fuse_file_info *fi)
    char *expath = get_extended_path(path);
    char pp_temp[PATH_MAX + strlen(options.pp_path)];
    sprintf(pp_temp, options.pp_path, expath);
    free(expath);
    size = 0;
    FILE *fp = popen(pp_temp, "r");
    while (!feof(fp)) {
    fread(buf + size, sizeof(char), 1, fp);
    size += 1;
    pclose(fp);
    size -= 1;
    return size;
    static struct fuse_operations prepfs_oper = {
    .getattr = prepfs_getattr,
    .readdir = prepfs_readdir,
    .read = prepfs_read,
    int main(int argc, char *argv[])
    int ret;
    struct fuse_args args = FUSE_ARGS_INIT(argc, argv);
    memset(&options, 0, sizeof(struct options));
    if (fuse_opt_parse(&args, &options, prepfs_opts, 0) == -1) {
    return -1;
    if (!options.base_dir || !options.pp_path) {
    fprintf(stderr, "Usage: %s mountpoint -b basedir -pp preprocessor (eg, gpp -x \"%%s\")\n", argv[0]);
    return -1;
    ret = fuse_main(args.argc, args.argv, &prepfs_oper, NULL);
    fuse_opt_free_args(&args);
    return ret;
    Last edited by HashBox (2009-06-29 09:18:57)

    EDIT: Updated code, does everything I need it to for now, still maybe a little unclean, but much better than it was.
    A while ago I was thinking up ways to pre-process files such as .Xdefaults when they were read, to allow per machine configs and other such things (I think it turns out that Xdefaults actually supports this anyway), and I thought the coolest way to do this would be to use a FUSE filesystem.
    Originally I was going to use the standard cpp program to handle the processing, but I've changed this to use gpp for the time being since it seems to work better for this kind of thing. You can have files with stuff like
    #if 0
    Not going to be printed
    #else
    This is printed
    #exec date
    #endif
    Compile with
    gcc -o prepfs prepfs.c -lfuse -D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSION=26
    Run with
    ./prepfs mountpoint -b basedir -pp preprocessor (eg, gpp -x "%s")
    Your mountpoint will simply mirror whatever basedir is set to, but run all files through the preprocessor before outputting them.
    prepfs.c
    PrepFS, by HashBox
    Modified from "Hello World" example, original notice below:
    FUSE: Filesystem in Userspace
    Copyright (C) 2001-2005 Miklos Szeredi <[email protected]>
    This program can be distributed under the terms of the GNU GPL.
    #include <fuse.h>
    #include <fuse/fuse_opt.h>
    #include <stdlib.h>
    #include <stdio.h>
    #include <stddef.h>
    #include <string.h>
    #include <dirent.h>
    struct options {
    char *base_dir;
    char *pp_path;
    } options;
    static struct fuse_opt prepfs_opts[] =
    { "-b %s", offsetof(struct options, base_dir), 0},
    { "-pp %s", offsetof(struct options, pp_path), 0}
    static char *get_extended_path(const char *path)
    char *extended_path = malloc(sizeof(char) * PATH_MAX + 1);
    extended_path[0] = '\0';
    strncat(extended_path, options.base_dir, PATH_MAX);
    strncat(extended_path, path, PATH_MAX);
    return extended_path;
    static int prepfs_getattr(const char *path, struct stat *stbuf)
    char *expath = get_extended_path(path);
    stat(expath, stbuf); /* Return unmodified stat, although filesize will be wrong */
    free(expath);
    return 0;
    static int prepfs_readdir(const char *path, void *buf, fuse_fill_dir_t filler, off_t offset, struct fuse_file_info *fi)
    char *expath = get_extended_path(path);
    DIR *dirp = opendir(expath);
    free(expath);
    struct dirent *ent;
    while ((ent = readdir(dirp)) != NULL) {
    filler(buf, ent->d_name, NULL, 0);
    closedir(dirp);
    return 0;
    static int prepfs_read(const char *path, char *buf, size_t size, off_t offset, struct fuse_file_info *fi)
    char *expath = get_extended_path(path);
    char pp_temp[PATH_MAX + strlen(options.pp_path)];
    sprintf(pp_temp, options.pp_path, expath);
    free(expath);
    size = 0;
    FILE *fp = popen(pp_temp, "r");
    while (!feof(fp)) {
    fread(buf + size, sizeof(char), 1, fp);
    size += 1;
    pclose(fp);
    size -= 1;
    return size;
    static struct fuse_operations prepfs_oper = {
    .getattr = prepfs_getattr,
    .readdir = prepfs_readdir,
    .read = prepfs_read,
    int main(int argc, char *argv[])
    int ret;
    struct fuse_args args = FUSE_ARGS_INIT(argc, argv);
    memset(&options, 0, sizeof(struct options));
    if (fuse_opt_parse(&args, &options, prepfs_opts, 0) == -1) {
    return -1;
    if (!options.base_dir || !options.pp_path) {
    fprintf(stderr, "Usage: %s mountpoint -b basedir -pp preprocessor (eg, gpp -x \"%%s\")\n", argv[0]);
    return -1;
    ret = fuse_main(args.argc, args.argv, &prepfs_oper, NULL);
    fuse_opt_free_args(&args);
    return ret;
    Last edited by HashBox (2009-06-29 09:18:57)

  • Fuse 1.3

    i'm trying to make a package for fuse (filesystem in userspace) but i'm having troubles compiling it.  here's my preliminary PKGBUILD
    pkgname=fuse
    pkgver=1.3
    pkgrel=1
    pkgdesc="Utility that enables one to mount filesystems in userspace"
    url="http://sourceforge.net/projects/avf"
    license="GPL-2"
    depends=('binutils')
    source=(http://dl.sourceforge.net/sourceforge/avf/$pkgname-$pkgver.tar.gz)
    build() {
    cd $startdir/src/$pkgname-$pkgver
    ./configure --prefix=/usr
    make || return 1
    make prefix=$startdir/pkg/usr install
    pretty straightforward.  here's the error i'm getting.
    config.status: include/config.h is unchanged
    config.status: executing depfiles commands
    Making all in include
    make[1]: Entering directory `/var/abs/local/fuse/src/fuse-1.3/include'
    make all-recursive
    make[2]: Entering directory `/var/abs/local/fuse/src/fuse-1.3/include'
    Making all in linux
    make[3]: Entering directory `/var/abs/local/fuse/src/fuse-1.3/include/linux'
    make[3]: Nothing to be done for `all'.
    make[3]: Leaving directory `/var/abs/local/fuse/src/fuse-1.3/include/linux'
    make[3]: Entering directory `/var/abs/local/fuse/src/fuse-1.3/include'
    make[3]: Leaving directory `/var/abs/local/fuse/src/fuse-1.3/include'
    make[2]: Leaving directory `/var/abs/local/fuse/src/fuse-1.3/include'
    make[1]: Leaving directory `/var/abs/local/fuse/src/fuse-1.3/include'
    Making all in patch
    make[1]: Entering directory `/var/abs/local/fuse/src/fuse-1.3/patch'
    make[1]: Nothing to be done for `all'.
    make[1]: Leaving directory `/var/abs/local/fuse/src/fuse-1.3/patch'
    Making all in kernel
    make[1]: Entering directory `/var/abs/local/fuse/src/fuse-1.3/kernel'
    make -C /usr/src/linux-2.6.6-love4-lokean1 SUBDIRS=/var/abs/local/fuse/src/fuse-1.3/kernel modules
    make[2]: Entering directory `/usr/src/linux-2.6.6-love4-lokean1'
    CC [M] /var/abs/local/fuse/src/fuse-1.3/kernel/dev.o
    In file included from include/linux/linkage.h:4,
    from include/linux/kernel.h:11,
    from /var/abs/local/fuse/src/fuse-1.3/kernel/fuse_i.h:33,
    from /var/abs/local/fuse/src/fuse-1.3/kernel/dev.c:9:
    include/linux/config.h:4:28: linux/autoconf.h: No such file or directory
    In file included from include/linux/prefetch.h:14,
    from include/linux/list.h:7,
    from include/linux/thread_info.h:10,
    from include/linux/spinlock.h:12,
    from include/linux/capability.h:45,
    from include/linux/sched.h:7,
    from include/linux/module.h:10,
    from /var/abs/local/fuse/src/fuse-1.3/kernel/fuse_i.h:34,
    from /var/abs/local/fuse/src/fuse-1.3/kernel/dev.c:9:
    include/asm/processor.h:67: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
    include/asm/processor.h:67: error: requested alignment is not a constant
    In file included from include/linux/sched.h:11,
    from include/linux/module.h:10,
    from /var/abs/local/fuse/src/fuse-1.3/kernel/fuse_i.h:34,
    from /var/abs/local/fuse/src/fuse-1.3/kernel/dev.c:9:
    include/linux/timex.h:81:3: #error You lose.
    In file included from include/linux/timex.h:186,
    from include/linux/sched.h:11,
    from include/linux/module.h:10,
    from /var/abs/local/fuse/src/fuse-1.3/kernel/fuse_i.h:34,
    from /var/abs/local/fuse/src/fuse-1.3/kernel/dev.c:9:
    include/linux/time.h:145:31: division by zero in #if
    include/linux/time.h:145:31: division by zero in #if
    include/linux/time.h:145:31: division by zero in #if
    include/linux/time.h:145:31: division by zero in #if
    include/linux/time.h:145:31: division by zero in #if
    include/linux/time.h:145:31: division by zero in #if
    include/linux/time.h:145:31: division by zero in #if
    include/linux/time.h:145:31: division by zero in #if
    include/linux/time.h:145:31: division by zero in #if
    include/linux/time.h:145:31: division by zero in #if
    include/linux/time.h:145:31: division by zero in #if
    include/linux/time.h:145:31: division by zero in #if
    include/linux/time.h:145:31: division by zero in #if
    include/linux/time.h:145:31: division by zero in #if
    include/linux/time.h:145:31: division by zero in #if
    include/linux/time.h:145:31: division by zero in #if
    include/linux/time.h:189:30: division by zero in #if
    In file included from include/linux/timex.h:186,
    from include/linux/sched.h:11,
    from include/linux/module.h:10,
    from /var/abs/local/fuse/src/fuse-1.3/kernel/fuse_i.h:34,
    from /var/abs/local/fuse/src/fuse-1.3/kernel/dev.c:9:
    include/linux/time.h: In function `jiffies_to_msecs':
    include/linux/time.h:194: error: `CONFIG_HZ' undeclared (first use in this function)
    include/linux/time.h:194: error: (Each undeclared identifier is reported only once
    include/linux/time.h:194: error: for each function it appears in.)
    include/linux/time.h:199:30: division by zero in #if
    include/linux/time.h: In function `msecs_to_jiffies':
    include/linux/time.h:204: error: `CONFIG_HZ' undeclared (first use in this function)
    include/linux/time.h: In function `timespec_to_jiffies':
    include/linux/time.h:223: error: `CONFIG_HZ' undeclared (first use in this function)
    include/linux/time.h:229: error: `SHIFT_HZ' undeclared (first use in this function)
    include/linux/time.h: In function `jiffies_to_timespec':
    include/linux/time.h:242: error: `CONFIG_HZ' undeclared (first use in this function)
    include/linux/time.h: In function `timeval_to_jiffies':
    include/linux/time.h:264: error: `CONFIG_HZ' undeclared (first use in this function)
    include/linux/time.h:268: error: `SHIFT_HZ' undeclared (first use in this function)
    include/linux/time.h: In function `jiffies_to_timeval':
    include/linux/time.h:280: error: `CONFIG_HZ' undeclared (first use in this function)
    In file included from include/linux/module.h:23,
    from /var/abs/local/fuse/src/fuse-1.3/kernel/fuse_i.h:34,
    from /var/abs/local/fuse/src/fuse-1.3/kernel/dev.c:9:
    include/asm/module.h:54:2: #error unknown processor family
    In file included from include/linux/mm.h:232,
    from include/linux/poll.h:10,
    from /var/abs/local/fuse/src/fuse-1.3/kernel/dev.c:11:
    include/linux/page-flags.h: At top level:
    include/linux/page-flags.h:137: error: requested alignment is not a constant
    /var/abs/local/fuse/src/fuse-1.3/kernel/dev.c: In function `fuse_dev_init':
    /var/abs/local/fuse/src/fuse-1.3/kernel/dev.c:629: error: `proc_root_fs' undeclared (first use in this function)
    make[3]: *** [/var/abs/local/fuse/src/fuse-1.3/kernel/dev.o] Error 1
    make[2]: *** [/var/abs/local/fuse/src/fuse-1.3/kernel] Error 2
    make[2]: Leaving directory `/usr/src/linux-2.6.6-love4-lokean1'
    make[1]: *** [all-spec] Error 2
    make[1]: Leaving directory `/var/abs/local/fuse/src/fuse-1.3/kernel'
    make: *** [all-recursive] Error 1
    ==> ERROR: Build Failed. Aborting...
    i believe it has to do with my kernel.  i'm going to test another kernel, but it will take me some time because i have to apply a reiser4 patch, or i might try the livecd.  either way, if someone could test this in the meantime, it would be much appreciated.

    i've been unable to get a proper reiser4 patch that works and i'm also having troubles downloading a working version of the amlug live cd.  has anyone else tried to compile fuse?  it would be much appreciated if someone would just try to makepkg the PKGBUILD, and report whether or not it compiles.  thanx!

  • [Solved] Error compiling kernel 2.6.36.2 patched with MOSIX

    Hi, I'm a new user in this forum!
    I'm trying to compile manually the kernel version with MOSIX-2.29.0.1 for computer clustering. But When I try to compile it with make command there is an error:
    In file included from arch/x86/kernel/signal.c:17:0:
    include/linux/tracehook.h: In function ‘tracehook_unsafe_exec’:
    include/linux/tracehook.h:164:40: error: ‘struct task_struct’ has no member named ‘mflags’
    arch/x86/kernel/signal.c: In function ‘do_notify_resume’:
    arch/x86/kernel/signal.c:884:44: error: ‘struct task_struct’ has no member named ‘parent_waiting’
    make[2]: *** [arch/x86/kernel/signal.o] Error 1
    make[1]: *** [arch/x86/kernel] Error 2
    make: *** [arch/x86] Error 2
    I have launched make menuconfig and I have configured the kernel in this way:
    Configure the following option:
          CONFIG_FUSE_FS
            File systems  --->  FUSE (Filesystem in Userspace) support
          CONFIG_SYSVIPC
            General setup  --->  System V IPC
       But make sure that the following is NOT CONFIGURED:
       CONFIG_HEADERS_CHECK"
            'Kernel hacking' ---> 'Run 'make headers_check' when building vmlinux'
    What is the problem?
    Last edited by andychaser (2011-02-17 12:37:50)

    I've solved the issue, infact there was a problem with the patch. Now I am able to compile the kernel.
    Thanks anyway!

  • Best use of 24GB SSD ExpressCard? ln? JFFS2 or YAFFS? MacFUSE/Fuse4X?

    Ok, so I just got a 24GB SSD ExpressCard ("Wintec FileMate SolidGO" MLC flash drive;  Max. Sustained Sequential Read: 115 MB/s & Write: 65 MB/s. ) for my MacBook Pro (MB133LL/A).
    I'm hesitant to put the whole OS on it, because I've read that many small writes to the disk are slow and hazardous to the life of SSDs.  Also trying to evaluate the pros and cons of having /tmp and/or /var (including /var/vm) on the SSD...  I guess my frequently used apps are the most important thing to have on the SSD.
    I would guess that if I set up the appropriate symbolic links using ln(1), the OS, apps, user homes and data will work fine spread out over 2 disks, but perhaps there are some gotchas I'm not aware of, or lessons someone's learned by trying this before me...
    Wear leveling helps, and, well the Macs sold with SSDs work... and this SSD comes with a 2 year warranty, so maybe I shouldn't worry...  I think this SSD doesn't have TRIM support,
    There are detailed FAQs and product specs on Wintec's site, but at least some of the info is wrong, so I'm here seeking other opinions on how best to use it. For example, I have no trouble sleeping and waking it and do so often; I didn't have to enable hibernate mode.  The specs suggest that booting off the SSD is a good idea, but the troubeshooting/FAQ don't seem to agree with that at all.
    What would be fantastic is if I could set up the computer to work like the Seagate Momentus XT 500 GB 2.5 Inch Solid State Hybrid Drive - in other words, the computer would figure out what files were good candidates for caching on the SSD,  I wasn't able to find any software that does that, but I'm guessing it's something that could be developed using FUSE(Filesystem in Userspace) implementation such as Fuse4X.  It would keep track of accesses and use the SSD for files that were read often, and other optimizations that flash filesystems like JFFS2 and YAFFS have.

    I saw someone post somewhere that things had worked fine for them doing this using symbolic links, so I tried that.  It was not a good experience.  Most of the apps would run, but the Dock would treat them as different apps, as would Little Snitch.  I want to have a more stable setup - one that will keep working (after a reboot) if I have to remove the SSD to use another ExpressCard (like for eSATA) or to save battery or because it's failed.
    I logged the output of df -h as well as of mount  while a bootable 10.7 Lion DVD was running, which looks like a good method to copy, though I'm not sure what the OS was doing to make it so; IIRC there was no fstab file.  Here are the output logs:
    Filesystem     Size   Used  Avail Capacity  Mounted on
    /dev/disk2s3  1.4Gi  1.1Gi  361Mi    75%    /
    devfs         126Ki  126Ki    0Bi   100%    /dev
    /dev/disk4    512Ki  144Ki  368Ki    29%    /Volumes
    /dev/disk5    512Ki  140Ki  372Ki    28%    /private/var/tmp
    /dev/disk6    512Ki  156Ki  356Ki    31%    /private/var/run
    /dev/disk7    512Ki  144Ki  368Ki    29%    /System/Installation
    /dev/disk8    512Ki  252Ki  260Ki    50%    /private/var/db
    /dev/disk9    6.0Mi  1.9Mi  4.1Mi    32%    /private/var/folders
    /dev/disk10   2.0Mi  224Ki  1.8Mi    11%    /private/var/root/Library
    /dev/disk11   1.0Mi  148Ki  876Ki    15%    /Library/ColorSync/Profiles/Displays
    /dev/disk12   512Ki  160Ki  352Ki    32%    /Library/Preferences
    /dev/disk13   512Ki  152Ki  360Ki    30%    /Library/Preferences/SystemConfiguration
    /dev/disk14   1.0Mi  140Ki  884Ki    14%    /Library/Keychains
    /dev/disk0s2  465Gi  364Gi  101Gi    79%    /Volumes/HD
    /dev/disk3s3   45Gi   34Gi   11Gi    75%    /Volumes/FastestContent
    /dev/disk1s3  3.9Gi  3.5Gi  317Mi    92%    /Volumes/Image Volume
    /dev/disk2s3 on / (hfs, local, read-only)
    devfs on /dev (devfs, local, nobrowse)
    /dev/disk4 on /Volumes (hfs, local, union, nobrowse)
    /dev/disk5 on /private/var/tmp (hfs, local, union, nobrowse)
    /dev/disk6 on /private/var/run (hfs, local, union, nobrowse)
    /dev/disk7 on /System/Installation (hfs, local, union, nobrowse)
    /dev/disk8 on /private/var/db (hfs, local, union, nobrowse)
    /dev/disk9 on /private/var/folders (hfs, local, union, nobrowse)
    /dev/disk10 on /private/var/root/Library (hfs, local, union, nobrowse)
    /dev/disk11 on /Library/ColorSync/Profiles/Displays (hfs, local, union, nobrowse)
    /dev/disk12 on /Library/Preferences (hfs, local, union, nobrowse)
    /dev/disk13 on /Library/Preferences/SystemConfiguration (hfs, local, union, nobrowse)
    /dev/disk14 on /Library/Keychains (hfs, local, union, nobrowse)
    /dev/disk0s2 on /Volumes/HD (hfs, local, journaled)
    /dev/disk3s3 on /Volumes/FastestContent (hfs, local, journaled)
    /dev/disk1s3 on /Volumes/Image Volume (hfs, local, read-only)
    It's good to see that there's a way to do it that is likely to work well, as Apple uses it.
    Bluehz' comments I noted above are from 2003, but are still more impressive/thorough than anything recent I've seen!  BlueHz's post incudes a link to good scripts for handling mount points for swap and applications (of Oct 11, '02 vintage • Contributed by: Numbski) that I'm planning to use/adapt.

  • [S]bad perf b/c (lack of fine-tuning)/(wrong governor)/(redundancy)?

    hiho,
    my hardinfo benchmark results:
    CPU Blowfish
    CPU Blowfish
    This Machine 800 MHz 7,602
    Intel(R) Celeron(R) M processor 1.50GHz (null) 26.1876862
    PowerPC 740/750 (280.00MHz) (null) 172.816713
    CPU CryptoHash
    CPU CryptoHash
    This Machine 800 MHz 174,422
    CPU Fibonacci
    CPU Fibonacci
    This Machine 800 MHz 2,989
    Intel(R) Celeron(R) M processor 1.50GHz (null) 8.1375674
    PowerPC 740/750 (280.00MHz) (null) 58.07682
    CPU N-Queens
    CPU N-Queens
    This Machine 800 MHz 8,889
    FPU FFT
    FPU FFT
    This Machine 800 MHz 3,354
    FPU Raytracing
    FPU Raytracing
    This Machine 800 MHz 5,728
    Intel(R) Celeron(R) M processor 1.50GHz (null) 40.8816714
    PowerPC 740/750 (280.00MHz) (null) 161.312647
    system:
    Processor 2x Intel(R) Core(TM)2 Duo CPU P8600 @ 2.40GHz
    Memory 3081MB (692MB used)
    Operating System Arch Linux
    User Name sepp (Sebastian)
    Date/Time Mo 05 Dez 2011 18:39:33 CET
    Display
    Resolution 1680x1050 pixels
    OpenGL Renderer Unknown
    X11 Vendor The X.Org Foundation
    Multimedia
    Audio Adapter HDA-Intel - HDA Intel
    Input Devices
    AT Translated Set 2 keyboard
    Sleep Button
    Lid Switch
    Power Button
    Video Bus
    PC Speaker
    HP WMI hotkeys
    ST LIS3LV02DL Accelerometer
    SynPS/2 Synaptics TouchPad
    CKF7063
    HDA Digital PCBeep
    Logitech USB Receiver
    Logitech USB Receiver
    Printers
    No printers found
    SCSI Disks
    ATA TOSHIBA MK3252GS
    TSSTcorp CDDVDW TS-L633M
    Operating System
    Version
    Kernel Linux 3.1.4-1-ARCH (x86_64)
    Compiled #1 SMP PREEMPT Tue Nov 29 08:55:45 CET 2011
    C Library GNU C Library version 2.14.1 (stable)
    Default C Compiler Unknown
    Distribution Arch Linux
    Current Session
    Computer Name alnb
    User Name sepp (Sebastian)
    Home Directory /home/sepp
    Desktop Environment Unknown (Window Manager: Mutter)
    Misc
    Uptime 1 hour, 37 minutes
    Load Average 0,00, 0,00, 0,00
    Kernel Modules
    Loaded Modules
    cryptd Software async crypto daemon
    aes_x86_64 Rijndael (AES) Cipher Algorithm, asm optimized
    aes_generic Rijndael (AES) Cipher Algorithm
    ipv6 IPv6 protocol stack for Linux
    fuse Filesystem in Userspace
    microcode Microcode Update Driver
    coretemp Intel Core temperature monitor
    snd_hda_codec_analog Analog Devices HD-audio codec
    uvcvideo USB Video Class driver
    videodev Device registrar for Video4Linux drivers v2
    media Device node registration for media drivers
    v4l2_compat_ioctl32
    radeon ATI Radeon
    joydev Joystick device interfaces
    snd_hda_intel Intel HDA driver
    arc4 ARC4 Cipher Algorithm
    ttm TTM memory manager subsystem (for DRM device)
    iwlagn Intel(R) Wireless WiFi Link AGN driver for Linux
    snd_hda_codec HDA codec core
    snd_hwdep Hardware dependent layer
    snd_pcm Midlevel PCM code for ALSA.
    iTCO_wdt Intel TCO WatchDog Timer Driver
    hp_accel Glue between LIS3LV02Dx and HP ACPI BIOS and support for disk protection LED.
    lis3lv02d ST LIS3LV02Dx three-axis digital accelerometer driver
    hp_wmi HP laptop WMI hotkeys driver
    drm_kms_helper DRM KMS helper
    drm DRM shared core routines
    iTCO_vendor_support Intel TCO Vendor Specific WatchDog Timer Driver Support
    evdev Input driver event char devices
    psmouse PS/2 mouse driver
    sparse_keymap Generic support for sparse keymaps
    mac80211 IEEE 802.11 subsystem
    cfg80211 wireless configuration support
    sky2 Marvell Yukon 2 Gigabit Ethernet driver
    i2c_algo_bit I2C-Bus bit-banging algorithm
    rfkill RF switch support
    i2c_core I2C-Bus main module
    snd_timer ALSA timer interface
    snd Advanced Linux Sound Architecture driver for soundcards.
    soundcore Core sound module
    serio_raw Raw serio driver
    intel_agp
    container ACPI container driver
    intel_gtt
    pcspkr PC Speaker beeper driver
    wmi ACPI-WMI Mapping Driver
    snd_page_alloc Memory allocator for ALSA system.
    input_polldev Generic implementation of a polled input device
    video ACPI Video Driver
    fan ACPI Fan Driver
    thermal ACPI Thermal Zone Driver
    battery ACPI Battery Driver
    ac ACPI AC Adapter Driver
    button ACPI Button Driver
    cpufreq_powersave CPUfreq policy governor 'powersave'
    cpufreq_ondemand 'cpufreq_ondemand' - A dynamic cpufreq governor for Low Latency Frequency Transition capable processors
    acpi_cpufreq ACPI Processor P-States Driver
    freq_table CPUfreq frequency table helpers
    processor ACPI Processor Driver
    mperf
    usbhid USB HID core driver
    hid
    vfat VFAT filesystem support
    fat
    ext4 Fourth Extended Filesystem
    jbd2
    crc16 CRC16 calculations
    ext2 Second Extended Filesystem
    mbcache Meta block cache (for extended attributes)
    uhci_hcd USB Universal Host Controller Interface driver
    ehci_hcd USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    usbcore
    sr_mod SCSI cdrom (sr) driver
    cdrom
    sd_mod SCSI disk (sd) driver
    ahci AHCI SATA low-level driver
    libahci Common AHCI SATA low-level routines
    libata Library module for ATA devices
    scsi_mod SCSI core
    Boots
    Boots
    Mon Dec 5 1177:0 33..1.4-1-ARCH|-
    Mon Dec 5 1144:4 33..1.4-1-ARCH|-
    Sun Dec 4 1199:2 33..1.4-1-ARCH|-
    Sun Dec 4 1199:2 33..1.4-1-ARCH|-
    Sun Dec 4 1177:4 33..1.4-1-ARCH|-
    Sun Dec 4 1144:1 33..1.4-1-ARCH|-
    Sun Dec 4 1144:0 33..1.4-1-ARCH|-
    Sun Dec 4 1133:4 33..1.4-1-ARCH|-
    Sat Dec 3 1122:3 33..1.4-1-ARCH|-
    Languages
    Available Languages
    de_DE German locale for Germany
    de_DE@euro German locale for Germany with Euro
    de_DE.iso88591 German locale for Germany
    de_DE.iso885915 German locale for Germany with Euro
    de_DE.utf8 German locale for Germany
    deutsch German locale for Germany
    en_US English locale for the USA
    en_US.iso88591 English locale for the USA
    en_US.utf8 English locale for the USA
    Filesystems
    Mounted File Systems
    udev /dev 0,00 % (10,0 MiB of 10,0 MiB)
    /run /run 2,70 % (9,7 MiB of 10,0 MiB)
    /dev/sda3 / 29,00 % (16,3 GiB of 22,9 GiB)
    shm /dev/shm 0,04 % (1,5 GiB of 1,5 GiB)
    tmpfs /tmp 0,00 % (1,5 GiB of 1,5 GiB)
    /dev/sda4 /home 5,69 % (251,6 GiB of 266,7 GiB)
    /dev/sda1 /boot 25,22 % (68,1 MiB of 91,0 MiB)
    Display
    Display
    Resolution 1680x1050 pixels
    Vendor The X.Org Foundation
    Version 1.11.2
    Monitors
    Monitor 0 1680x1050 pixels
    rc.conf:
    MODULES=(acpi-cpufreq cpufreq_ondemand cpufreq_powersave)
    DAEMONS=(!hwclock syslog-ng @network @netfs @crond @dbus gdm @cpufreq @acpid laptop-mode @sensors @microcode)
    its strange that the cpu has only 800MHz during the bench.
    my ondemand threshold: 95
    does the bench cause less then 95%?
    Last edited by b0b2 (2011-12-07 14:17:41)

    sonoran wrote:
    While I ran the benchmarks gkrellm showed my cores running at 3200MHz,
    yet the hardinfo results never reported higher than 2500MHz.
    This on a 3x AMD AthlonII X3 450, modules powernow_k8 and cpufreq_ondemand.
    Stepping is 800-2000-2500-3200. Threshold is the default 95%.
    I don't think hardinfo is reporting cpu frequency correctly.
    Aha. Check out this bug from the hardinfo site:
    http://bugs.hardinfo.org/showreport.php?bugid=48
    This is a known bug. If you're using cpufreq with the ondemand governor, then the tests will be performed at 3GHz on your machine, as they're quite CPU intensive and the governor will automatically pump out more juice to the CPU.
    However, HardInfo only measures the CPU speed once, and that's the speed it displays on the benchmark window.
    Oh thank you for the answer, good Sir!
    Can you answer the 3rd question?: do you really need laptopmodetools, acpi, cpufreq & acpid? or could i deinst one of them?

  • Oracle database reorganization (moving datafiles to new filesystems)

    Hi All,
    We are planning to perform a database reorganization (moving datafiles to new filesystems) in our Production environment using SAPDBA.
    We had noticed in our recent performance reports that few datafiles in some of the SAPDATAxx filesystems are having higher I/O contention and are putting heavy load on those filesystems resulting in poor performance. So, we had identified the datafiles and planning to move them to new SAPDATA filesystems (uniformly distribute the datafiles to stabilize the I/O). Below are the version information.
    SAP: 3.0F
    Oracle: 9.2.0.8
    OS: HP-UX 11.23
    SAPDBA: 6.20
    I'm going through SAP notes and Oracle documentation on this.Can you please share your experiences if similar activity was carried out by any of you and the documents relating to this.
    Your inputs on this is very much appreciated.
    Thanks,
    Vasu

    If your goal is just to make use of new storage, it is fairly straightforward and quick to move the datafiles as others mentioned. However, moving the datafile will NOT reorganize tables/tablespaces.
    You can optionally reorg tables/tablespaces in addition to the move of datafiles. This generally saves space and helps performance. If you decide to reorg, I would suggest you move the datafiles to faster storage then reorg (since reorg itself is highly IO intensive).
    Some points to consider:
    - perform the reorg when business use is least
    - perform online reorg where possible
    - online reorg creates temporary snaps, typically in the users default tablespace, make sure it has sufficient space
    - start with small tables/tablespaces first to get throughput estimate and also estimate of reduction in size
    - estimate the size of target tablespace (how small it is going to be compared to source) and build the target tablespace smaller to avoid wasting space
    - watch the space usage of the target tablespace when the reorg is running
    - if you are reorging individual tables, make sure the indexes are rebuilt
    Hope this helps.
    Regards,
    Shan

  • How to Format and Label a bootable 20G file-as-a-filesystem?

    I'm trying to create a bootable 20G file that has a UFS filesystem.
    I'm starting with a bootable Compact Flash (CF) that's 32G, has a UFS file system, and I'd like to "remaster" the 32G CF into a 20G file, then create bootable CF's with "dd" from the 20G file on a Windows "Mastering" machine.
    Here's what I've tried:
    Create a 20G file:
    dd if=/dev/zero of=/export/home/20G bs=1024k count=20000
    Add file as a block device
    lofiadm -a /export/home/20G
    Create a UFS filesystem on the new block device
    newfs /dev/lofi/1
    Create a new mountpoint for the 20G filesystem
    mkdir /export/home/mnt
    Install UFS bootblock on the new 20G file system
    installboot /usr/platform/sun4v/lib/fs/ufs/bootblk /dev/rlofi/1
    Mount the new filesystem
    mount /dev/lofi/1 /export/home/mnt
    Copy all files from the known good bootable CF to the new 20G filesystem
    cd /rmdisk/cf
    find . | cpio -pudmv /export/home/mnt
    Compare disk usage between source and target
    cd /export/home/mnt
    du -sk
    cd /rmdisk/cf
    du -sk
    Unmount the 20G filesystem
    cd /
    umount /export/home/mnt
    Remove the 20G loopback filesystem block device
    lofiadm -d /dev/lofi/1
    Copy the 20G file to a Windows media duplication PC using SFTP.
    Copy the 20G file to a new blank CF on the Windows machine using dd for Windows.
    dd if=C:\20G of=\\.\Voume{<VOL_NUM>}
    Attempt to boot the CF in a Sun CP3260 (sparc)
    boot cf
    Where the devalias cf is the hardware path to the CF...
    Which returns:
    Bad magic number in disk label
    Can't open disk label package.
    Error: boot-read failed.
    Can't open boot device.
    Any ideas?
    Format?
    fmthard?
    This is a file so it doesn't show up with the format command...
    Edited by: BrianJester on May 6, 2010 1:03 PM
    Edited by: BrianJester on May 6, 2010 1:03 PM

    For downloading in UTF-8 format i wrote the code like this...
    UTF ------------> with BOM
        CL_ABAP_FILE_UTILITIES=>CREATE_UTF8_FILE_WITH_BOM( IMP_PATHEXTERN ).
        OPEN DATASET IMP_PATHEXTERN
                 FOR update             
            MESSAGE L_MSG 
                  IN TEXT MODE
                  ENCODING UTF-8
                 at position 3
         REPLACEMENT CHARACTER TEXT-002  
            IGNORING CONVERSION ERRORS.
    then i opened the file using noeditor ..i showed me that the file is in UTF-8 format
    For downloading in UTF-8N format i wrote the code like this...
    *for UTF-8N
    UTF-8N ------------> without BOM
        OPEN DATASET IMP_PATHEXTERN
                 FOR update              
             MESSAGE L_MSG     
                  IN TEXT MODE
                  ENCODING UTF-8
         REPLACEMENT CHARACTER TEXT-002  
            IGNORING CONVERSION ERRORS.
    but when i opened this file using noeditor it showed SHIFTJis
    So i want the code to upload/download in UTF-8N format

  • Extend root filesystem

    Hi,
    i had installed oracle10gR2 on rhel5......in the installation prerequiste i have failed to give enough space for root partition.
    At the installation process oracle give the error not enough tmp spaces in root.i want increase this root partition without reinstallation of rhel5.
    Please anyone help me how to increase the root size in rhel5
    Regards,
    S.Mugunthan.

    I recommend you to post your question on a Redhat Linux Forum like http://www.linuxquestions.org/questions/red-hat-31/
    In my opinion however, the fasted way is - if you have some unformatted diskspace left - to create a new /tmp filesystem and mount that instead of using the root partition /tmp
    Remember to erase the current contents on /tmp before mounting. Otherwise space will not be release to the root file system
    HTH,
    FJFranken
    My Blog: http://managingoracle.blogspot.com
    P.S. If this answers your question, please set the thread to answered and award the points. It is appreciated

  • Viewing .doc/.docx files on new iMac

    Hello folks,
    I have a new iMac running 10.9.4. I don't seem to be able to open .doc or .docx files in either  the new Pages (5.2) or Pages '09, which I've installed. Pages '09 can view both file types quite happily on my old iMac (10.7.5) so I'm a bit mystified.
    Can anybody help? Not being able to open these files is a real problem ...
    thanks in advance.

    Are these Word documents native to your new iMac filesystem, or are they resting on a Google, Dropbox, or other attached storage solution?
    What error message is generated when you attempt to open a random Word document in Pages v5.2? Pages ’09? Preview? TextEdit? Do any of these applications just hang attempting to open the Word document?
    What other applications that may open Word documents have you installed, if any?
    If you single-click to select a random Word document, then press the Spacebar, what default application does Quick Look offer to use?

Maybe you are looking for

  • How to get the size of a string in bytes

    Morning, I'm trying to get the length in bytes of a string, the characters below are 3 byte UTF-8, but when I display The length of either int, looks like is double I got 120 and I think it should be 60. Any idea String requiredMsg = "όόόόόόόόόόόόόόό

  • Install error #1620 PrPro Windows Vista Home Premium

    Install error 1620  when attempting to install CS4 "This installation package could not be opened"  (for each component of the software package).   Windows Vista Home Premium 32 bit, Intel i7 processor.   Unable to install any components of PrPro.  T

  • ALV Excel Download problem ( Special Character)

    Hi, I am unable to download completely in XLS format from ALV grid. When i tried in couple of ways there is a special character( " ) in one of the filed. Due to the same Excel download has some problem. I tested by removing those and it worked fine, 

  • I pad 3 Live View Monitor?

    Is it posible to connect ipad3 for canon 5d mark2 like live view Monitor? (HDMI with HDMI)

  • Dock animation is not smooth after updating recent update

    Hi everyone, I found that Dock animation (mouse move by) is not smooth anymore after I updated the most recently update (Thunderbolt, EFI recovery). Just like... the FPS down from 60 to 25 !!! Dose anyone have the same issue after the update? My Mac