Displaying 20 results from an estimated 4000 matches similar to: "ENOTEMPTY on "rm -rf" for snapshot and subvolume"
2012 Sep 13
0
[PATCH] btrfs: return EPERM upon rmdir on a subvolume
A subvolume cannot be deleted via rmdir, but the error code ENOTEMPTY
is confusing. Return EPERM instead, as this is not permitted.
Signed-off-by: David Sterba <dsterba@suse.cz>
---
 fs/btrfs/inode.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index a4167ef..a67dadd 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@
2010 Oct 25
2
[PATCH] Btrfs: allow subvol deletion by unprivileged user with -o user_subvol_rm_allowed
Add a mount option user_subvol_rm_allowed that allows users to delete a
(potentially non-empty!) subvol when they would otherwise we allowed to do
an rmdir(2).  We duplicate the may_delete() checks from the core VFS code
to implement identical security checks (minus the directory size check).
Signed-off-by: Sage Weil <sage@newdream.net>
---
 fs/btrfs/ctree.h |    1 +
 fs/btrfs/ioctl.c | 
2012 Jun 29
12
[PATCH 1/3] Btrfs-progs: add support to set subvolume/snapshot readonly
Setting subvolume/snapshot readonly has been missing for a long time.
With this patch, we can set a subvolume/snapshot readonly via:
o    btrfs subvolume set-ro <path>
Signed-off-by: Liu Bo <liubo2009@cn.fujitsu.com>
---
 cmds-subvolume.c |   40 ++++++++++++++++++++++++++++++++++++++++
 ioctl.h          |    7 +++++++
 2 files changed, 47 insertions(+), 0 deletions(-)
diff --git
2014 Nov 21
2
Re: [PATCH 1/6] btrfs: correct words about subvolume and snapshot
On Friday 21 November 2014 13:17:55 Hu Tao wrote:
> btrfs_subvolume_create creates only subvolumes. btrfs_subvolume_delete
> deletes subvolumes or snapshots.
> 
> Signed-off-by: Hu Tao <hutao@cn.fujitsu.com>
> ---
>  generator/actions.ml | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/generator/actions.ml b/generator/actions.ml
2010 Mar 02
2
crash when using the cp command to copy files off a striped gluster dir but not when using rsync
Hi,
I've got this strange problem where a striped endpoint will crash when
I try to use cp to copy files off of it but not when I use rsync to
copy files off:
[user at gluster5 user]$ cp -r Python-2.6.4/ ~/tmp/
cp: reading `Python-2.6.4/Lib/lib2to3/tests/data/fixers/myfixes/__init__.py':
Software caused connection abort
cp: closing
2011 May 10
3
Error in Configuring CTDB, Winbind and AD
Hello Samba Users,
After going through a lot of hassles, i have ended up coming mentioned below
samba configuration.  But it is still far from a working stage.
wbinfo -t, -u and -g works. But wbinfo -i works on few nodes but doesn't
work on few resulting in error "Could not get info for user <username>"
Strange part is that i could see these messages
2007 Dec 02
1
Quick fix for nfs-workarounds.c
Hi,
Under Solaris 8, the rmdir() command returns EEXIST instead of ENOTEMPTY
if an rmdir() is attempted on a directory with files still in it.
Dovecot 1.1beta9 currently gives tons of errors in the logfile as
a result of the code not checking for the right error value.
The function nfs_flush_file_handle_cache_dir() in nfs-worksarounds.c
probably needs to reflect EEXIST as well as ENOTEMPTY.
--
2013 Jan 08
2
chattr +C vs. btrfs subvolume snapshot
What happens if you set an individual file inside a subvolume as nocow
(chattr +C) and then take a snapshot of that subvolume and modify the
file in both?
Will btrfs now ignore the nocow attribute completely or will it do "as
few copies as possible"? (I''d love to know if it''s possible to visualize
the fragmentation of a single file.)
--
To unsubscribe from this list:
2013 May 20
2
[PATCH] Remove unecessary ERROR when removing non-empty directory
While removing a non-empty directory, the kernel dumps a message:
(rmdir,21743,1):ocfs2_unlink:953 ERROR: status = -39
Suppress the error message from being printed in the dmesg so users
don't panic.
Signed-off-by: Goldwyn Rodrigues <rgoldwyn at suse.com>
---
diff --git a/fs/ocfs2/namei.c b/fs/ocfs2/namei.c
index 04ee1b5..33c7b91 100644
--- a/fs/ocfs2/namei.c
+++ b/fs/ocfs2/namei.c
@@
2009 May 25
1
Problems Configuring Ovirt
Greetings Everyone,
     I have a question here regarding the ovirt node during boot. I have
configured ovirt-server with all the procedures followed from wiki and
finished each successfully. Also i tried booting one of the nodes with
ovirt-node image through PXE boot. The machine which i booted got an dhcp IP
(hostname) and was listed in the ovirt web gui. But there is a issue i have
been seeing
2012 Dec 12
2
subvolume show
I was looking through some of the archives and notice a patch submitted 
to implement:
       btrfs  subvolume  show  <path-to-subvolume>
command.
I also noticed that is does not appear to be in the git.
This looks like a useful capability.  I was trying to find out what the 
UUID was for a newly created subvolume and have not found out how to do 
that.
Gene
--
To unsubscribe from this
2019 Sep 30
3
[extlinux] Failed to load ldlinux.c32 with btrfs subvolume
I am new to syslinux/extlinux. Can I boot from a linux btrfs subvolume? 
I am getting "Failed to load ldlinux.c32" when I attempt to boot from a 
btrfs subvolume.
Setup:
1) I have a USB disk with one partition. The partition is marked "active".
2) I make a btrfs filesystem with "mkfs.btrfs /dev/sdd1". I mount the 
partiton and execute "btrfs su create
2016 Jun 08
1
[PATCH] filesystems: don't try to get the size of btrfs subvolume
virt-filesystem -l tries to get the size of btrfs subvolumes, which
results in an error. Teach it to skip the subvolumes.
---
 cat/filesystems.c | 22 ++++++++++++++++++++--
 1 file changed, 20 insertions(+), 2 deletions(-)
diff --git a/cat/filesystems.c b/cat/filesystems.c
index f1c2852..f679517 100644
--- a/cat/filesystems.c
+++ b/cat/filesystems.c
@@ -476,9 +476,27 @@ do_output_filesystems
2016 Jun 15
1
[PATCH v2] filesystems: don't try to get the size of btrfs subvolume
virt-filesystem -l tries to get the size of btrfs subvolumes, which
results in an error. Teach it to skip the subvolumes.
---
 cat/filesystems.c | 23 +++++++++++++++++++++--
 1 file changed, 21 insertions(+), 2 deletions(-)
diff --git a/cat/filesystems.c b/cat/filesystems.c
index f1c2852..cfdac86 100644
--- a/cat/filesystems.c
+++ b/cat/filesystems.c
@@ -476,9 +476,28 @@ do_output_filesystems
2016 Feb 25
5
[PATCH] listfs: ignore the default btrfs subvolume
When listing the subvolumes of a btrfs filesystem, ignore the default
subvolume: we get the content of it when mounting the whole device
(without specifying any particular subvolume), so avoid listing it
twice.
---
 src/listfs.c | 9 +++++++++
 1 file changed, 9 insertions(+)
diff --git a/src/listfs.c b/src/listfs.c
index 98e74c7..de3b6f5 100644
--- a/src/listfs.c
+++ b/src/listfs.c
@@ -169,8
2013 Feb 20
2
btrfs doesn't report proper error when removing subvolume
Hi.
petrb@bots-bnr1:/mnt$ btrfs subvolume delete ext2_saved/
Delete subvolume ''/mnt/ext2_saved''
ERROR: cannot delete ''/mnt/ext2_saved''
this is not really very descriptive. It would be really cool if it
told me why it can''t delete it.
For example:
Permission denied. Cannot delete ...
Disk write error. Cannot delete
Descriptive error messages
2011 Apr 06
3
[PATCH V2] Btrfs: fix subvolume mount by name problem when default mount subvolume is set
We create two subvolumes (meego_root and meego_home) in
btrfs root directory. And set meego_root as default mount
subvolume. After we remount btrfs, meego_root is mounted
to top directory by default. Then when we try to mount
meego_home (subvol=meego_home) to a subdirectory, it failed.
The problem is when default mount subvolume is set to
meego_root, we search meego_home in meego_root but can not
2013 Nov 16
16
[PATCH] BTRFS-PROG: recursively subvolume snapshot and delete
Hi All,
the following patches implement the recursively snapshotting and
deleting of a subvolume. 
To snapshot recursively you must pass the -R switch:
# btrfs subvolume create sub1
Create subvolume ''./sub1''
# btrfs subvolume create sub1/sub2
Create subvolume ''sub1/sub2''
# btrfs subvolume snapshot -R sub1 sub1-snap
Create a snapshot of
2017 Nov 21
1
Brick and Subvolume Info
Hello
I have a Distributed-Replicate volume and I would like to know if it is
possible to see what sub-volume a brick belongs to, eg:
A Distributed-Replicate volume containing:
Number of Bricks: 2 x 2 = 4
Brick1: node1.localdomain:/mnt/data1/brick1
Brick2: node2.localdomain:/mnt/data1/brick1
Brick3: node1.localdomain:/mnt/data2/brick2
Brick4: node2.localdomain:/mnt/data2/brick2
Is it possible
2015 Apr 03
1
mlocate/updatedb and btrfs subvolume mounts
I've just noticed that I'm having issues with finding files using
"locate" when those files are on btrfs subvolume mounts.
The issue is that updatedb cannot discern the difference between a
btrfs bind mount and btrfs subvolume [1]. This generally means that if
you're using btrfs subvolume mounts and updatedb at the same time, and
you want to index those subvolumes,