Changeset 3c96bee in rtems for cpukit/libfs/src/jffs2/src/gc.c


Ignore:
Timestamp:
Sep 12, 2013, 1:32:07 PM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
0282e83
Parents:
78b85286
git-author:
Sebastian Huber <sebastian.huber@…> (09/12/13 13:32:07)
git-committer:
Sebastian Huber <sebastian.huber@…> (09/19/13 11:16:06)
Message:

JFFS2: Add RTEMS support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libfs/src/jffs2/src/gc.c

    r78b85286 r3c96bee  
    742742        struct jffs2_raw_inode ri;
    743743        struct jffs2_node_frag *last_frag;
     744#ifndef __rtems__
    744745        union jffs2_device_node dev;
     746#endif /* __rtems__ */
    745747        char *mdata = NULL;
    746748        int mdatalen = 0;
     
    750752        if (S_ISBLK(JFFS2_F_I_MODE(f)) ||
    751753            S_ISCHR(JFFS2_F_I_MODE(f)) ) {
     754#ifndef __rtems__
    752755                /* For these, we don't actually need to read the old node */
    753756                mdatalen = jffs2_encode_dev(&dev, JFFS2_F_I_RDEV(f));
     
    755758                jffs2_dbg(1, "%s(): Writing %d bytes of kdev_t\n",
    756759                          __func__, mdatalen);
     760#else /* __rtems__ */
     761                return -EIO;
     762#endif /* __rtems__ */
    757763        } else if (S_ISLNK(JFFS2_F_I_MODE(f))) {
    758764                mdatalen = fn->size;
Note: See TracChangeset for help on using the changeset viewer.