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

b/334917514 - Add daos fs chown #14184

Merged
merged 1 commit into from
Apr 18, 2024
Merged

b/334917514 - Add daos fs chown #14184

merged 1 commit into from
Apr 18, 2024

Commits on Apr 18, 2024

  1. b/334917514 - Add daos fs chown

    Example usage:
    // Original state
    [juszhan_google_com@juszhan-dev daos]$ ls -la /tmp | grep dfuse0
    drwxr-xr-x   1 juszhan_google_com juszhan_google_com   120 Apr 17 23:53 dfuse0
    -rw-r--r--   1 juszhan_google_com juszhan_google_com  9146 Apr 17 23:53 dfuse0.log
    
    // Change group to a known group id
    [juszhan_google_com@juszhan-dev daos]$ getent group 1001
    tmpuserjohn:x:1001:
    
    [juszhan_google_com@juszhan-dev daos]$ run_cmd daos fs chown pool cont -g 1001 --dfs-path=/
    Running DAOS_AGENT_DRPC_DIR=/tmp/agent daos fs chown pool cont -g 1001 --dfs-path=/
    
    [juszhan_google_com@juszhan-dev daos]$ ls -la /tmp | grep dfuse0
    drwxr-xr-x   1 juszhan_google_com tmpuserjohn          120 Apr 17 23:53 dfuse0
    -rw-r--r--   1 juszhan_google_com juszhan_google_com  9146 Apr 17 23:53 dfuse0.log
    
    // Change group to a nonexistent group id
    [juszhan_google_com@juszhan-dev daos]$ getent group 1002
    
    [juszhan_google_com@juszhan-dev daos]$ run_cmd daos fs chown pool cont -g 1002 --dfs-path=/
    Running DAOS_AGENT_DRPC_DIR=/tmp/agent daos fs chown pool cont -g 1002 --dfs-path=/
    
    [juszhan_google_com@juszhan-dev daos]$ ls -la /tmp | grep dfuse0
    drwxr-xr-x   1 juszhan_google_com               1002   120 Apr 17 23:53 dfuse0
    -rw-r--r--   1 juszhan_google_com juszhan_google_com  9146 Apr 17 23:53 dfuse0.log
    
    Required-githooks: true
    
    Signed-off-by: Justin Zhang <juszhan@google.com>
    juszhan1 committed Apr 18, 2024
    Configuration menu
    Copy the full SHA
    c45ef57 View commit details
    Browse the repository at this point in the history