OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rc203soc/] [sw/] [uClinux/] [fs/] [isofs/] [rock.h] - Blame information for rev 1777

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1628 jcastillo
/* These structs are used by the system-use-sharing protocol, in which the
2
   Rock Ridge extensions are embedded.  It is quite possible that other
3
   extensions are present on the disk, and this is fine as long as they
4
   all use SUSP */
5
/*
6
 * Altered for word-aligned structure problems on ARM by Russell King.
7
 */
8
 
9
struct SU_SP{
10
  unsigned char magic[2];
11
  unsigned char skip;
12
};
13
 
14
struct SU_CE{
15
  char extent[8];
16
  char offset[8];
17
  char size[8];
18
};
19
 
20
struct SU_ER{
21
  unsigned char len_id;
22
  unsigned char len_des;
23
  unsigned char len_src;
24
  unsigned char ext_ver;
25
  char data[0];
26
};
27
 
28
struct RR_RR{
29
  char flags[1];
30
};
31
 
32
struct RR_PX{
33
  char mode[8];
34
  char n_links[8];
35
  char uid[8];
36
  char gid[8];
37
};
38
 
39
struct RR_PN{
40
  char dev_high[8];
41
  char dev_low[8];
42
};
43
 
44
 
45
struct SL_component{
46
  unsigned char flags;
47
  unsigned char len;
48
  char text[0];
49
};
50
 
51
struct RR_SL{
52
  unsigned char flags;
53
  unsigned char __link,__dummy;
54
};
55
 
56
struct RR_NM{
57
  unsigned char flags;
58
  char name[0];
59
};
60
 
61
struct RR_CL{
62
  char location[8];
63
};
64
 
65
struct RR_PL{
66
  char location[8];
67
};
68
 
69
struct stamp{
70
  char time[7];
71
};
72
 
73
struct RR_TF{
74
  char flags;
75
  unsigned char __times[0];
76
};
77
 
78
/* These are the bits and their meanings for flags in the TF structure. */
79
#define TF_CREATE 1
80
#define TF_MODIFY 2
81
#define TF_ACCESS 4
82
#define TF_ATTRIBUTES 8
83
#define TF_BACKUP 16
84
#define TF_EXPIRATION 32
85
#define TF_EFFECTIVE 64
86
#define TF_LONG_FORM 128
87
 
88
struct rock_ridge{
89
  char signature[2];
90
  unsigned char len;
91
  unsigned char version;
92
  union{
93
    struct SU_SP SP;
94
    struct SU_CE CE;
95
    struct SU_ER ER;
96
    struct RR_RR RR;
97
    struct RR_PX PX;
98
    struct RR_PN PN;
99
    struct RR_SL SL;
100
    struct RR_NM NM;
101
    struct RR_CL CL;
102
    struct RR_PL PL;
103
    struct RR_TF TF;
104
  } u;
105
};
106
 
107
#define RR_PX 1   /* POSIX attributes */
108
#define RR_PN 2   /* POSIX devices */
109
#define RR_SL 4   /* Symbolic link */
110
#define RR_NM 8   /* Alternate Name */
111
#define RR_CL 16  /* Child link */
112
#define RR_PL 32  /* Parent link */
113
#define RR_RE 64  /* Relocation directory */
114
#define RR_TF 128 /* Timestamps */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.