70 |
} |
} |
71 |
|
|
72 |
static error_t |
static error_t |
73 |
|
dev_set_size (struct store *store, size_t newsize) |
74 |
|
{ |
75 |
|
return EOPNOTSUPP; |
76 |
|
} |
77 |
|
|
78 |
|
static error_t |
79 |
dev_decode (struct store_enc *enc, const struct store_class *const *classes, |
dev_decode (struct store_enc *enc, const struct store_class *const *classes, |
80 |
struct store **store) |
struct store **store) |
81 |
{ |
{ |
244 |
const struct store_class |
const struct store_class |
245 |
store_device_class = |
store_device_class = |
246 |
{ |
{ |
247 |
STORAGE_DEVICE, "device", dev_read, dev_write, |
STORAGE_DEVICE, "device", dev_read, dev_write, dev_set_size, |
248 |
store_std_leaf_allocate_encoding, store_std_leaf_encode, dev_decode, |
store_std_leaf_allocate_encoding, store_std_leaf_encode, dev_decode, |
249 |
dev_set_flags, dev_clear_flags, 0, 0, 0, dev_open, 0, dev_map |
dev_set_flags, dev_clear_flags, 0, 0, 0, dev_open, 0, dev_map |
250 |
}; |
}; |