=== modified file 'README' --- README 2020-04-02 15:45:13 +0000 +++ README 2019-06-18 17:09:43 +0000 @@ -64,9 +64,6 @@ s checksum, TODO description -D:: - TODO - Commands that take whole statement: P === modified file 'zsh-functions/confz_fileset_init' --- zsh-functions/confz_fileset_init 2020-04-02 15:45:13 +0000 +++ zsh-functions/confz_fileset_init 2019-06-18 17:12:17 +0000 @@ -71,8 +71,6 @@ ftype=$[ [##16] $fileset_stat_cur[mode] >> 12 ] fileset_stat_cur_type=$fileset_ftypes[$ftype] fileset_stat_cur_perm=$[ [##8] $fileset_stat_cur[mode] & 4095 ] - fileset_stat_cur_major=$[ $fileset_stat_cur[rdev] >> 8 ] - fileset_stat_cur_minor=$[ $fileset_stat_cur[rdev] & 255 ] } fileset_resetcmd() { @@ -158,37 +156,6 @@ } -confz_fs_device_check() { - checkvars filename flags device_type major minor - - if [[ $vars[flags] == *p* ]]; then - require fs_p :filename - fi - - case $vars[device_type] in - (c) require fs_type_or_missing :filename :flags filetype=c ;; - (b) require fs_type_or_missing :filename :flags filetype=b ;; - (*) die "Incorrect device type: ${(qqq)vars[device_type]}" ;; - esac - - fileset_stat $vars[filename] && \ - [[ $fileset_stat_cur_type == $vars[device_type] ]] && \ - [[ $fileset_stat_cur[major] == $vars[major] ]] && \ - [[ $fileset_stat_cur[minor] == $vars[minor] ]] -} - -confz_fs_device_do() { - local missing - fileset_stat $vars[filename] - missing=$? - fileset_reset_cache - if ! (($missing)); then - rm $vars[filename] || return $? - fi - mknod $vars[filename] $vars[major] $vars[minor] -} - - confz_fs_pipe_check() { checkvars filename flags