{"push_id":553556489,"size":2,"distinct_size":1,"ref":"refs/heads/mount-uidgid","head":"d12287e8968d629d16c6e259eb9c8176da0118cf","before":"94f2c738015d57419c689433c16a3f60a3fcf29c","commits":[{"sha":"b0cf0676c0beb5dcb149774a3264580a18304ac1","author":{"email":"5ee0edb9e2229c0838f1959779f1949031de0123@chase2k.com","name":"Tim Chase"},"message":"Fix removal of SA in sa_modify_attrs()\n\nThe sa_modify_attrs() function can add, remove or replace an SA.\nThe main loop in the function uses the index \"i\" to iterate over the\nexisting SAs and uses the index \"j\" for writing them into a new buffer\nvia SA_ADD_BULK_ATTR().  The write index, \"j\" is incremented on remove\n(SA_REMOVE) operations which leads to a corruption in the new SA buffer.\nThis patch remove the increment for SA_REMOVE operations.\n\nSigned-off-by: Brian Behlendorf <behlendorf1@llnl.gov>\nSigned-off-by: Tim Chase <tim@chase2k.com>\nSigned-off-by: Ned Bass <bass6@llnl.gov>\nCloses #3028","distinct":false,"url":"https://api.github.com/repos/dweeezil/zfs/commits/b0cf0676c0beb5dcb149774a3264580a18304ac1"},{"sha":"d12287e8968d629d16c6e259eb9c8176da0118cf","author":{"email":"5ee0edb9e2229c0838f1959779f1949031de0123@chase2k.com","name":"Tim Chase"},"message":"Add per-mount uid/gid override\n\nThe zfs_domount() function has been extended to support ZFS-specific\nmount options via the new z_mount_opts_t structure which should be\npassed by userland as the mount(8) data parameter.  If nonzero, its\nzmo_uid and zmo_gid members specificy, respectively, that the uid or\ngid of all files should be made to appear as the specified value.\n\nThe new inheritid filesystem property can be set to \"uid\", \"gid\" or \"all\".\nIt is interpreted by the zfs.mount helper to set zmo_uid and zmo_gid,\nand causes the id to be overridden based on the owner or group of the\nmount point.  This is useful for pools on removable media which are\ntransported between systems without synchronized uids.\n\nThe zfs.mount helper will also interpret the uid=<id> or gid=<id> mount\noptions (ids are passed through numerically by mount(8)) to allow for\nthe ownership or group override to be manually specified.  If these\noptions are used, they override that which would normally be used if\nthe inheritid filesystem property were set.\n\nA uid override causes all existing files to appear to be owned by the\nspecified user id.  It also causes newly-created files to inherit the\nuid of their containing directory.  Group ids are handled similarly.\n\nSince posix ACLs are specified as integer uid/gid values, they are\nincompatible with this feature.  Using either uid or gid override has\nthe effect of setting acltype=noacl.","distinct":true,"url":"https://api.github.com/repos/dweeezil/zfs/commits/d12287e8968d629d16c6e259eb9c8176da0118cf"}]}