implement fs apis on linux