Skip to content
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

High: exportfs: Make fsid optional (bsc#1045161) #1029

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

krig
Copy link
Contributor

@krig krig commented Aug 28, 2017

The fsid export option is not needed any more. There
might be some strange corner cases where it can be
useful, but it definitely shouldn't be assumed to be
needed by default.

The fsid=0 usage used to be important for NFSv4, but
this is no longer the case. It is best not to use
fsid=0 and to let exportfs/mountd create a
"NFSv4 pseudo root" themselves. This is (almost)
always what is wanted and is least confusing.

The fsid=N N!=0 usage was important some years ago
when the device number of hard drives started to change.
NFS used to use the device id, which was problematic.
Setting an explicit fsid= removed the instability.
However for quite some years now NFS has been using the
UUID of the filesystem, rather than the device id, to
identify a filesystem. So unless you have multiple
filesystems with the same uuid, or are using some weird
type of filesystem which doesn't have a uuid, fsid=
isn't needed and is best avoided.

So exportfs_test should be changed to not require
fsid= any more.

@krig
Copy link
Contributor Author

krig commented Aug 31, 2017

@oalbrigt Would be grateful for some extra eyeballs on this one, in particular the cleanup_export_cache function seems to need the fsid to do cleanup. Maybe it's an acceptable tradeoff for that not to work if fsid is not explicitly configured..

@oalbrigt
Copy link
Contributor

Looks good to me, but I think we should update cleanup_export_cache accordingly as well.

The fsid export option is not needed any more.  There
might be some strange corner cases where it can be
useful, but it definitely shouldn't be assumed to be
needed by default.

The `fsid=0` usage used to be important for NFSv4, but
this is no longer the case.  It is best *not* to use
`fsid=0` and to let `exportfs/mountd` create a
"NFSv4 pseudo root" themselves.  This is (almost)
always what is wanted and is least confusing.

The `fsid=N N!=0` usage was important some years ago
when the device number of hard drives started to change.
NFS used to use the device id, which was problematic.
Setting an explicit fsid= removed the instability.
However for quite some years now NFS has been using the
UUID of the filesystem, rather than the device id, to
identify a filesystem.  So unless you have multiple
filesystems with the same uuid, or are using some weird
type of filesystem which doesn't have a uuid, `fsid=`
isn't needed and is best avoided.

So exportfs_test should be changed to not require
`fsid=` any more.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants