-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RFE: support for FS_IOC_SETFSLABEL #757
Comments
We are currently using filesystem tools to set label (for example |
For btrfs it's |
Those ioctls looks interesting, however their use should be placed in lower layers below UDisks. Getting a label should be a As for setting the label this could be a nice complement to the specific filesystem tools as called from |
@vojtechtrefny: do you plan to make use of this in relation to #621? Either as a fallback or as a first step prior to calling the fs-specific tool. Given the wide range of kernels our code is running on, we need to support both cases. |
I plan to take a look at this, but probably not as a part of #621, it could be a separate change. |
This ioctl will get and set labels on mounted filesystems. Currently f2fs, btrfs, xfs support it.
https://man7.org/linux/man-pages/man2/ioctl_fslabel.2.html
Most useful would be GNOME Disks (and similar) being able to do file system label changes while the file system is mounted, in particular system root which can't be unmounted. But also generally leads to a better user experience, and is hopefully more maintainable.
The text was updated successfully, but these errors were encountered: