主权项 |
1. A storage device for stream data and non-stream data, the storage device comprising:
a hard disk organized into sectors; a random access file system configured to organize and store data on the hard disk, said random access file system being configured, at initialization and prior to data recording, to define two different logical data block sizes, respectively called first type of block and second type of block, as basic storage units for disk space allocation, each file to be stored being recorded aligned with a start address of a block on the hard disk, the first type of block comprising a first quantity of sectors configured to store audio or video streams, and the second type of block comprising a second quantity of sectors configured to store non-stream data, wherein there is one directory tree for both types of blocks, and the first quantity is a multiple of the size of the second quantity; and a demultiplexing and decoding circuit configured to allocate at least a block of the first type for storage of stream data, and when realizing room for storage of non-stream data, said demultiplexing and decoding circuit is configured both to split a block of the first type into a plurality of blocks of the second type and to allocate, for storage of said non-stream data, at least a part of said plurality of the blocks of the second type obtained from said splitting of the block of the first type. |