lkml.org 
[lkml]   [2008]   [Jan]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[patch 14/26] mount options: fix fuse
    From: Miklos Szeredi <mszeredi@suse.cz>

    Add blksize= option to /proc/mounts for fuseblk filesystems.

    Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
    ---

    Index: linux/fs/fuse/inode.c
    ===================================================================
    --- linux.orig/fs/fuse/inode.c 2008-01-19 11:56:34.000000000 +0100
    +++ linux/fs/fuse/inode.c 2008-01-21 17:53:06.000000000 +0100
    @@ -29,6 +29,8 @@ DEFINE_MUTEX(fuse_mutex);

    #define FUSE_SUPER_MAGIC 0x65735546

    +#define FUSE_DEFAULT_BLKSIZE 512
    +
    struct fuse_mount_data {
    int fd;
    unsigned rootmode;
    @@ -355,7 +357,7 @@ static int parse_fuse_opt(char *opt, str
    char *p;
    memset(d, 0, sizeof(struct fuse_mount_data));
    d->max_read = ~0;
    - d->blksize = 512;
    + d->blksize = FUSE_DEFAULT_BLKSIZE;

    while ((p = strsep(&opt, ",")) != NULL) {
    int token;
    @@ -440,6 +442,9 @@ static int fuse_show_options(struct seq_
    seq_puts(m, ",allow_other");
    if (fc->max_read != ~0)
    seq_printf(m, ",max_read=%u", fc->max_read);
    + if (mnt->mnt_sb->s_bdev &&
    + mnt->mnt_sb->s_blocksize != FUSE_DEFAULT_BLKSIZE)
    + seq_printf(m, ",blksize=%lu", mnt->mnt_sb->s_blocksize);
    return 0;
    }

    --


    \
     
     \ /
      Last update: 2008-01-24 20:43    [W:0.020 / U:31.140 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site