~ubuntu-branches/ubuntu/utopic/util-linux/utopic-proposed

« back to all changes in this revision

Viewing changes to bash-completion/mkfs.minix

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2014-08-18 15:43:56 UTC
  • mfrom: (1.6.5) (4.1.16 experimental)
  • Revision ID: package-import@ubuntu.com-20140818154356-sqn436j3vndc62qb
Tags: 2.25-8ubuntu1
* Merge with Debian experimental.
  - This is now a non-ancient version. (LP: #1012081)
  - No longer uses /etc/blkid.tab by default, but a file in /run/.
    (LP: #1244595)
  - mkswap wipes fs signatures (LP: #1047666)
  - Fix "reatime" manpage typo (LP: #1047666)
  - wipefs properly cleans up fs signatures (LP: #1059872)
  Remaining Ubuntu changes:
  - Regularly trim SSDs automatically (core-1311-ssd-trimming):
    + Add debian/fstrim-all: Script to detect which mounted partitions
      need/support trimming, and call fstrim(8) on all of them.
      Install into /usr/sbin/.
    + Add debian/fstrim-all.8: Manpage for the above.
    + Add debian/fstrim-all.cron: Trivial shell script to call fstrim-all,
      so that admins can easily adjust/disable it. Installed as
      /etc/cron.weekly/fstrim.
  - Upstart support:
    + Add hwclock{-save}.upstart, and install them in debian/rules.
    + Drop initscripts dependency.
    + Drop debian/hwclock.rules and hwclock.default.
  - Add mountall-options.patch, see patch header.
  - uuid-runtime.postinst: Due to the way the uuidd account is created, it
    will get a uid/gid allocation for userns use. This isn't needed and is a
    waste of uid/gid so always clear uuidd from subuid/subgid.
* Drop /lib/init/fstab parsing fallback in mount. Patch does not apply at
  all any more, is specific to mountall (and thus should not be relied
  upon), and not very useful; all init systems, schroot, debootstrap etc.
  mount /sys, /proc/ and friends by themselves already.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
_mkfs.minix_module()
 
2
{
 
3
        local cur prev OPTS
 
4
        COMPREPLY=()
 
5
        cur="${COMP_WORDS[COMP_CWORD]}"
 
6
        prev="${COMP_WORDS[COMP_CWORD-1]}"
 
7
        case $prev in
 
8
                '-i')
 
9
                        COMPREPLY=( $(compgen -W "inodes" -- $cur) )
 
10
                        return 0
 
11
                        ;;
 
12
                '-l')
 
13
                        COMPREPLY=( $(compgen -W "badblocks-file" -- $cur) )
 
14
                        return 0
 
15
                        ;;
 
16
                '-n')
 
17
                        COMPREPLY=( $(compgen -W "14 30" -- $cur) )
 
18
                        return 0
 
19
                        ;;
 
20
                '-V'|'--version')
 
21
                        return 0
 
22
                        ;;
 
23
        esac
 
24
        case $cur in
 
25
                -*)
 
26
                        OPTS="-c -i -l -n -1 -2 -3"
 
27
                        COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
 
28
                        return 0
 
29
                        ;;
 
30
        esac
 
31
        local DEVS
 
32
        while read dev; do DEVS+="$dev " ; done < <(lsblk -pnro name)
 
33
        COMPREPLY=( $(compgen -W "$DEVS" -- $cur) )
 
34
        return 0
 
35
}
 
36
complete -F _mkfs.minix_module mkfs.minix