Home | History | Annotate | Line # | Download | only in chfs
      1  1.1  ttoth /*-
      2  1.1  ttoth  * Copyright (c) 2012 Department of Software Engineering,
      3  1.1  ttoth  *		      University of Szeged, Hungary
      4  1.1  ttoth  * Copyright (c) 2012 Tamas Toth <ttoth (at) inf.u-szeged.hu>
      5  1.1  ttoth  * All rights reserved.
      6  1.1  ttoth  *
      7  1.1  ttoth  * This code is derived from software contributed to The NetBSD Foundation
      8  1.1  ttoth  * by the Department of Software Engineering, University of Szeged, Hungary
      9  1.1  ttoth  *
     10  1.1  ttoth  * Redistribution and use in source and binary forms, with or without
     11  1.1  ttoth  * modification, are permitted provided that the following conditions
     12  1.1  ttoth  * are met:
     13  1.1  ttoth  * 1. Redistributions of source code must retain the above copyright
     14  1.1  ttoth  *    notice, this list of conditions and the following disclaimer.
     15  1.1  ttoth  * 2. Redistributions in binary form must reproduce the above copyright
     16  1.1  ttoth  *    notice, this list of conditions and the following disclaimer in the
     17  1.1  ttoth  *    documentation and/or other materials provided with the distribution.
     18  1.1  ttoth  *
     19  1.1  ttoth  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
     20  1.1  ttoth  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
     21  1.1  ttoth  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
     22  1.1  ttoth  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
     23  1.1  ttoth  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
     24  1.1  ttoth  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
     25  1.1  ttoth  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
     26  1.1  ttoth  * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
     27  1.1  ttoth  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
     28  1.1  ttoth  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
     29  1.1  ttoth  * SUCH DAMAGE.
     30  1.1  ttoth  */
     31  1.1  ttoth 
     32  1.1  ttoth #ifndef _CHFS_MKFS_H
     33  1.1  ttoth #define _CHFS_MKFS_H
     34  1.1  ttoth 
     35  1.1  ttoth #include "chfs.h"
     36  1.1  ttoth 
     37  1.1  ttoth void padblock(fsinfo_t *);
     38  1.1  ttoth void write_eb_header(fsinfo_t *);
     39  1.1  ttoth void write_vnode(fsinfo_t *, fsnode *);
     40  1.1  ttoth void write_dirent(fsinfo_t *, fsnode *);
     41  1.1  ttoth void write_file(fsinfo_t *, fsnode *, const char *);
     42  1.1  ttoth void write_data(fsinfo_t *, fsnode *, unsigned char *, size_t, uint32_t);
     43  1.1  ttoth #endif
     44  1.1  ttoth 
     45