Changeset 594303b in mainline for uspace/app


Ignore:
Timestamp:
2009-04-18T15:32:56Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8d049ee0
Parents:
6b6e423a
Message:

Support mount options.
Let tmpfs decide whether to start empty or restored a TMPFS dump based on the mount option.

Location:
uspace/app
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/init/init.c

    r6b6e423a r594303b  
    4646#include <macros.h>
    4747#include <console.h>
     48#include <string.h>
    4849#include "init.h"
    4950#include "version.h"
     
    5253{
    5354        int rc = -1;
     55        char *opts = "";
    5456       
     57        if (str_cmp(fstype, "tmpfs") == 0)
     58                opts = "restore";
     59
    5560        while (rc < 0) {
    56                 rc = mount(fstype, "/", "initrd", IPC_FLAG_BLOCKING);
     61                rc = mount(fstype, "/", "initrd", opts, IPC_FLAG_BLOCKING);
    5762               
    5863                switch (rc) {
  • uspace/app/tester/vfs/vfs1.c

    r6b6e423a r594303b  
    4646        int rc;
    4747
    48         rc = mount("tmpfs", "/", "nulldev0", 0);
     48        rc = mount("tmpfs", "/", "nulldev0", "", 0);
    4949        switch (rc) {
    5050        case EOK:
Note: See TracChangeset for help on using the changeset viewer.