ramdisk: implement trim and icon, add to image
- B_TRIM_DEVICE on a ram disk frees all requested pages. Reading from a trimmed page returns all 0s. This can be used with fstrim to release memory for the parts not used by the filesystem, without unregistering then registering the device. - Add icon and ioctl to get it. - Add it to the image, because it works reasonably well and there is no reason not to include it.
This commit is contained in:
@@ -19,11 +19,9 @@ SYSTEM_BIN = [ FFilterByBuildFeatures
|
||||
modifiers mount mountvolume
|
||||
netstat notify
|
||||
open
|
||||
package package_repo passwd pc ping ping6 pkgman
|
||||
prio profile ps
|
||||
package package_repo passwd pc ping ping6 pkgman prio profile ps
|
||||
query quit
|
||||
rc reindex release renice resattr rmattr rmindex roster
|
||||
route
|
||||
ramdisk rc reindex release renice resattr rmattr rmindex roster route
|
||||
safemode screen_blanker screeninfo screenmode setarch setmime settype
|
||||
setversion setvolume shutdown
|
||||
strace su sysinfo system_time
|
||||
|
||||
@@ -64,7 +64,7 @@ if $(TARGET_ARCH) = x86 || $(TARGET_ARCH) = x86_64 {
|
||||
|
||||
# drivers
|
||||
AddNewDriversToPackage disk scsi : scsi_cd scsi_disk ;
|
||||
AddNewDriversToPackage disk virtual : virtio_block ;
|
||||
AddNewDriversToPackage disk virtual : virtio_block ram_disk ;
|
||||
AddNewDriversToPackage power : $(SYSTEM_ADD_ONS_DRIVERS_POWER) ;
|
||||
#AddNewDriversToPackage display : display_adapter@x86 ;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user