AnsweredAssumed Answered

fstrim: FITRIM: Invalid argument  v1.30.1

Question asked by Elias Bitbaker on Jun 5, 2020
Latest reply on Jun 16, 2020 by Yiping Wang



I am trying to use fstrim -a in my linux distro, when comes to this a command it says 

fstrim: FITRIM: Invalid argument 


Then I checked the source code of the busybox fstrim.c

here says 



it seems like doest no provide this -a option 




How am I able to add linux version of fstrim binary into my rootfs I want to replace it with the one from busybox.


The linux version of fstrim has many header files which I dont have on the target system how am i able to add those dependencies as well such as :



#include "nls.h" #include "strutils.h" #include "c.h" #include "closestream.h" #include "pathnames.h" #include "sysfs.h" #include "exitcodes.h" #include <libmount.h> "