summaryrefslogtreecommitdiffstats
path: root/include/partition.h
diff options
context:
space:
mode:
authorsascha <sascha@nomad.localdomain>2007-10-19 08:45:57 +0200
committersascha <sascha@nomad.localdomain>2007-10-19 08:45:57 +0200
commit3b6d6a45e705efb64fe522158ed33f640073da12 (patch)
treea7f25b80f133f7046ad88b6a19ee320281922ffa /include/partition.h
parent98839f801049609613a964e0526083b66d236e5a (diff)
downloadbarebox-3b6d6a45e705efb64fe522158ed33f640073da12.tar.gz
barebox-3b6d6a45e705efb64fe522158ed33f640073da12.tar.xz
- Implement tree structure for devices
- Use device tree structure to implement partitions - Let devinfo print a nice tree - Introduce 'fixed' partitions which are not removable - Fix mount: It was not possible to mount on a relative path.
Diffstat (limited to 'include/partition.h')
-rw-r--r--include/partition.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/partition.h b/include/partition.h
index 151235c3cc..08504dd0f4 100644
--- a/include/partition.h
+++ b/include/partition.h
@@ -3,10 +3,13 @@
struct device_d;
+#define PARTITION_FIXED (1 << 0)
+#define PARTITION_READONLY (1 << 1)
+
struct partition {
int num;
- int readonly;
+ int flags;
unsigned long offset;
@@ -17,7 +20,7 @@ struct partition {
};
struct device_d *dev_add_partition(struct device_d *dev, unsigned long offset,
- size_t size, char *name);
+ size_t size, int flags, const char *name);
/* FIXME: counterpart missing */
#endif /* __PARTITION_H */