Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 18 Sep 2018, 13:37
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
aufs & unionfs
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [2 Posts]  
Author Message
s243a

Joined: 02 Sep 2014
Posts: 1123

PostPosted: Mon 23 Apr 2018, 02:19    Post subject:  aufs & unionfs  

I'm interested in understanding aufs & unionfs with examples from the puppylinux code.

Here's part of an old thread I found from 2012 discussing Saluki

Code:

#now re-evaluate all the layers...
 if [ "`lsmod | grep '^aufs' `" != "" ];then #100426
  busybox mount -t aufs -o remount,udba=reval unionfs / #remount with faster evaluation mode.
  [ $? -ne 0 ] && logger -s -t "installpkg.sh" "Failed to remount aufs / with udba=reval"
 else
  mount -t unionfs -o remount,incgen unionfs /
 fi
 sync
fi

http://www.murga-linux.com/puppy/viewtopic.php?p=611556&sid=2620e5ba2f41264b236bab56d3993a89#611556

A similar example can be found in tahrpup on 194 of of usr/local/petget/installpkg.sh

Code:

busybox mount -t aufs -o remount,udba=notify unionfs /


which still seems to match the Current Github Version

The Saluki version seems to of had UNIONFS as a fall-back whereas currently this fall-back looks to have been removed.

I recall finding past discussions about unionfs vs aufs, I'm not sure if we are working with some sort of hybird between the two now, as I don't understand how either work yet.

But anyway, their are currently lots of examples on the /initrd/init script of mounting via these file systems. For example

Ln# 423 of /initrd/init
Code:

mount -o remount,add:1:$ONE_LAYER /pup_new



Ln# 427 of /initrd/init
Code:

mount -o remount,append:$ONE_LAYER /pup_new


Ln# 733 of /initrd/init
Code:

mount -o remount,add:1:${SAVE_LAYER}=ro+wh /pup_new #ro+wh = Readonly branch and it has/might have whiteouts on it



Ln# 746 of /initrd/init
Code:

echo "mount -o remount,prepend:${SAVE_LAYER}=rw,mod:/mnt/tmpfs/pup_rw=ro,del:/mnt/tmpfs/pup_rw /pup_new" #debug



Ln# 1054 of /initrd/init

Code:

mount -t aufs -o udba=reval,diropq=w,br=/mnt/tmpfs/pup_rw=rw,xino=/mnt/tmpfs/.aufs.xino unionfs /pup_new


Ln# 1113 of /initrd/init
Code:

mount -o remount,append:${ONE_MP}=rr /pup_new


Anyway, I'll post more as I understand more and maybe someone will kindly help me along my journey. Smile
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 11155

PostPosted: Mon 23 Apr 2018, 15:08    Post subject:  

aufs works much better it seems.... see slax for better insights on union file system usage.

mike
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [2 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0317s ][ Queries: 11 (0.0050s) ][ GZIP on ]