Lines Matching defs:size
47 // Maximum name size in bytes, may be redefined to reduce the size of the
54 // Maximum size of a file in bytes, may be redefined to limit to support other
63 // Maximum size of custom attributes in bytes, may be redefined, but there is
133 LFS_O_TRUNC = 0x0400, // Truncate the existing file to zero size
166 lfs_off_t off, void *buffer, lfs_size_t size);
172 lfs_off_t off, const void *buffer, lfs_size_t size);
194 // Minimum size of a block read in bytes. All read operations will be a
198 // Minimum size of a block program in bytes. All program operations will be
203 // and may be larger than the physical erase size. However, non-inlined
223 // read and program sizes, and a factor of the block size.
246 // larger names except the size of the info struct which is controlled by
257 // larger attributes size but must be <= LFS_ATTR_MAX. Defaults to
262 // devices with large blocks (e.g. 128kB) setting this to a low size (2-8kB)
282 lfs_size_t size;
305 // Upper limit on the size of files in bytes.
308 // Upper limit on the size of custom attributes in bytes.
323 lfs_size_t size;
354 lfs_size_t size;
389 lfs_size_t size;
435 lfs_block_t size;
516 // Returns the size of the attribute, or a negative error code on failure.
517 // Note, the returned size is the size of the attribute on disk, irrespective
518 // of the size of the buffer. This can be used to dynamically allocate a buffer
521 uint8_t type, void *buffer, lfs_size_t size);
532 uint8_t type, const void *buffer, lfs_size_t size);
591 // Takes a buffer and size indicating where to store the read data.
594 void *buffer, lfs_size_t size);
599 // Takes a buffer and size indicating the data to write. The file will not
604 const void *buffer, lfs_size_t size);
615 // Truncates the size of the file to the specified size
618 int lfs_file_truncate(lfs_t *lfs, lfs_file_t *file, lfs_off_t size);
633 // Return the size of the file
636 // Returns the size of the file, or a negative error code on failure.
698 // Finds the current size of the filesystem
701 // size may be larger than the filesystem actually is.
740 // Grows the filesystem to a new size, updating the superblock with the new