linux/fs/cachefiles/daemon.c
<<
>>
Prefs
   1/* Daemon interface
   2 *
   3 * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved.
   4 * Written by David Howells (dhowells@redhat.com)
   5 *
   6 * This program is free software; you can redistribute it and/or
   7 * modify it under the terms of the GNU General Public Licence
   8 * as published by the Free Software Foundation; either version
   9 * 2 of the Licence, or (at your option) any later version.
  10 */
  11
  12#include <linux/module.h>
  13#include <linux/init.h>
  14#include <linux/sched.h>
  15#include <linux/completion.h>
  16#include <linux/slab.h>
  17#include <linux/fs.h>
  18#include <linux/file.h>
  19#include <linux/namei.h>
  20#include <linux/poll.h>
  21#include <linux/mount.h>
  22#include <linux/statfs.h>
  23#include <linux/ctype.h>
  24#include <linux/string.h>
  25#include <linux/fs_struct.h>
  26#include "internal.h"
  27
  28static int cachefiles_daemon_open(struct inode *, struct file *);
  29static int cachefiles_daemon_release(struct inode *, struct file *);
  30static ssize_t cachefiles_daemon_read(struct file *, char __user *, size_t,
  31                                      loff_t *);
  32static ssize_t cachefiles_daemon_write(struct file *, const char __user *,
  33                                       size_t, loff_t *);
  34static unsigned int cachefiles_daemon_poll(struct file *,
  35                                           struct poll_table_struct *);
  36static int cachefiles_daemon_frun(struct cachefiles_cache *, char *);
  37static int cachefiles_daemon_fcull(struct cachefiles_cache *, char *);
  38static int cachefiles_daemon_fstop(struct cachefiles_cache *, char *);
  39static int cachefiles_daemon_brun(struct cachefiles_cache *, char *);
  40static int cachefiles_daemon_bcull(struct cachefiles_cache *, char *);
  41static int cachefiles_daemon_bstop(struct cachefiles_cache *, char *);
  42static int cachefiles_daemon_cull(struct cachefiles_cache *, char *);
  43static int cachefiles_daemon_debug(struct cachefiles_cache *, char *);
  44static int cachefiles_daemon_dir(struct cachefiles_cache *, char *);
  45static int cachefiles_daemon_inuse(struct cachefiles_cache *, char *);
  46static int cachefiles_daemon_secctx(struct cachefiles_cache *, char *);
  47static int cachefiles_daemon_tag(struct cachefiles_cache *, char *);
  48
  49static unsigned long cachefiles_open;
  50
  51const struct file_operations cachefiles_daemon_fops = {
  52        .owner          = THIS_MODULE,
  53        .open           = cachefiles_daemon_open,
  54        .release        = cachefiles_daemon_release,
  55        .read           = cachefiles_daemon_read,
  56        .write          = cachefiles_daemon_write,
  57        .poll           = cachefiles_daemon_poll,
  58        .llseek         = noop_llseek,
  59};
  60
  61struct cachefiles_daemon_cmd {
  62        char name[8];
  63        int (*handler)(struct cachefiles_cache *cache, char *args);
  64};
  65
  66static const struct cachefiles_daemon_cmd cachefiles_daemon_cmds[] = {
  67        { "bind",       cachefiles_daemon_bind          },
  68        { "brun",       cachefiles_daemon_brun          },
  69        { "bcull",      cachefiles_daemon_bcull         },
  70        { "bstop",      cachefiles_daemon_bstop         },
  71        { "cull",       cachefiles_daemon_cull          },
  72        { "debug",      cachefiles_daemon_debug         },
  73        { "dir",        cachefiles_daemon_dir           },
  74        { "frun",       cachefiles_daemon_frun          },
  75        { "fcull",      cachefiles_daemon_fcull         },
  76        { "fstop",      cachefiles_daemon_fstop         },
  77        { "inuse",      cachefiles_daemon_inuse         },
  78        { "secctx",     cachefiles_daemon_secctx        },
  79        { "tag",        cachefiles_daemon_tag           },
  80        { "",           NULL                            }
  81};
  82
  83
  84/*
  85 * do various checks
  86 */
  87static int cachefiles_daemon_open(struct inode *inode, struct file *file)
  88{
  89        struct cachefiles_cache *cache;
  90
  91        _enter("");
  92
  93        /* only the superuser may do this */
  94        if (!capable(CAP_SYS_ADMIN))
  95                return -EPERM;
  96
  97        /* the cachefiles device may only be open once at a time */
  98        if (xchg(&cachefiles_open, 1) == 1)
  99                return -EBUSY;
 100
 101        /* allocate a cache record */
 102        cache = kzalloc(sizeof(struct cachefiles_cache), GFP_KERNEL);
 103        if (!cache) {
 104                cachefiles_open = 0;
 105                return -ENOMEM;
 106        }
 107
 108        mutex_init(&cache->daemon_mutex);
 109        cache->active_nodes = RB_ROOT;
 110        rwlock_init(&cache->active_lock);
 111        init_waitqueue_head(&cache->daemon_pollwq);
 112
 113        /* set default caching limits
 114         * - limit at 1% free space and/or free files
 115         * - cull below 5% free space and/or free files
 116         * - cease culling above 7% free space and/or free files
 117         */
 118        cache->frun_percent = 7;
 119        cache->fcull_percent = 5;
 120        cache->fstop_percent = 1;
 121        cache->brun_percent = 7;
 122        cache->bcull_percent = 5;
 123        cache->bstop_percent = 1;
 124
 125        file->private_data = cache;
 126        cache->cachefilesd = file;
 127        return 0;
 128}
 129
 130/*
 131 * release a cache
 132 */
 133static int cachefiles_daemon_release(struct inode *inode, struct file *file)
 134{
 135        struct cachefiles_cache *cache = file->private_data;
 136
 137        _enter("");
 138
 139        ASSERT(cache);
 140
 141        set_bit(CACHEFILES_DEAD, &cache->flags);
 142
 143        cachefiles_daemon_unbind(cache);
 144
 145        ASSERT(!cache->active_nodes.rb_node);
 146
 147        /* clean up the control file interface */
 148        cache->cachefilesd = NULL;
 149        file->private_data = NULL;
 150        cachefiles_open = 0;
 151
 152        kfree(cache);
 153
 154        _leave("");
 155        return 0;
 156}
 157
 158/*
 159 * read the cache state
 160 */
 161static ssize_t cachefiles_daemon_read(struct file *file, char __user *_buffer,
 162                                      size_t buflen, loff_t *pos)
 163{
 164        struct cachefiles_cache *cache = file->private_data;
 165        char buffer[256];
 166        int n;
 167
 168        //_enter(",,%zu,", buflen);
 169
 170        if (!test_bit(CACHEFILES_READY, &cache->flags))
 171                return 0;
 172
 173        /* check how much space the cache has */
 174        cachefiles_has_space(cache, 0, 0);
 175
 176        /* summarise */
 177        clear_bit(CACHEFILES_STATE_CHANGED, &cache->flags);
 178
 179        n = snprintf(buffer, sizeof(buffer),
 180                     "cull=%c"
 181                     " frun=%llx"
 182                     " fcull=%llx"
 183                     " fstop=%llx"
 184                     " brun=%llx"
 185                     " bcull=%llx"
 186                     " bstop=%llx",
 187                     test_bit(CACHEFILES_CULLING, &cache->flags) ? '1' : '0',
 188                     (unsigned long long) cache->frun,
 189                     (unsigned long long) cache->fcull,
 190                     (unsigned long long) cache->fstop,
 191                     (unsigned long long) cache->brun,
 192                     (unsigned long long) cache->bcull,
 193                     (unsigned long long) cache->bstop
 194                     );
 195
 196        if (n > buflen)
 197                return -EMSGSIZE;
 198
 199        if (copy_to_user(_buffer, buffer, n) != 0)
 200                return -EFAULT;
 201
 202        return n;
 203}
 204
 205/*
 206 * command the cache
 207 */
 208static ssize_t cachefiles_daemon_write(struct file *file,
 209                                       const char __user *_data,
 210                                       size_t datalen,
 211                                       loff_t *pos)
 212{
 213        const struct cachefiles_daemon_cmd *cmd;
 214        struct cachefiles_cache *cache = file->private_data;
 215        ssize_t ret;
 216        char *data, *args, *cp;
 217
 218        //_enter(",,%zu,", datalen);
 219
 220        ASSERT(cache);
 221
 222        if (test_bit(CACHEFILES_DEAD, &cache->flags))
 223                return -EIO;
 224
 225        if (datalen < 0 || datalen > PAGE_SIZE - 1)
 226                return -EOPNOTSUPP;
 227
 228        /* drag the command string into the kernel so we can parse it */
 229        data = kmalloc(datalen + 1, GFP_KERNEL);
 230        if (!data)
 231                return -ENOMEM;
 232
 233        ret = -EFAULT;
 234        if (copy_from_user(data, _data, datalen) != 0)
 235                goto error;
 236
 237        data[datalen] = '\0';
 238
 239        ret = -EINVAL;
 240        if (memchr(data, '\0', datalen))
 241                goto error;
 242
 243        /* strip any newline */
 244        cp = memchr(data, '\n', datalen);
 245        if (cp) {
 246                if (cp == data)
 247                        goto error;
 248
 249                *cp = '\0';
 250        }
 251
 252        /* parse the command */
 253        ret = -EOPNOTSUPP;
 254
 255        for (args = data; *args; args++)
 256                if (isspace(*args))
 257                        break;
 258        if (*args) {
 259                if (args == data)
 260                        goto error;
 261                *args = '\0';
 262                args = skip_spaces(++args);
 263        }
 264
 265        /* run the appropriate command handler */
 266        for (cmd = cachefiles_daemon_cmds; cmd->name[0]; cmd++)
 267                if (strcmp(cmd->name, data) == 0)
 268                        goto found_command;
 269
 270error:
 271        kfree(data);
 272        //_leave(" = %zd", ret);
 273        return ret;
 274
 275found_command:
 276        mutex_lock(&cache->daemon_mutex);
 277
 278        ret = -EIO;
 279        if (!test_bit(CACHEFILES_DEAD, &cache->flags))
 280                ret = cmd->handler(cache, args);
 281
 282        mutex_unlock(&cache->daemon_mutex);
 283
 284        if (ret == 0)
 285                ret = datalen;
 286        goto error;
 287}
 288
 289/*
 290 * poll for culling state
 291 * - use POLLOUT to indicate culling state
 292 */
 293static unsigned int cachefiles_daemon_poll(struct file *file,
 294                                           struct poll_table_struct *poll)
 295{
 296        struct cachefiles_cache *cache = file->private_data;
 297        unsigned int mask;
 298
 299        poll_wait(file, &cache->daemon_pollwq, poll);
 300        mask = 0;
 301
 302        if (test_bit(CACHEFILES_STATE_CHANGED, &cache->flags))
 303                mask |= POLLIN;
 304
 305        if (test_bit(CACHEFILES_CULLING, &cache->flags))
 306                mask |= POLLOUT;
 307
 308        return mask;
 309}
 310
 311/*
 312 * give a range error for cache space constraints
 313 * - can be tail-called
 314 */
 315static int cachefiles_daemon_range_error(struct cachefiles_cache *cache,
 316                                         char *args)
 317{
 318        kerror("Free space limits must be in range"
 319               " 0%%<=stop<cull<run<100%%");
 320
 321        return -EINVAL;
 322}
 323
 324/*
 325 * set the percentage of files at which to stop culling
 326 * - command: "frun <N>%"
 327 */
 328static int cachefiles_daemon_frun(struct cachefiles_cache *cache, char *args)
 329{
 330        unsigned long frun;
 331
 332        _enter(",%s", args);
 333
 334        if (!*args)
 335                return -EINVAL;
 336
 337        frun = simple_strtoul(args, &args, 10);
 338        if (args[0] != '%' || args[1] != '\0')
 339                return -EINVAL;
 340
 341        if (frun <= cache->fcull_percent || frun >= 100)
 342                return cachefiles_daemon_range_error(cache, args);
 343
 344        cache->frun_percent = frun;
 345        return 0;
 346}
 347
 348/*
 349 * set the percentage of files at which to start culling
 350 * - command: "fcull <N>%"
 351 */
 352static int cachefiles_daemon_fcull(struct cachefiles_cache *cache, char *args)
 353{
 354        unsigned long fcull;
 355
 356        _enter(",%s", args);
 357
 358        if (!*args)
 359                return -EINVAL;
 360
 361        fcull = simple_strtoul(args, &args, 10);
 362        if (args[0] != '%' || args[1] != '\0')
 363                return -EINVAL;
 364
 365        if (fcull <= cache->fstop_percent || fcull >= cache->frun_percent)
 366                return cachefiles_daemon_range_error(cache, args);
 367
 368        cache->fcull_percent = fcull;
 369        return 0;
 370}
 371
 372/*
 373 * set the percentage of files at which to stop allocating
 374 * - command: "fstop <N>%"
 375 */
 376static int cachefiles_daemon_fstop(struct cachefiles_cache *cache, char *args)
 377{
 378        unsigned long fstop;
 379
 380        _enter(",%s", args);
 381
 382        if (!*args)
 383                return -EINVAL;
 384
 385        fstop = simple_strtoul(args, &args, 10);
 386        if (args[0] != '%' || args[1] != '\0')
 387                return -EINVAL;
 388
 389        if (fstop < 0 || fstop >= cache->fcull_percent)
 390                return cachefiles_daemon_range_error(cache, args);
 391
 392        cache->fstop_percent = fstop;
 393        return 0;
 394}
 395
 396/*
 397 * set the percentage of blocks at which to stop culling
 398 * - command: "brun <N>%"
 399 */
 400static int cachefiles_daemon_brun(struct cachefiles_cache *cache, char *args)
 401{
 402        unsigned long brun;
 403
 404        _enter(",%s", args);
 405
 406        if (!*args)
 407                return -EINVAL;
 408
 409        brun = simple_strtoul(args, &args, 10);
 410        if (args[0] != '%' || args[1] != '\0')
 411                return -EINVAL;
 412
 413        if (brun <= cache->bcull_percent || brun >= 100)
 414                return cachefiles_daemon_range_error(cache, args);
 415
 416        cache->brun_percent = brun;
 417        return 0;
 418}
 419
 420/*
 421 * set the percentage of blocks at which to start culling
 422 * - command: "bcull <N>%"
 423 */
 424static int cachefiles_daemon_bcull(struct cachefiles_cache *cache, char *args)
 425{
 426        unsigned long bcull;
 427
 428        _enter(",%s", args);
 429
 430        if (!*args)
 431                return -EINVAL;
 432
 433        bcull = simple_strtoul(args, &args, 10);
 434        if (args[0] != '%' || args[1] != '\0')
 435                return -EINVAL;
 436
 437        if (bcull <= cache->bstop_percent || bcull >= cache->brun_percent)
 438                return cachefiles_daemon_range_error(cache, args);
 439
 440        cache->bcull_percent = bcull;
 441        return 0;
 442}
 443
 444/*
 445 * set the percentage of blocks at which to stop allocating
 446 * - command: "bstop <N>%"
 447 */
 448static int cachefiles_daemon_bstop(struct cachefiles_cache *cache, char *args)
 449{
 450        unsigned long bstop;
 451
 452        _enter(",%s", args);
 453
 454        if (!*args)
 455                return -EINVAL;
 456
 457        bstop = simple_strtoul(args, &args, 10);
 458        if (args[0] != '%' || args[1] != '\0')
 459                return -EINVAL;
 460
 461        if (bstop < 0 || bstop >= cache->bcull_percent)
 462                return cachefiles_daemon_range_error(cache, args);
 463
 464        cache->bstop_percent = bstop;
 465        return 0;
 466}
 467
 468/*
 469 * set the cache directory
 470 * - command: "dir <name>"
 471 */
 472static int cachefiles_daemon_dir(struct cachefiles_cache *cache, char *args)
 473{
 474        char *dir;
 475
 476        _enter(",%s", args);
 477
 478        if (!*args) {
 479                kerror("Empty directory specified");
 480                return -EINVAL;
 481        }
 482
 483        if (cache->rootdirname) {
 484                kerror("Second cache directory specified");
 485                return -EEXIST;
 486        }
 487
 488        dir = kstrdup(args, GFP_KERNEL);
 489        if (!dir)
 490                return -ENOMEM;
 491
 492        cache->rootdirname = dir;
 493        return 0;
 494}
 495
 496/*
 497 * set the cache security context
 498 * - command: "secctx <ctx>"
 499 */
 500static int cachefiles_daemon_secctx(struct cachefiles_cache *cache, char *args)
 501{
 502        char *secctx;
 503
 504        _enter(",%s", args);
 505
 506        if (!*args) {
 507                kerror("Empty security context specified");
 508                return -EINVAL;
 509        }
 510
 511        if (cache->secctx) {
 512                kerror("Second security context specified");
 513                return -EINVAL;
 514        }
 515
 516        secctx = kstrdup(args, GFP_KERNEL);
 517        if (!secctx)
 518                return -ENOMEM;
 519
 520        cache->secctx = secctx;
 521        return 0;
 522}
 523
 524/*
 525 * set the cache tag
 526 * - command: "tag <name>"
 527 */
 528static int cachefiles_daemon_tag(struct cachefiles_cache *cache, char *args)
 529{
 530        char *tag;
 531
 532        _enter(",%s", args);
 533
 440        
2(xs);
 366                return -EINVAL;
 522}
 408
 389            cachehar *args)
 490                return -EEXIST;
 531
 532   har *secctx = kstrdup(args, GFP_KERNEL);
 517        har *args)
 414                return -ENOMEM;
 515
 416        cachehar *secctxtag;
 417        return 0;
 418}
 519
 350/*
 351 work   * set the cache directory
 422* - commamand: "tag <name>"
 423 */
 424static int cachefiles_cache *cache, char *args)
 425{
(stpath*        return 0;
cachefiles_cache        return 0;
 424static17"f="+code=rootdiretne"         return 0;
 519
 380        _enter(",%s", args);
 531
 362       erkstrdup(args[1] != lass="sref">args)
 363goto%s"        return 0;
 364
 517        hest_bi"f="+code=rootdihest_bi"class="sref">kstrdupCACHEFILES_READYf="+code=rootdiCACHEFILES_READYs" class="sref">args,      cacheflaa>( 366achefiles/daemon.c#L436" id="L436" ctname="L440"> 440        
2(xs);
 407                returOa href="+code=EINOne"         return 0;
 418}
 519
 410       hest_bi"f="+code=rootdihest_bi"class="sref">kstrdupCACHEFILES_DEADf="+code=rootdiCACHEFILES_DEADs" class="sref">args,      cacheflaa>( 431achefiles/daemon.c#L436" id="L436" ctname="L440"> 440        
2(xs);
 462                returOa href="+code=EINOne"         return 0;
 418}
 364
 350 */
 476   get_fs_pwdkstrdupcurr/a>cachef>(args, path*);
 477
 ref">args, S_ISDIR*kstrduppath*kstrdupd/a>Se*cached_intx<*cachei_mtx<* 477
 479goto%s"        return 0;
 510
curcode=cachefiles_cache" clasbegief">curcclass="sref">kstrdupca> *args, saved_rred);
 532   17"f="+code=rootdiretne" ss="sref">secctxcachefil="sref">kstrdupca> *kstrduppath*kstrdupd/a>Se*, args);
secctxcurcode=cachefiles_cache" clasendf">curchefil="sref">kstrdupca> *kstrdupsaved_rred);
 384
 385   path_pu"f="+code=rootdipath_pu"hefilss="sref">args, path*);
 476    leavea href="+code=_eleave"L440"> 440        ",%s");
 41> 424static17"f="+code=rootdiretne"         return 0;
 388
 388
 380   path_pu"f="+code=rootdipath_pu"hefilss="sref">args, path*);
 440        &qfd to&be a">"Se;
2(xs);
        return 0;
 533
 388
 385   n.c#L436" id="L436" ctname="L440"> 440        &qfd ="c4a>

2(xs);
EINVAL;
 418}
 388
 499/*
 470/*
 351 ebugcommamask: "tag <name>"
 422 */
 472static int cachefiles_cache *cache, char *args)
 450        unsigned mask*EINVAL;
 456
 457        _enter(",%s", args);
 408
 409   mask*bstop = simple_strtoul(args, &args, 10);
 410        if (args[0] != '\0')
 411goto%s"        return 0;
 412
secctxbstopEINVAL;
 504    leavea href="+code=_eleave"L440"> 440        
2(xs);
 465        return 0;
 456
 388
 488   n.c#L436" id="L436" ctname="L440"> 440        
2(xs);
 46             return -EINVAL;
 418}
 531
 422/*
 423"c4ourcenether =" objeaem52ass="curr/a> work   * set ism52ause or noache security context
 524inuse ommamand: "tag <name>"
 525 */
 472static int cachefiles_cache *cache, char *args)
(stpath*        return 0;
cachefiles_cache        return 0;
 424static17"f="+code=rootdiretne"         return 0;
 531
 422
 533
 434       erkstrdup(args[1] != lass="sref">args)
        return 0;
 436
 517        hest_bi"f="+code=rootdihest_bi"class="sref">kstrdupCACHEFILES_READYf="+code=rootdiCACHEFILES_READYs" class="sref">args,      cacheflaa>( 43888"> 488   n.c#L436" id="L436" ctname="L440"> 440        
2(xs);
 459                returOa href="+code=EINOne"         return 0;
 418}
 531
 362       hest_bi"f="+code=rootdihest_bi"class="sref">kstrdupCACHEFILES_DEADf="+code=rootdiCACHEFILES_DEADs" class="sref">args,      cacheflaa>( 36388"> 488   n.c#L436" id="L436" ctname="L440"> 440        
2(xs);
 414                returOa href="+code=EINOne"         return 0;
 418}
 436
 350 */
 488   get_fs_pwdkstrdupcurr/a>cachef>(args, path*);
 519
 ref">args, S_ISDIR*kstrduppath*kstrdupd/a>Se*cached_intx<*cachei_mtx<* 519
 411goto%s"        return 0;
 412
secctxcurcode=cachefiles_cache" clasbegief">curcclass="sref">kstrdupca> *args, saved_rred);
 504   17"f="+code=rootdiretne" ss="sref">secctxkstrdupca> *kstrduppath*kstrdupd/a>Se*, args);
 385   cache" clasendf">curcode=cachefiles_cache" clasendf">curchefil="sref">kstrdupca> *kstrdupsaved_rred);
 456
 457   path_pu"f="+code=rootdipath_pu"hefilss="sref">args, path*);
 422
 46> 424static17"f="+code=rootdiretne"         return 0;
 460
 388
 532   path_pu"f="+code=rootdipath_pu"hefilss="sref">args, path*);
secctx 440        &qfd to&be a">"Se;
2(xs);
        return 0;
 515
 388
 457   n.c#L436" id="L436" ctname="L440"> 440        &qfd ="c4a>

2(xs);
 46             return -EINVAL;
 418}
 460
 471/*
 422/*
 423/*
 524 */
 472static int (struct cachefiles_cache * */
 36666666666650"> 450cachefn436" id="L436" cfn4" clas50"> 450cachebn436" id="L436" cbndir" class="sref">dir)
ne" non_bcull(stname>(EINVAL;
(stpath* 480.="sref">kstrdupma>secctxcachema> */
 411.="sref">kstrdupd/a>Se*secctxcachema>cachema>_rnam */
EINVAL;
 424static17"f="+code=rootdiretne"         return 0;
 384
 422 */
 422 450  /a> )4cacheass="frun, class="comment"> */
 350 450  /a> )4cacheass="f* - , class="comment"> */
 422 450  /a> )4cacheass="fstop, class="comment"> */
 422 450  /a> )4cacheass="brun, class="comment"> */
 422 450  /a> )4cacheass="b* - , class="comment"> */
 422 450  /a> )4cacheass="bstop, class="comment"> */
 422 533
 422"c4ourchow many pagus"of blockdev are availablepan class="comment"> */
 385   mems7"f="+code=rootdimems7"hefilss="sref">args, name>( cla));
 456
 457   17"f="+code=rootdiretne" ss="sref">secctx(args, path*args, srme>(57"> 457   17"f="+code=rootdiretne" somma 0L5="lin5ass="line" name="L5="lin5ass=6chefiles/6aemon.c#L499" id="L499" 6lass=69ine" name="L459"> 45978">57"> 457   17"f="+code=rootdiretne" s==              returOa href="+code=EINOne" class="sref">dir)
 480name="L457"> 457   cache" clasio_.c#L436" id="L436" ccache" clasio_.c#L4hefil="sref">kstrdupca> * 440         failot;
2(xs);
 431achefiles/daemo leavea href="+code=_eleave"L440"> 440        ",%s");
 46> 424static17"f="+code=rootdiretne"         return 0;
 418}
 384
 385   srme>(kstrdupf_bavail36" id="L436" cf_bavailne" so &qu &qs="sref">secctxcachebshif"f="+code=rootdibshif"ne"         return 0;
 456
 350 */
 422 450  /a> )4name>.f_ffree, class="comment"> */
 422 450  /a> )4name>.f_bavail)ag <name>"
 510
 422 amece an class="comment"> */
 362       srme>(kstrdupf_ffree36" id="L436" cf_ffreene" so &qcachefn436" id="L436" cfn4" clclass="sref">dir)
 513 362       srme>(kstrdupf_ffree36" id="L436" cf_ffreene" s-s="sref">secctx        return 0;
       srme>(kstrdupf_ffree36" id="L436" cf_ffreene" s=65        return 0;
 456
85"> 385   srme>(kstrdupf_bavail36" id="L436" cf_bavailne" so &qcachebn436" id="L436" cbndir" class="sref">dir)
 51885"> 385   srme>(kstrdupf_bavail36" id="L436" cf_bavailne" s-s="sref">secctx        return 0;
 48085"> 385   srme>(kstrdupf_bavail36" id="L436" cf_bavailne" s=65        return 0;
 531
 532   17"f="+code=rootdiretne" ss=             returnBUFS*        return 0;
 362       srme>(kstrdupf_ffree36" id="L436" cf_ffreene" sol&qcache     cachefstop36" id="L436" cfstopne" s||/a>        return 0;
85"> 385   srme>(kstrdupf_bavail36" id="L436" cf_bavailne" sol&qcache     cachebstop36" id="L436" cbstopne" class="sref">dir)
        return 0;
 456
 457   17"f="+code=rootdiretne" ss=5        return 0;
57"> 457   srme>(kstrdupf_ffree36" id="L436" cf_ffreene" sol&qcache     cachefscachefiles_daemon_fscacir" s||/a>        return 0;
85"> 385   srme>(kstrdupf_bavail36" id="L436" cf_bavailne" sol&qcache     cachebscachefiles_daemon_bscacir" class="sref">dir)
 480goto%s"        return 0;
 531
 362       hest_bi"f="+code=rootdihest_bi"class="sref">kstrdupCACHEFILES_CULLINGf="+code=rootdiCACHEFILES_CULLINGne" asss="sref">args,      cacheflaa>( 531
 362       srme>(kstrdupf_ffree36" id="L436" cf_ffreene" so &qs="sref">secctxcachefrun36" id="L436" cfrunne" sos="sss="sname="L531"> 531
85"> 385   srme>(kstrdupf_bavail36" id="L436" cf_bavailne" so &qs="sref">secctxcachebrun36" id="L436" cbrunne" sos="sss="sname="L531"> 531
       hest_and_clear_bi"f="+code=rootdihest_and_clear_bi"class="sref">kstrdupCACHEFILES_CULLINGf="+code=rootdiCACHEFILES_CULLINGne" asss="sref">args,      cacheflaa>( 531
L5="lin5ass="line" name="L5="lin5ass=7chefiles/7aemon.c#L437" id="L437" 7lass=73ine" name="L407"> 407achefiles/daemo eebughefiles_daemon__eebughefil"> 440        
2(xs);
 43888"> 488   cache" clasnamee_changedkstrdupca> *);
 418}
 510
 422
 465        return 0;
 533
 388
 517        hest_andf">t_bi"f="+code=rootdihest_andf">t_bi"class="sref">kstrdupCACHEFILES_CULLINGf="+code=rootdiCACHEFILES_CULLINGne" asss="sref">args,      cacheflaa>( 366achefiles/daemo eebughefiles_daemon__eebughefil"> 440        
2(xs);
 407achefiles/daemocache" clasnamee_changedkstrdupca> *);
 418}
 519
 380    leavea href="+code=_eleave"L440"> 440        ",%s");
 46> 424static17"f="+code=rootdiretne"         return 0;
 418}



The origieal LXR software byass="me="L418"http://sourceforge.net/projeaes/lxLXR 422al version byame="L418"mailto:lx<@3" ux.no">lx<@3" ux.no cla.
lx<.3" ux.no kindly hosted byame="L418"http://www.redpill-3" pro.no">Redpill L" pro AS" cl,&provider of L" ux4consult