Thanks Hugo. Let me try it out.
Thanks a ton! Atri On Sat, Feb 2, 2013 at 11:41 PM, Hugo Mills <h...@carfax.org.uk> wrote: > On Sat, Feb 02, 2013 at 11:38:38PM +0530, Atri Sharma wrote: >> Thanks a ton Hugo. >> >> It worked like a charm. >> >> One last thing, how do I create a document in that subvolume? > > Same way you'd create a file anywhere else in any other filesystem... :) > > btrfs is magic and different, but it's not *that* different. > > Hugo. > >> I am running some tests for seeing the locking trends when mass >> creation and deletion of files take place. >> >> Thanks, >> >> Atri >> >> On Sat, Feb 2, 2013 at 11:32 PM, Hugo Mills <h...@carfax.org.uk> wrote: >> > On Sat, Feb 02, 2013 at 11:06:23PM +0530, Atri Sharma wrote: >> >> Hi Hugo, >> >> >> >> Thanks for the earlier help. >> >> >> >> I needed some more help please. >> >> >> >> I created a BTRFS partition on /dev/sda3. To verify, the output of df >> >> -T command: >> >> >> >> e >> >> /dev/sda1 fuseblk 102396 25180 77216 >> >> 25% /run/media/atri/System Reserved >> >> /dev/sda3 btrfs 331637760 120 317977536 >> >> 1% /run/media/atri/02fad498-f636-410e-a4bf-4d91428b9106 >> >> >> >> >> >> After this, I am trying to create a folder on the partition. How do I do >> >> that? >> > >> > Well, a folder (aka a directory) is created with mkdir. But... >> > >> >> I tried : >> >> >> >> [atri@AtriServer ~]$ sudo btrfs subvolume create /dev/sda3/ >> >> Create subvolume '/dev/sda3' >> >> ERROR: cannot create subvolume - Inappropriate ioctl for device >> > >> > ... you're trying to create a subvolume here, so I'll assume that's >> > what you want. >> > >> > If you take a look at the output of "btrfs --help", you'll see that >> > most of the commands take a path, not a device. This is usually the >> > location of some file or directory, and in most cases should be a >> > mount point of (some subvolume within) the filesystem. >> > >> > In this case, what you want to do is create the subvolume with, for >> > example: >> > >> > sudo btrfs subvolume create >> > /run/media/atri/02fad498-f636-410e-a4bf-4d91428b9106/subvolumename >> > >> > because the filesystem is mounted at >> > /run/media/atri/02fad498-f636-410e-a4bf-4d91428b9106/, so you need to >> > specify a path below that to create any subvolumes in it. (I'd >> > recommend mounting your filesystem somewhere with a slightly shorter >> > name). >> > >> > Once you've created the subvolume, it'll look like a directory, but >> > it can also be mounted independently of the rest of the filesystem. >> > >> > Hugo. >> > >> >> Please help. >> >> >> >> Atri >> >> >> >> On Sat, Feb 2, 2013 at 9:56 PM, Atri Sharma <atri.j...@gmail.com> wrote: >> >> > Hi Hugo, >> >> > >> >> > Thanks. >> >> > I was having some issues with my priviledges, and sorting them out has >> >> > worked. >> >> > >> >> > Thanks a ton, >> >> > >> >> > Atri >> >> > >> >> > On Sat, Feb 2, 2013 at 9:50 PM, Hugo Mills <h...@carfax.org.uk> wrote: >> >> >> On Sat, Feb 02, 2013 at 08:56:20PM +0530, Atri Sharma wrote: >> >> >>> Hi all, >> >> >>> >> >> >>> I am running a Fedora 17 system. I am trying to set up a new partition >> >> >>> of 2 GB size which has BTRFS as file system. >> >> >>> >> >> >>> When I am trying to do mkfs.btrfs on a partition, I get: >> >> >>> >> >> >>> [atri@AtriServer ~]$ mkfs.btrfs /dev/sda3 >> >> >>> >> >> >>> WARNING! - Btrfs Btrfs v0.19 IS EXPERIMENTAL >> >> >>> WARNING! - see http://btrfs.wiki.kernel.org before using >> >> >>> >> >> >>> check_mounted(): Could not open /dev/sda3 >> >> >>> error checking /dev/sda3 mount status >> >> >> >> >> >> You need to be root, or (typically) to be in the "disk" group in >> >> >> order to write to a block device. >> >> >> >> >> >> Hugo. >> >> >> >> >> >> -- >> >> >> === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk >> >> >> === >> >> >> PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk >> >> >> --- "What's so bad about being drunk?" "You ask a glass of water" --- >> >> >> >> >> > >> >> > >> >> > >> >> > -- >> >> > Regards, >> >> > >> >> > Atri >> >> > l'apprenant >> >> >> >> >> >> >> >> -- >> >> Regards, >> >> >> >> Atri >> >> l'apprenant >> >> -- >> >> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in >> >> the body of a message to majord...@vger.kernel.org >> >> More majordomo info at http://vger.kernel.org/majordomo-info.html >> > >> > -- >> > === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk === >> > PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk >> > --- We don't just borrow words; on occasion, English has pursued --- >> > other languages down alleyways to beat them unconscious >> > and rifle their pockets for new vocabulary. >> >> >> >> -- >> Regards, >> >> Atri >> l'apprenant >> -- >> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in >> the body of a message to majord...@vger.kernel.org >> More majordomo info at http://vger.kernel.org/majordomo-info.html > > -- > === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk === > PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk > --- You're never alone with a rubber duck... --- -- Regards, Atri l'apprenant -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html