mirror of
https://github.com/samba-team/samba.git
synced 2025-01-22 22:04:08 +03:00
s3:vfs_fileid: readd "fileid:algorithm" as option.
"fileid:mapping" is still supported as fallback. metze
This commit is contained in:
parent
673ca5145c
commit
554a89df0c
@ -188,10 +188,16 @@ static int fileid_connect(struct vfs_handle_struct *handle,
|
||||
return -1;
|
||||
}
|
||||
|
||||
data->device_mapping_fn = fileid_device_mapping_fsid;
|
||||
/*
|
||||
* "fileid:mapping" is only here as fallback for old setups
|
||||
* "fileid:algorithm" is the option new setups should use
|
||||
*/
|
||||
algorithm = lp_parm_const_string(SNUM(handle->conn),
|
||||
"fileid", "mapping",
|
||||
"fsname");
|
||||
algorithm = lp_parm_const_string(SNUM(handle->conn),
|
||||
"fileid", "algorithm",
|
||||
algorithm);
|
||||
if (strcmp("fsname", algorithm) == 0) {
|
||||
data->device_mapping_fn = fileid_device_mapping_fsname;
|
||||
} else if (strcmp("fsid", algorithm) == 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user