Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jun 17, 2024. It is now read-only.
/mdtrimPublic archive

TRIM support for Linux software RAID-1

License

NotificationsYou must be signed in to change notification settings

Cyberax/mdtrim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This is an experiment in TRIM support for MD devices. It basically creates a large file (using the fallocate() syscall),then uses hdparm tool to get information about file extents, maps them to physical device addresses and calls TRIM on them.To make sure that we're really trimming the right data, mdtrim writes random data at the beginning, end and some middle parts of the extent and makes sure that this data is read correctly using direct IO on the block device.Should be fairly safe if I haven't messed up with logical-to-physical sector translation too much.The test/test.sh script can be used to test it. WARNING! While mdtrim.py is fairly safe, test.sh script is definitely NOT safe as it formats the drive which is used to do testing.

About

TRIM support for Linux software RAID-1

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2026 Movatter.jp