Answer the question
In order to leave comments, you need to log in
How to implement work with file systems?
Hello everyone
Question:
How to implement (program) work with file systems?
I started and ran into the problem that at least all the objects in which the file system is stored have a universal interaction interface. Internally, they must be implemented differently.
In linux, you can mount (mount) various file systems. Moreover, each file system has its own number of parameters and "folders" and even the sequence of command execution (+ their number).
Examples:
Answer the question
In order to leave comments, you need to log in
And there is also ceph + rbd, where the key and monitors can be specified well
And also xfs, where you can make a separate log
And all sorts of gpfs, lustre, gluster ..., where there is also a variety ...
And why is it actually?! For example, I have everything written in fstab, maybe old-school, but somehow familiar ...
Working with files - golang.org/pkg/io/ioutil
Working with the system - golang.org/pkg/syscall/#Mount
Your snippet is command line work in my opinion
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question