{"push_id":2637262309,"size":17,"distinct_size":17,"ref":"refs/heads/rework-sub-list-dev","head":"d295fbe4c9edfa74bc74e0ece17d9578fb101eb1","before":"2a6a883acb4f6ed74adf8206ce4c11f2e259546b","commits":[{"sha":"b7dd186a359e2c55c644b5bc67b252dd9567b898","author":{"name":"Tomohiro Misono","email":"bc2c696bba6c0f8a788d4064c2d97b5d5542cf77@jp.fujitsu.com"},"message":"btrfs-porgs: libbtrfsutil: Relax the privileges of util_subvolume_info()\n\nBy using new ioctl (BTRFS_IOC_GET_SUBVOL_INFO), this commit allows\nnon-privileged user to call util_subvolume_info() as long as @id is zero\n(user can only get the information of the subvolume which he can open).","distinct":true,"url":"https://api.github.com/repos/t-msn/btrfs-progs/commits/b7dd186a359e2c55c644b5bc67b252dd9567b898"},{"sha":"50008ae35ba2b8440df7d579eed3ffc00629087e","author":{"name":"Tomohiro Misono","email":"bc2c696bba6c0f8a788d4064c2d97b5d5542cf77@jp.fujitsu.com"},"message":"btrfs-progs: libbtrfsuitl: Factor out btrfs_util_subvolume_iterator_next()\n\nFactor out the main logic of btrfs_util_subvolume_iterator_next().\nThis is a prepareation work to update the behavior of this function\nand relax the required root privilege.\n\nNo functional change happens.","distinct":true,"url":"https://api.github.com/repos/t-msn/btrfs-progs/commits/50008ae35ba2b8440df7d579eed3ffc00629087e"},{"sha":"7c66ef29fe7b22b46b025370211a8e49e1a1b4a5","author":{"name":"Tomohiro Misono","email":"bc2c696bba6c0f8a788d4064c2d97b5d5542cf77@jp.fujitsu.com"},"message":"btrfs-progs: libbtrfsutil: Update the behavior of subvolume iterator and\nrelax the privileges\n\nBy using new ioctls (BTRFS_IOC_GET_ROOTREF_INFO/BTRFS_IOC_INO_LOOKUP_USER),\nthis commit update the subvolume iterator when it is created by\nbtrfs_util_create_subvolume_iterator() with @top zero\n(i.e. if the iterator is created from givin path/fd).\n\nIn that case,\n - an iterator can be created from non-subvolume directory\n   and will skip a subvolume if\n   - it does not exist nor has different id from the found subvolume\n     by INO_LOOKUP_USER (may happen if a dir in the path is being mounted)\n   - it cannot be opened due to permission error\n\nSince above ioctls do not require root privileges, non-privileged user can\nalso use the iterator. If @top is specified, the behavior is the same\nas before (and thus non-privileged user cannot use).","distinct":true,"url":"https://api.github.com/repos/t-msn/btrfs-progs/commits/7c66ef29fe7b22b46b025370211a8e49e1a1b4a5"},{"sha":"db4e2078d58af9f17c65458d0546042f7569181b","author":{"name":"Tomohiro Misono","email":"bc2c696bba6c0f8a788d4064c2d97b5d5542cf77@jp.fujitsu.com"},"message":"btrfs-progs: sub list: Use libbtrfsuitl for subvolume list\n\nThis is a copy of non-merged following patch originally written\nby Omar Sandoval:\n  btrfs-progs: use libbtrfsutil for subvolume list\nexpect this commit keeps libbtrfs implementation which above commit\ntries to remove (therefore this adds suffix _v2 for struct/function).\n\nOriginal Author: Omar Sandoval <osandov@fb.com>","distinct":true,"url":"https://api.github.com/repos/t-msn/btrfs-progs/commits/db4e2078d58af9f17c65458d0546042f7569181b"},{"sha":"dfba209f484ae88069ed99472aa9d832fd064b3e","author":{"name":"Tomohiro Misono","email":"bc2c696bba6c0f8a788d4064c2d97b5d5542cf77@jp.fujitsu.com"},"message":"btrfs-progs: sub list: factor out main part of btrfs_list_subvols\n\nNo functional changes.\nThis is a preparation work for rewroking \"subvolume list\".","distinct":true,"url":"https://api.github.com/repos/t-msn/btrfs-progs/commits/dfba209f484ae88069ed99472aa9d832fd064b3e"},{"sha":"ccf13d23082f7b3431ca9ecbb64df727163161f6","author":{"name":"Tomohiro Misono","email":"bc2c696bba6c0f8a788d4064c2d97b5d5542cf77@jp.fujitsu.com"},"message":"btrfs-progs: sub list: Change the default behavior of \"subvolume list\" and allow non-privileged user to call it\n\nChange the default behavior of \"subvolume list\" and allow non-privileged\nuser to call it as well.\n\nFrom this commit, by default it only lists subvolumes under the specified\npath (incl. the path itself except top-level subvolume). Also, if kernel\nsupports new ioctls (BTRFS_IOC_GET_SUBVOL_INFO/BTRFS_IOC_GET_ROOTREF/\nBTRFS_IOC_INO_LOOKUP_USER),\n  - the specified path can be non-subvolume directory.\n  - non-privileged user can also call it.\n\nNote that root user can list all the subvolume in the fs with -a option.","distinct":true,"url":"https://api.github.com/repos/t-msn/btrfs-progs/commits/ccf13d23082f7b3431ca9ecbb64df727163161f6"},{"sha":"f2183c6fe265d53b81f7ae32b22cc7b2acd32055","author":{"name":"Tomohiro Misono","email":"bc2c696bba6c0f8a788d4064c2d97b5d5542cf77@jp.fujitsu.com"},"message":"btrfs-progs: sub list: Add -A option to output path in absolute path\n\nBy default, the printed path is relative to the specified path.\nLet's add option to print absolute path with -A option.","distinct":true,"url":"https://api.github.com/repos/t-msn/btrfs-progs/commits/f2183c6fe265d53b81f7ae32b22cc7b2acd32055"},{"sha":"ac1c0e5fb4a97c51fe9fd60b56891c68ee84c123","author":{"name":"Misono Tomohiro","email":"bc2c696bba6c0f8a788d4064c2d97b5d5542cf77@jp.fujitsu.com"},"message":"btrfs-progs: sub list: Add -f option to follow mounted subvolumes below the path\n\nAdd -f option to follow mounted subvolumes below the specified path, only\nif it is the same filesystem.\n\nExample:\n $ mkfs.btrfs -f $DEV\n $ mkfs.btrfs -f $DEV2\n $ mount $DEV $MNT\n\n $ btrfs subvolume create /$MNT/AAA\n $ btrfs subvolume create /$MNT/BBB\n $ btrfs subvolume create /$MNT/CCC\n $ mkdir /$MNT/AAA/bbb\n $ mkdir /$MNT/AAA/ccc\n $ mkdir /$MNT/AAA/other\n\n $ umount $MNT\n $ mount -o subvol=AAA $DEV $MNT\n $ mount -o subvol=BBB $DEV $MNT/bbb\n $ mount -o subvol=CCC $DEV $MNT/ccc\n $ mount -o $DEV2 $MNT/other\n\n $ btrfs subvolume list $MNT\n ID 256 gen 9 top level 5 path .\n\n $ btrfs subvolume list -f $MNT\n ID 256 gen 9 top level 5 path .\n ID 258 gen 7 top level 5 path bbb\n ID 259 gen 8 top level 5 path ccc\n\nNote that this option lists top-level subvolume if it is mounted in the\nway.","distinct":true,"url":"https://api.github.com/repos/t-msn/btrfs-progs/commits/ac1c0e5fb4a97c51fe9fd60b56891c68ee84c123"},{"sha":"0bf9105a487ba8b8edc579249288bfc71d93020b","author":{"name":"Tomohiro Misono","email":"bc2c696bba6c0f8a788d4064c2d97b5d5542cf77@jp.fujitsu.com"},"message":"btrfs-progs: sub list: Add --nosort option to output incrimentaly without sort\n\nCurrently, \"subvolume list\" loads all the subvolume information into\nmemory first in order to sort them. This may cause a performance problem\nif there are a lot of subvolumes.\n\nThis commit adds --nosort option to output subvolume information\nincrimentaly without sort to avoid consuming memory.","distinct":true,"url":"https://api.github.com/repos/t-msn/btrfs-progs/commits/0bf9105a487ba8b8edc579249288bfc71d93020b"},{"sha":"e7605c3c9c8c799142e8df8af6aa20899cfab5ef","author":{"name":"Misono Tomohiro","email":"bc2c696bba6c0f8a788d4064c2d97b5d5542cf77@jp.fujitsu.com"},"message":"btrfs-progs: sub list: Update -a option and remove meaningless filter\n\nCurrently, -a option add filter and change subvolume path as follows:\n  - If a subvolume is a child of the specified path, nothing changes\n  - otherwise, adds <FS_TREE> to head\n\nThis is rather meaningless, so let's remove this filter.\n\nAs a result, the behavior of -a option becomes the same as\ndefault behavior of sub list in progs <= 4.17","distinct":true,"url":"https://api.github.com/repos/t-msn/btrfs-progs/commits/e7605c3c9c8c799142e8df8af6aa20899cfab5ef"},{"sha":"126d321d431df459618463dd48af20c697cbcd0e","author":{"name":"Misono Tomohiro","email":"bc2c696bba6c0f8a788d4064c2d97b5d5542cf77@jp.fujitsu.com"},"message":"btrfs-progs: sub list: Update help message of -o option\n\nCurrently \"sub list -o\" lists only child subvolumes of the specified\npath. So, update help message and variable name more appropriately.","distinct":true,"url":"https://api.github.com/repos/t-msn/btrfs-progs/commits/126d321d431df459618463dd48af20c697cbcd0e"},{"sha":"a1266545485bf60717e27e0832bcd95500533308","author":{"name":"Misono Tomohiro","email":"bc2c696bba6c0f8a788d4064c2d97b5d5542cf77@jp.fujitsu.com"},"message":"btrfs-progs: sub list: Update help message of -d option\n\nExplicitly states that -d requires root privileges.\nAlso, update some option handling with regard to -d option.","distinct":true,"url":"https://api.github.com/repos/t-msn/btrfs-progs/commits/a1266545485bf60717e27e0832bcd95500533308"},{"sha":"12f0f48bb4484179611b1e16685671f01cd7b096","author":{"name":"Tomohiro Misono","email":"bc2c696bba6c0f8a788d4064c2d97b5d5542cf77@jp.fujitsu.com"},"message":"btrfs-progs: utils: Fallback to open without O_NOATIME flag in find_mount_root():\n\nO_NOATIME flag requires effective UID of process matches file's owner\nor has CAP_FOWNER capabilities. Fallback to open without O_NOATIME flag\nso that non-privileged user can also call find_mount_root().\n\nThis is a preparation work to allow non-privileged user to call\n\"subvolume show\".","distinct":true,"url":"https://api.github.com/repos/t-msn/btrfs-progs/commits/12f0f48bb4484179611b1e16685671f01cd7b096"},{"sha":"fe1c06860695b6a32583a261abeb38ab0245e40b","author":{"name":"Tomohiro Misono","email":"bc2c696bba6c0f8a788d4064c2d97b5d5542cf77@jp.fujitsu.com"},"message":"btrfs-progs: sub show: Allow non-privileged user to call \"subvolume show\"\n\nAllow non-privileged user to call subvolume show (-r or -u cannot be used)\nif new ioctls (BTRFS_IOC_GET_SUBVOL_INFO etc.) are available.\nThe behavior for root user is the same as before.\n\nThere are some output differences between root and user:\n  root ... subvolume path is from top-level subvolume\n           list all snapshots in the fs (inc. non-accessible ones)\n  user ... subvolume path is absolute path\n           list snapshots under the mountpoint\n\t   (only to which the user has appropriate access right)","distinct":true,"url":"https://api.github.com/repos/t-msn/btrfs-progs/commits/fe1c06860695b6a32583a261abeb38ab0245e40b"},{"sha":"67c029d82e7989d85fa83ba2219f169613b4d2e0","author":{"name":"Tomohiro Misono","email":"bc2c696bba6c0f8a788d4064c2d97b5d5542cf77@jp.fujitsu.com"},"message":"btrfs-progs: test: Add helper function to check if test user exists\n\nTest user 'progs-test' will be used to test the behavior of normal user.\n\nIn order to pass this check, add the user by \"useradd -M progs-test\".\nNote that progs-test should not have root privileges.","distinct":true,"url":"https://api.github.com/repos/t-msn/btrfs-progs/commits/67c029d82e7989d85fa83ba2219f169613b4d2e0"},{"sha":"39e16154b734a99d9d32fba8ddda3de275d22ad7","author":{"name":"Tomohiro Misono","email":"bc2c696bba6c0f8a788d4064c2d97b5d5542cf77@jp.fujitsu.com"},"message":"btrfs-porgs: test: Add cli-test/009 to check subvolume list for both root and normal user","distinct":true,"url":"https://api.github.com/repos/t-msn/btrfs-progs/commits/39e16154b734a99d9d32fba8ddda3de275d22ad7"},{"sha":"d295fbe4c9edfa74bc74e0ece17d9578fb101eb1","author":{"name":"Misono Tomohiro","email":"bc2c696bba6c0f8a788d4064c2d97b5d5542cf77@jp.fujitsu.com"},"message":"btrfs-progs: test: Add cli-test/010 to check \"subvolume list -f\" option","distinct":true,"url":"https://api.github.com/repos/t-msn/btrfs-progs/commits/d295fbe4c9edfa74bc74e0ece17d9578fb101eb1"}]}
{"actor":{"display_login":"t-msn"}}