* fhandler.h (enum query_state): Drop redundant query_stat_control.
* fhandler.cc (fhandler_base::open): Ditto. Add READ_CONTROL to access and FILE_OPEN_FOR_BACKUP_INTENT to create_options when opening for writing. Always set security attributes to avoid calling has_acls. * fhandler_disk_file.cc (fhandler_base::fstat_fs): Don't try to open file twice.
This commit is contained in:
@ -86,9 +86,8 @@ enum query_state {
|
||||
no_query = 0,
|
||||
query_read_control = 1,
|
||||
query_read_attributes = 2,
|
||||
query_stat_control = 3,
|
||||
query_write_control = 4,
|
||||
query_write_attributes = 5
|
||||
query_write_control = 3,
|
||||
query_write_attributes = 4
|
||||
};
|
||||
|
||||
class fhandler_base
|
||||
|
Reference in New Issue
Block a user