lsbranches, list aufs branch files that contian a file

Under development: PCMCIA, wireless, etc.
Post Reply
Message
Author
gyro
Posts: 1798
Joined: Tue 28 Oct 2008, 21:35
Location: Brisbane, Australia

lsbranches, list aufs branch files that contian a file

#1 Post by gyro »

The attached command line utility "lsbranches", lists the files representing the aufs branches that contain the specified file.

Usage:
Execute the file in a terminal window.
It takes a filename as a single parameter.
If no parameter is given it displays usage information.
It will display error messages if the file does not exist or is not part of the aufs stack.

gyro
Attachments
lsbranches.gz
gunzip to produce "lsbranches" script file
(510 Bytes) Downloaded 150 times

gyro
Posts: 1798
Joined: Tue 28 Oct 2008, 21:35
Location: Brisbane, Australia

#2 Post by gyro »

Example:

Code: Select all

# ./lsbranches /etc/rc.d/rc.sysinit
/etc/rc.d/rc.sysinit exists in:
    /initrd/mnt/dev_save/pups/tahr/tahrsave
    /initrd/mnt/pdrv/puppy/tahr/ydrv_tahr_6.0.6.sfs
    /initrd/mnt/pdrv/puppy/tahr/puppy_tahr_6.0.6.sfs
# 
gyro

Post Reply